File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change
1
+ ### 1.0.5 (2023.01.31)
2
+ - ** Fix** : Broken material references on an FBX asset when using legacy/remapped materials
3
+
1
4
### 1.0.4 (2021.09.04)
2
5
- ** Improved** : Faster regeneration time. Thanks to @mayofunk
3
6
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ namespace Jads.Tools
50
50
{
51
51
public class AssetGUIDRegeneratorMenu
52
52
{
53
- public const string Version = "1.0.4 " ;
53
+ public const string Version = "1.0.5 " ;
54
54
55
55
[ MenuItem ( "Assets/Regenerate GUID/Files Only" , true ) ]
56
56
public static bool RegenerateGUID_Validation ( )
@@ -159,6 +159,11 @@ public static void RegenerateGUIDs(string[] selectedGUIDs)
159
159
if ( inverseReferenceMap . ContainsKey ( dependencyGUID ) )
160
160
{
161
161
inverseReferenceMap [ dependencyGUID ] . Add ( path ) ;
162
+
163
+ // Also include .meta path. This fixes broken references when an FBX uses external materials
164
+ var metaPath = AssetDatabase . GetTextMetaFilePathFromAssetPath ( path ) ;
165
+ inverseReferenceMap [ dependencyGUID ] . Add ( metaPath ) ;
166
+
162
167
referencesCount ++ ;
163
168
}
164
169
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " com.jeffjadulco.guidregenerator" ,
3
- "version" : " 1.0.4 " ,
3
+ "version" : " 1.0.5 " ,
4
4
"displayName" : " GUID Regenerator" ,
5
5
"description" : " A Unity editor tool to regenerate GUID for your assets" ,
6
6
"unity" : " 2019.4" ,
You can’t perform that action at this time.
0 commit comments