Forráskód Böngészése

Fix saving of material database

trethaller 7 éve
szülő
commit
9a8120f193
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      h3d/mat/MaterialDatabase.hx

+ 1 - 1
h3d/mat/MaterialDatabase.hx

@@ -68,7 +68,7 @@ class MaterialDatabase {
 		Reflect.deleteField(root, name);
 
 		var currentProps = material.props;
-		var defaultProps = material.getDefaultModelProps();
+		var defaultProps = material.getDefaultProps();
 		if( currentProps == null || Std.string(defaultProps) == Std.string(currentProps) ) {
 			// cleanup
 			while( path.length > 0 ) {