Skip to content

Commit 9cbb8a1

Browse files
committed
Revert "temp"
This reverts commit 5188405.
1 parent 5188405 commit 9cbb8a1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Assets/FbxExporters/Editor/FbxPrefabAutoUpdater.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -819,10 +819,6 @@ void ClassifyComponents(Transform newFbx, Transform prefab)
819819
// Already updated => skip.
820820
continue;
821821
}
822-
Debug.Log ("update component for: " + name + ": " + typename);
823-
if (i < oldN) {
824-
Debug.LogWarning ("oldvalue : " + oldValues [i] + ", new value: " + newValue);
825-
}
826822
Append (m_componentsToUpdate, name,
827823
new ComponentValue(componentTypes[typename], newValue));
828824
} else {
@@ -914,7 +910,6 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
914910

915911
Log("{0}: created new GameObject", name);
916912
updatedNodes.Add(newNode);
917-
Debug.LogWarning ("created: " + newNode.name);
918913
}
919914

920915
// Implement the reparenting in two phases to avoid making loops, e.g.
@@ -942,7 +937,6 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
942937

943938
Log("changed {0} parent to {1}", name, parentNode.name);
944939
updatedNodes.Add(childNode.gameObject);
945-
Debug.LogWarning ("changed name: " + childNode.name);
946940
}
947941

948942
// Destroy the old nodes. Remember that DestroyImmediate recursively
@@ -963,7 +957,6 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
963957
var typesToDestroy = kvp.Value;
964958
var prefabXfo = prefabNodes[nodeName];
965959
updatedNodes.Add(prefabXfo.gameObject);
966-
Debug.LogWarning ("destroy component: " + prefabXfo.name);
967960

968961
foreach(var componentType in typesToDestroy) {
969962
var component = prefabXfo.GetComponent(componentType);
@@ -980,7 +973,6 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
980973
var fbxComponents = kvp.Value;
981974
var prefabXfo = prefabNodes[nodeName];
982975
updatedNodes.Add(prefabXfo.gameObject);
983-
Debug.LogWarning ("update component: " + prefabXfo.name);
984976

985977
// Copy the components once so we can match them up even if there's multiple fbxComponents.
986978
List<Component> prefabComponents = new List<Component>(prefabXfo.GetComponents<Component>());
@@ -999,8 +991,6 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
999991
Log("created component {0}:{1}", nodeName, fbxComponent.t);
1000992
}
1001993

1002-
Debug.LogWarning ("prefab component: " + prefabComponent.GetType().Name);
1003-
1004994
//If the prefabComponent has not been assigned yet,
1005995
//it means that we couldn't find it, and that we tried to add it but that it seems like it already exists.
1006996
if (!prefabComponent) {

0 commit comments

Comments
 (0)