提交 0b3a32ff 编写于 作者: A Aleksandar Rodic

added uptade event when chaning mode, space and gizmo size (visual change)

上级 59db2ace
......@@ -680,6 +680,7 @@ THREE.TransformControls = function ( camera, domElement ) {
this.gizmo[_mode].show();
this.update();
scope.dispatchEvent( changeEvent );
}
......@@ -693,14 +694,15 @@ THREE.TransformControls = function ( camera, domElement ) {
scope.size = size;
this.update();
scope.dispatchEvent( changeEvent );
}
this.setSpace = function ( space ) {
scope.space = space;
this.update();
scope.dispatchEvent( changeEvent );
}
......@@ -737,7 +739,6 @@ THREE.TransformControls = function ( camera, domElement ) {
if ( scope.object === undefined || _dragging == true ) return;
event.preventDefault();
event.stopPropagation();
var pointer = event.touches? event.touches[0] : event;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册