mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 06:57:49 -05:00
矢張り、EditorPrefs を使うことにした
* symbol UNIGLTF_DEFAULT_AXES_X は止める
This commit is contained in:
parent
3ba3f899e3
commit
5ffab988dc
|
|
@ -20,11 +20,7 @@ namespace UniGLTF
|
|||
case ScriptedImporterAxes.X: return Axes.X;
|
||||
case ScriptedImporterAxes.Default:
|
||||
{
|
||||
#if UNIGLTF_DEFAULT_AXES_X
|
||||
return Axes.X;
|
||||
#else
|
||||
return Axes.Z;
|
||||
#endif
|
||||
return UniGLTFPreference.GltfIOAxis;
|
||||
}
|
||||
|
||||
default: throw new System.NotImplementedException();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,13 @@ namespace UniGLTF
|
|||
EditorGUILayout.HelpBox($"Custom editor language setting", MessageType.Info, true);
|
||||
|
||||
// default axis
|
||||
ToggleSymbol("Use X axis for default invert axis", "UNIGLTF_DEFAULT_AXES_X");
|
||||
EditorGUI.BeginChangeCheck();
|
||||
var gltfIOAxis = (Axes)EditorGUILayout.EnumPopup("Default Invert axis", GltfIOAxis);
|
||||
EditorGUILayout.HelpBox($"Default invert axis when glb/gltf import/export", MessageType.Info, true);
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
GltfIOAxis = gltfIOAxis;
|
||||
}
|
||||
}
|
||||
|
||||
const string AXIS_KEY = "UNIGLTF_IO_AXIS";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user