Pārlūkot izejas kodu

Prefab: don't overide props on save if already defined

trethaller 7 gadi atpakaļ
vecāks
revīzija
cf2fce53b6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      hxd/prefab/Prefab.hx

+ 1 - 1
hxd/prefab/Prefab.hx

@@ -105,7 +105,7 @@ class Prefab {
 			obj.source = source;
 			obj.source = source;
 		if( children.length > 0 )
 		if( children.length > 0 )
 			obj.children = [for( s in children ) s.saveRec()];
 			obj.children = [for( s in children ) s.saveRec()];
-		if( props != null )
+		if( props != null && obj.props == null )
 			obj.props = props;
 			obj.props = props;
 		return obj;
 		return obj;
 	}
 	}