Browse Source

Fix mesh duplication if using auto lod generation.

clementlandrin 5 months ago
parent
commit
728a52cdd1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/fmt/fbx/HMDOut.hx

+ 1 - 1
hxd/fmt/fbx/HMDOut.hx

@@ -1354,7 +1354,7 @@ class HMDOut extends BaseLibrary {
 					if ( geom == null )
 						continue;
 					var lodModel = new Model();
-					lodModel.name = modelName + 'LOD${i}';
+					lodModel.name = modelName + 'LOD${i+1}';
 					lodModel.props = model.props;
 					lodModel.parent = model.parent;
 					lodModel.follow = model.follow;