Skip to content

Commit ac29d34

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into UNI-32754-skinned-mesh-export
# Conflicts: # Assets/FbxExporters/Editor/FbxExporter.cs # Assets/FbxExporters/Editor/UnitTests/ModelExporterTest.cs
2 parents 9798fee + 79c55f9 commit ac29d34

File tree

64 files changed

+4054
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+4054
-280
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
**/.idea/
2121

2222
## Unity ##
23-
*.meta
23+
[Aa]ssets/**/*.meta
24+
![Aa]ssets/FbxExporters/**/*.meta
2425
[Pp]rojectSettings/*.asset
2526
[Pp]rojectSettings/*.txt
2627

Assets/FbxExporters/Editor.meta

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

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ public static void CopyComponents(GameObject to, GameObject from){
337337
var originalComponents = new List<Component>(to.GetComponents<Component> ());
338338
// copy over meshes, materials, and nothing else
339339
foreach (var component in from.GetComponents<Component>()) {
340+
// ignore missing components
341+
if (component == null) {
342+
continue;
343+
}
344+
340345
var json = EditorJsonUtility.ToJson(component);
341346
if (string.IsNullOrEmpty (json)) {
342347
// this happens for missing scripts
@@ -348,6 +353,11 @@ public static void CopyComponents(GameObject to, GameObject from){
348353

349354
// Find the component to copy to.
350355
for (int i = 0, n = originalComponents.Count; i < n; i++) {
356+
// ignore missing components
357+
if (originalComponents [i] == null) {
358+
continue;
359+
}
360+
351361
if (originalComponents[i].GetType() == expectedType) {
352362
// We have found the component we are looking for,
353363
// remove it so we don't try to copy to it again

Assets/FbxExporters/Editor/ConvertToModel.cs.meta

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

Assets/FbxExporters/Editor/EditorRotate.cs.meta

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

0 commit comments

Comments
 (0)