Skip to content

Commit 976ce8e

Browse files
committed
Merge branch 'master' into Uni-41549-RemovePresetForUnity2017
# Conflicts: # Assets/FbxExporters/Editor/ExportModelEditorWindow.cs
2 parents 25b96da + 29a9556 commit 976ce8e

File tree

11 files changed

+90
-9
lines changed

11 files changed

+90
-9
lines changed

Assets/FbxExporters/Editor/ConvertToPrefabSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public override void OnInspectorGUI ()
5757
EditorGUILayout.LabelField(new GUIContent("Transfer Root Motion To", "Select bone to transfer root motion animation to."), GUILayout.Width(LabelWidth - FieldOffset));
5858
EditorGUILayout.Popup(0, new string[]{"<None>"});
5959
GUILayout.EndHorizontal();
60+
EditorGUI.EndDisabledGroup ();
6061

6162
exportSettings.animatedSkinnedMesh = EditorGUILayout.Toggle ("Animated Skinned Mesh", exportSettings.animatedSkinnedMesh);
62-
EditorGUI.EndDisabledGroup ();
6363

6464
exportSettings.mayaCompatibleNaming = EditorGUILayout.Toggle (
6565
new GUIContent ("Compatible Naming:",

Assets/FbxExporters/Editor/ExportModelSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public override void OnInspectorGUI ()
7373
EditorGUILayout.LabelField(new GUIContent("Transfer Root Motion To", "Select bone to transfer root motion animation to."), GUILayout.Width(LabelWidth - FieldOffset));
7474
EditorGUILayout.Popup(0, new string[]{"<None>"});
7575
GUILayout.EndHorizontal();
76+
EditorGUI.EndDisabledGroup ();
7677

7778
exportSettings.animatedSkinnedMesh = EditorGUILayout.Toggle ("Animated Skinned Mesh", exportSettings.animatedSkinnedMesh);
78-
EditorGUI.EndDisabledGroup ();
7979

8080
exportSettings.mayaCompatibleNaming = EditorGUILayout.Toggle (
8181
new GUIContent ("Compatible Naming:",

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ namespace Editor
6464

6565
public class ModelExporter : System.IDisposable
6666
{
67-
// To be replaced by checkbox in Fbx Export settings
68-
bool removeAnimationsFromSkinnedMeshRenderer = true;
69-
7067
const string Title =
7168
"exports static meshes with materials and textures";
7269

@@ -1810,9 +1807,9 @@ protected void ExportAnimationClip (AnimationClip uniAnimClip, GameObject uniRoo
18101807
}
18111808

18121809
// Do not create the curves if the component is a SkinnedMeshRenderer and if the option in FBX Export settings is toggled on.
1813-
if (removeAnimationsFromSkinnedMeshRenderer && (uniGO.GetComponent<SkinnedMeshRenderer>() != null || uniGO.GetComponentInChildren<SkinnedMeshRenderer>() != null))
1810+
if (!ExportOptions.AnimateSkinnedMesh && (uniGO.GetComponent<SkinnedMeshRenderer>() != null || uniGO.GetComponentInChildren<SkinnedMeshRenderer>() != null))
18141811
{
1815-
continue;
1812+
continue;
18161813
}
18171814

18181815
int index = QuaternionCurve.GetQuaternionIndex (uniCurveBinding.propertyName);

Assets/FbxExporters/Editor/UnitTests/ExportTimelineClipTest.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/FbxExporters/Editor/UnitTests/FbxCameraTests.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/FbxExporters/Editor/UnitTests/Models/Cowboy/cowboyMidPoly(riged).FBX.meta

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/FbxExporters/Editor/UnitTests/Models/DefaultMale/Materials.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/FbxExporters/Editor/UnitTests/Models/Player.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/FbxExporters/Editor/UnitTests/Models/SimpleMan.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endif()
2323
message(STATUS "Building for ${CMAKE_BUILD_TYPE}")
2424

2525
if (NOT DEFINED PACKAGE_VERSION OR "${PACKAGE_VERSION}" STREQUAL "")
26-
set(PACKAGE_VERSION "sprint48")
26+
set(PACKAGE_VERSION "sprint49")
2727
endif()
2828
message(STATUS "Using Package Version: ${PACKAGE_VERSION}")
2929

@@ -190,6 +190,11 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
190190
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxExporterRepairMissingScripts.cs"
191191
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/ManualUpdateEditorWindow.cs"
192192
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxRotationCurve.cs"
193+
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/ConvertToPrefabEditorWindow.cs"
194+
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/ConvertToPrefabSettings.cs"
195+
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/ExportModelEditorWindow.cs"
196+
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/ExportModelSettings.cs"
197+
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Editor/FbxExportPresetSelectorReceiver.cs"
193198
REFERENCES
194199
"${CSHARP_MSCORLIB_LIBRARY}"
195200
"${CSHARP_SYSTEM_CORE_LIBRARY}"
@@ -251,7 +256,12 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
251256
PATTERN "Editor/ManualUpdateEditorWindow.cs" EXCLUDE
252257
PATTERN "Editor/FbxPrefabInspector.cs" EXCLUDE
253258
PATTERN "Editor/FbxExporterRepairMissingScripts.cs" EXCLUDE
254-
PATTERN "Editor/FbxRotationCurve.cs" EXCLUDE)
259+
PATTERN "Editor/FbxRotationCurve.cs" EXCLUDE
260+
PATTERN "Editor/ConvertToPrefabEditorWindow.cs" EXCLUDE
261+
PATTERN "Editor/ConvertToPrefabSettings.cs" EXCLUDE
262+
PATTERN "Editor/ExportModelEditorWindow.cs" EXCLUDE
263+
PATTERN "Editor/ExportModelSettings.cs" EXCLUDE
264+
PATTERN "Editor/FbxExportPresetSelectorReceiver.cs" EXCLUDE)
255265
install(FILES ${CLASS_LIBRARY_DEST}/${EDITOR_CLASS_LIBRARY_NAME} DESTINATION FbxExporters/Editor)
256266
install(FILES ${CLASS_LIBRARY_DEST}/${RUNTIME_CLASS_LIBRARY_NAME} DESTINATION FbxExporters)
257267
else()

0 commit comments

Comments
 (0)