浏览代码

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`
Adam Brown 5 年之前
父节点
当前提交
a16bedd2d9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/dummy/rasterizer_dummy.h

+ 2 - 0
drivers/dummy/rasterizer_dummy.h

@@ -719,6 +719,8 @@ public:
 	VS::InstanceType get_base_type(RID p_rid) const {
 	VS::InstanceType get_base_type(RID p_rid) const {
 		if (mesh_owner.owns(p_rid)) {
 		if (mesh_owner.owns(p_rid)) {
 			return VS::INSTANCE_MESH;
 			return VS::INSTANCE_MESH;
+		} else if (lightmap_capture_data_owner.owns(p_rid)) {
+			return VS::INSTANCE_LIGHTMAP_CAPTURE;
 		}
 		}
 
 
 		return VS::INSTANCE_NONE;
 		return VS::INSTANCE_NONE;