Browse Source

invert null check

Dan Korostelev 7 years ago
parent
commit
f5acdda80e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/view/Prefab.hx

+ 1 - 1
hide/view/Prefab.hx

@@ -166,7 +166,7 @@ class Prefab extends FileView {
 
 		resetCamera();
 		var cam = getDisplayState("Camera");
-		if( cam == null ) {
+		if( cam != null ) {
 			scene.s3d.camera.pos.set(cam.x, cam.y, cam.z);
 			scene.s3d.camera.target.set(cam.tx, cam.ty, cam.tz);
 		}