Selaa lähdekoodia

Use camera minDistance to limit maximum zoom (#147)

Leonardo Jeanteur 4 vuotta sitten
vanhempi
commit
f1a9a068f3
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 1 0
      hide/comp/SceneEditor.hx
  2. 1 0
      hide/view/l3d/Level3D.hx

+ 1 - 0
hide/comp/SceneEditor.hx

@@ -308,6 +308,7 @@ class SceneEditor {
 		c.panSpeed = 0.6;
 		c.zoomAmount = 1.05;
 		c.smooth = 0.7;
+		c.minDistance = 1;
 		return c;
 	}
 

+ 1 - 0
hide/view/l3d/Level3D.hx

@@ -103,6 +103,7 @@ private class Level3DSceneEditor extends hide.comp.SceneEditor {
 		c.panSpeed = 0.6;
 		c.zoomAmount = 1.05;
 		c.smooth = 0.7;
+		c.minDistance = 1;
 		return c;
 	}