Skip to content

Commit

Permalink
bump importer version
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Jul 26, 2022
1 parent 35f439e commit 14f9120
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 1 addition & 3 deletions UnityGLTF/Assets/UnityGLTF/Editor/Scripts/GLTFImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace UnityGLTF
#if ENABLE_DEFAULT_GLB_IMPORTER
[ScriptedImporter(3, new[] { "glb", "gltf" })]
#else
[ScriptedImporter(3, null, overrideExts: new[] { "glb", "gltf" })]
[ScriptedImporter(4, null, overrideExts: new[] { "glb", "gltf" })]
#endif
#else
[ScriptedImporter(3, new[] { "glb" })]
Expand Down Expand Up @@ -367,8 +367,6 @@ string GetUniqueName(string desiredName)
throw;
}



#if UNITY_2017_3_OR_NEWER
// We explicitly turn the new identifier on for new imports, that is, when no meta file existed before this import.
if (!_useSceneNameIdentifier)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ public override void OnInspectorGUI()
{
identifierProp.boolValue = true;
serializedObject.ApplyModifiedProperties();
Apply();
try
{
ApplyAndImport();
GUIUtility.ExitGUI();
}
catch
{
// ignore - seems in some cases the GameObjectInspector will throw
}
}
}
// EditorGUILayout.PropertyField(serializedObject.FindProperty("_useJpgTextures"), new GUIContent("Use JPG Textures"));
Expand Down

0 comments on commit 14f9120

Please sign in to comment.