Explorar o código

Editor: made intersection plane larger (so that you can drag objects also when zoomed out).

alteredq %!s(int64=13) %!d(string=hai) anos
pai
achega
3b4dc1b651
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/js/ui/Viewport.js

+ 1 - 1
editor/js/ui/Viewport.js

@@ -100,7 +100,7 @@ var Viewport = function ( signals ) {
 
 	// object picking
 
-	var intersectionPlane = new THREE.Mesh( new THREE.PlaneGeometry( 2000, 2000, 8, 8 ) );
+	var intersectionPlane = new THREE.Mesh( new THREE.PlaneGeometry( 10000, 10000, 8, 8 ) );
 	intersectionPlane.visible = false;
 	sceneHelpers.add( intersectionPlane );