Skip to content

Commit 54da83d

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/0.0.14a-austin-unite-release' into UNI-26990-nested-FbxPrefab-fix
2 parents 79a4f98 + 1943399 commit 54da83d

File tree

4 files changed

+7
-46
lines changed

4 files changed

+7
-46
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,6 @@ public override void OnInspectorGUI() {
8585
}
8686
}
8787
}
88-
GUILayout.EndHorizontal ();
89-
GUILayout.BeginHorizontal ();
90-
91-
GUILayout.Label (new GUIContent (
92-
"Turntable Scene:",
93-
"Scene to use for reviewing models. If none, a scene will be created on review."));
94-
95-
exportSettings.turntableScene = EditorGUILayout.ObjectField (
96-
exportSettings.turntableScene, typeof(SceneAsset), false
97-
);
98-
9988
GUILayout.EndHorizontal ();
10089

10190
EditorGUILayout.Space ();
@@ -230,9 +219,6 @@ public static string kDefaultAdskRoot {
230219

231220
public int selectedMayaApp = 0;
232221

233-
[SerializeField]
234-
public UnityEngine.Object turntableScene;
235-
236222
/// <summary>
237223
/// The path where Convert To Model will save the new fbx and prefab.
238224
///
@@ -259,7 +245,6 @@ protected override void LoadDefaults()
259245
centerObjects = true;
260246
keepOriginalAfterConvert = false;
261247
convertToModelSavePath = kDefaultSavePath;
262-
turntableScene = null;
263248
mayaOptionPaths = null;
264249
mayaOptionNames = null;
265250
}
@@ -444,20 +429,6 @@ public static string GetSelectedMayaPath()
444429
return instance.mayaOptionPaths [instance.selectedMayaApp];
445430
}
446431

447-
public static string GetTurnTableSceneName(){
448-
if (instance.turntableScene) {
449-
return instance.turntableScene.name;
450-
}
451-
return null;
452-
}
453-
454-
public static string GetTurnTableScenePath(){
455-
if (instance.turntableScene) {
456-
return AssetDatabase.GetAssetPath (instance.turntableScene);
457-
}
458-
return null;
459-
}
460-
461432
/// <summary>
462433
/// The path where Convert To Model will save the new fbx and prefab.
463434
/// This is relative to the Application.dataPath ; it uses '/' as the

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,6 @@ public enum TransformExportType { Local, Global, Reset };
953953
public int ExportAll (IEnumerable<UnityEngine.Object> unityExportSet)
954954
{
955955
exportCancelled = false;
956-
Verbose = true;
957956

958957
// Export first to a temporary file
959958
// in case the export is cancelled.
@@ -1566,7 +1565,7 @@ public void Dispose ()
15661565
{
15671566
}
15681567

1569-
public bool Verbose { private set; get; }
1568+
public bool Verbose { private set {;} get { return Debug.unityLogger.logEnabled; } }
15701569

15711570
/// <summary>
15721571
/// manage the selection of a filename

Assets/FbxExporters/Editor/ReviewLastSavedModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static void LastSavedModel ()
196196
System.Collections.Generic.List<UnityEngine.SceneManagement.Scene> scenes
197197
= new System.Collections.Generic.List<UnityEngine.SceneManagement.Scene> ();
198198

199-
string desiredSceneName = FbxExporters.EditorTools.ExportSettings.GetTurnTableSceneName ();
199+
string desiredSceneName = "";//FbxExporters.EditorTools.ExportSettings.GetTurnTableSceneName ();
200200
if (string.IsNullOrEmpty (desiredSceneName)) {
201201
desiredSceneName = DefaultSceneName;
202202
}
@@ -219,7 +219,7 @@ public static void LastSavedModel ()
219219
// if turntable scene not added to list of scenes
220220
if (!scene.IsValid () || !scene.isLoaded)
221221
{
222-
string scenePath = FbxExporters.EditorTools.ExportSettings.GetTurnTableScenePath ();
222+
string scenePath = "";//FbxExporters.EditorTools.ExportSettings.GetTurnTableScenePath ();
223223
if (string.IsNullOrEmpty(scenePath)) {
224224
// and if for some reason the turntable scene is missing create an empty scene
225225
// NOTE: we cannot use NewScene because it will force me to save the modified Untitled scene

Assets/FbxExporters/Integrations/Autodesk/maya/scripts/install_maya_plugin.sh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,9 @@ if [ ! -d "${PROJECT_PATH}" ]; then
2626
fi
2727
echo "Using PROJECT_PATH=${PROJECT_PATH}"
2828

29-
# Configure where unitypackage is located
30-
if [ ! -f "${PACKAGE_PATH}" ]; then
31-
PACKAGE_PATH=`ls -t ${PROJECT_PATH}/FbxExporters_*.unitypackage | head -1`
32-
fi
33-
echo "Using PACKAGE_PATH=${PACKAGE_PATH}"
34-
3529
# Configure where Maya is installed
3630
if [ ! -d "${MAYA_LOCATION}" ]; then
37-
MAYA_LOCATION=/Applications/Autodesk/maya2017/Maya.app
31+
MAYA_LOCATION=/Applications/Autodesk/maya2017/Maya.app/Contents
3832
fi
3933
echo "Using MAYA_LOCATION=${MAYA_LOCATION}"
4034

@@ -43,26 +37,23 @@ if [ ! -f "${UNITY_EDITOR_PATH}" ]; then
4337
exit -1
4438
fi
4539

46-
# Install FbxExporters package
47-
"${UNITY_EDITOR_PATH}" -projectPath "${PROJECT_PATH}" -importPackage ${PACKAGE_PATH} -quit
48-
4940
# Install Maya Integration
5041
"${UNITY_EDITOR_PATH}" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya -quit
5142

5243
# Configuring Maya2017 to auto-load integration
53-
MAYA_PATH=${MAYA_LOCATION}/Contents/bin/maya
44+
MAYA_PATH=${MAYA_LOCATION}/bin/maya
5445

5546
if [ ! -f "${MAYA_PATH}" ]; then
5647
echo "Maya not installed at ${MAYA_PATH}"
5748
else
5849
# Configure Maya Integration
5950
TEMP_SAVE_PATH="_safe_to_delete"
60-
EXPORT_SETTINGS_PATH="Integrations/Autodesk/maya/scripts/unityFbxExportSettings.mel"
51+
EXPORT_SETTINGS_PATH="FbxExporters/Integrations/Autodesk/maya/scripts/unityFbxExportSettings.mel"
6152
MAYA_INSTRUCTION_PATH="_safe_to_delete/_temp.txt"
6253
HEADLESS=1
6354

6455
# NOTE: we need start Maya in UI mode so that we can correctly configure the auto-load of the plugin.
6556
"${MAYA_PATH}" -command "configureUnityOneClick \"${PROJECT_PATH}\" \"${UNITY_EDITOR_PATH}\" \"${TEMP_SAVE_PATH}\" \"${EXPORT_SETTINGS_PATH}\" \"${MAYA_INSTRUCTION_PATH}\" ${HEADLESS}; scriptJob -idleEvent quit;"
6657
fi
6758

68-
exit 0
59+
exit 0

0 commit comments

Comments
 (0)