From a16bedd2d9f2d4fd1ca944d5c79a44cdd3ac3f6e Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 2 Sep 2020 11:50:36 -0700 Subject: [PATCH] dummy_rasterizer now returns lightmap type Previously VS::INSTANCE_NONE was returned for Lightmap data, this caused `visual_server_scene.cpp` to assert in `instance_set_use_lightmap()` Now `dummy_rasterizer.h` returns `VS::INSTANCE_LIGHTMAP_CAPTURE` for lightmap capture data thus satisfying `visual_server_scene` --- drivers/dummy/rasterizer_dummy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dummy/rasterizer_dummy.h b/drivers/dummy/rasterizer_dummy.h index 091951ba103..b10376ecb7e 100644 --- a/drivers/dummy/rasterizer_dummy.h +++ b/drivers/dummy/rasterizer_dummy.h @@ -719,6 +719,8 @@ public: VS::InstanceType get_base_type(RID p_rid) const { if (mesh_owner.owns(p_rid)) { return VS::INSTANCE_MESH; + } else if (lightmap_capture_data_owner.owns(p_rid)) { + return VS::INSTANCE_LIGHTMAP_CAPTURE; } return VS::INSTANCE_NONE;