Explorar o código

Fix saving of material database

trethaller %!s(int64=7) %!d(string=hai) anos
pai
achega
9a8120f193
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {