Skip to content

Commit

Permalink
Editor: Fixed issue in TransformControls that disabled the controls w…
Browse files Browse the repository at this point in the history
…hen deleting an object while rollovering it.
  • Loading branch information
mrdoob committed Jul 19, 2013
1 parent 55d6ec2 commit 2524525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/js/Viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ var Viewport = function ( editor ) {

if ( object.userData.object !== undefined ) {


// helper

editor.select( object.userData.object );

} else {
Expand Down
1 change: 1 addition & 0 deletions examples/js/controls/TransformControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ THREE.TransformControls = function ( camera, domElement, doc ) {
this.detach = function ( object ) {

this.object = undefined;
this.hovered = false;

this.hide();

Expand Down

0 comments on commit 2524525

Please sign in to comment.