Skip to content

Commit 3411475

Browse files
committed
code review fixes
1 parent 2ed217b commit 3411475

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
using UnityEngine;
55
using UnityEditor;
66

7-
namespace FbxSdk.EditorTools {
7+
namespace FbxExporters.EditorTools {
88

9-
[CustomEditor(typeof(FbxExportSettings))]
10-
public class FbxExportSettingsEditor : Editor {
9+
[CustomEditor(typeof(ExportSettings))]
10+
public class ExportSettingsEditor : UnityEditor.Editor {
1111
public override void OnInspectorGUI() {
12-
FbxExportSettings temp = (FbxExportSettings)target;
12+
ExportSettings temp = (ExportSettings)target;
1313

1414
temp.weldVertices = EditorGUILayout.Toggle ("Weld Vertices:", temp.weldVertices);
1515

@@ -21,7 +21,7 @@ public override void OnInspectorGUI() {
2121
}
2222

2323
[FilePath("ProjectSettings/FbxExportSettings.asset",FilePathAttribute.Location.ProjectFolder)]
24-
public class FbxExportSettings : FbxSdk.EditorTools.ScriptableSingleton<FbxExportSettings>
24+
public class ExportSettings : FbxExporters.EditorTools.ScriptableSingleton<ExportSettings>
2525
{
2626
public bool weldVertices = true;
2727

@@ -74,7 +74,6 @@ private static void CreateAndLoad()
7474
if (ScriptableSingleton<T>.s_Instance == null)
7575
{
7676
T t = ScriptableObject.CreateInstance<T>();
77-
//t.hideFlags = HideFlags.HideAndDontSave;
7877
ScriptableSingleton<T>.s_Instance = t;
7978
}
8079
}

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ protected int ExportComponents (GameObject unityGo, FbxScene fbxScene, FbxNode
405405

406406
ExportTransform ( unityGo.transform, fbxNode);
407407

408-
bool weldVertices = FbxSdk.EditorTools.FbxExportSettings.instance.weldVertices;
408+
bool weldVertices = FbxExporters.EditorTools.ExportSettings.instance.weldVertices;
409409
ExportMesh (GetMeshInfo( unityGo ), fbxNode, fbxScene, weldVertices);
410410

411411
if (Verbose)

0 commit comments

Comments
 (0)