Browse Source

LODS: fix support of old lods configs setup

lviguier 1 month ago
parent
commit
56523bacaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/prim/ModelDatabase.hx

+ 1 - 1
h3d/prim/ModelDatabase.hx

@@ -108,7 +108,7 @@ class ModelDatabase {
 		var oldLodConfig = Reflect.field(rootData, LOD_CONFIG);
 		if (oldLodConfig != null) {
 			for (f in Reflect.fields(oldLodConfig)) {
-				if (key.indexOf(f) < 0)
+				if (key.indexOf(f) < 0 && '${key}_LOD0'.indexOf(f) < 0)
 					continue;
 
 				var c = Reflect.field(oldLodConfig, f);