Skip to content

Commit

Permalink
Merge pull request mrdoob#16929 from Mugen87/dev35
Browse files Browse the repository at this point in the history
TransformControls: Align .attach() method to Object3D.
  • Loading branch information
Mugen87 authored Jun 30, 2019
2 parents 2ac4def + a4fbf22 commit d713b77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/js/controls/TransformControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ THREE.TransformControls = function ( camera, domElement ) {
this.object = object;
this.visible = true;

return this;

};

// Detatch from object
Expand All @@ -151,6 +153,8 @@ THREE.TransformControls = function ( camera, domElement ) {
this.visible = false;
this.axis = null;

return this;

};

// Defined getter, setter and store for a property
Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/controls/TransformControls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class TransformControls extends Object3D {
visible: boolean;

attach(object: Object3D): this;
detach(): void;
detach(): this;
pointerHover(pointer: Object): void;
pointerDown(pointer: Object): void;
pointerMove(pointer: Object): void;
Expand Down
4 changes: 4 additions & 0 deletions examples/jsm/controls/TransformControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ var TransformControls = function ( camera, domElement ) {
this.object = object;
this.visible = true;

return this;

};

// Detatch from object
Expand All @@ -176,6 +178,8 @@ var TransformControls = function ( camera, domElement ) {
this.visible = false;
this.axis = null;

return this;

};

// Defined getter, setter and store for a property
Expand Down

0 comments on commit d713b77

Please sign in to comment.