Selaa lähdekoodia

Editor: Update selectionBox when geometry changes.

Mr.doob 10 vuotta sitten
vanhempi
commit
297addec42
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      editor/js/Viewport.js

+ 7 - 1
editor/js/Viewport.js

@@ -341,7 +341,13 @@ var Viewport = function ( editor ) {
 
 	} );
 
-	signals.geometryChanged.add( render );
+	signals.geometryChanged.add( function ( geometry ) {
+
+		selectionBox.update( editor.selected );
+
+		render();
+
+	} );
 
 	signals.objectAdded.add( function ( object ) {