Browse Source

[scene] Don't create defaultRenderProps unless needed

Clément Espeute 11 tháng trước cách đây
mục cha
commit
19b92532fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hide/comp/SceneEditor.hx

+ 1 - 1
hide/comp/SceneEditor.hx

@@ -4371,7 +4371,7 @@ class SceneEditor {
 				}
 			}
 			else {
-				if (renderPropsRoot == null) {
+				if (newRenderProps == null && renderPropsRoot == null) {
 					createRenderProps();
 				}
 			}