Explorar o código

[scene] Don't create defaultRenderProps unless needed

Clément Espeute hai 11 meses
pai
achega
19b92532fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 				}
 			}