Skip to content

Commit ff228c6

Browse files
committed
rename exported prefab instance to fbx name
- otherwise if name gets incremented on export, change won't be reflected in prefab instance name
1 parent cd0309f commit ff228c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public static GameObject Convert (
180180
prefabFileName, fbxFullPath));
181181
}
182182

183+
toConvert.name = Path.GetFileNameWithoutExtension (fbxFullPath);
183184
return toConvert;
184185
}
185186

0 commit comments

Comments
 (0)