Skip to content

Commit 763cf4f

Browse files
committed
check for light separately
1 parent c18f28b commit 763cf4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/FbxExporters/Editor/ReviewLastSavedModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ public static void LastSavedModel ()
199199
GameObject camera = new GameObject ("MainCamera");
200200
camera.AddComponent<Camera> ();
201201
camera.tag = "MainCamera";
202-
202+
}
203+
204+
if(!Object.FindObjectOfType<Light>()){
203205
GameObject light = new GameObject ("Light");
204206
light.transform.localEulerAngles = new Vector3 (50, -30, 0);
205207
Light lightComp = light.AddComponent<Light> ();

0 commit comments

Comments
 (0)