Browse Source

LODs: fix lods props shadowing

lviguier 5 months ago
parent
commit
897e8f0750
1 changed files with 2 additions and 0 deletions
  1. 2 0
      h3d/prim/HMDModel.hx

+ 2 - 0
h3d/prim/HMDModel.hx

@@ -348,6 +348,8 @@ class HMDModel extends MeshPrimitive {
 			return lodConfig;
 
 		var d = lib.resource.entry.directory;
+		if (d.indexOf('res/') < 0)
+			d = 'res/$d';
 		lodConfig = @:privateAccess ModelDatabase.current.getDefaultLodConfig(d);
 		return lodConfig;
 	}