BoxHelper中update(object)函数替换为新版setFromObject(object)函数。

This commit is contained in:
liteng 2018-06-13 20:39:24 +08:00
parent 98445da8c4
commit 4cdf2f485c

View File

@ -66,7 +66,7 @@ function Viewport(editor) {
if (object !== undefined) {
selectionBox.update(object);
selectionBox.setFromObject(object);
if (editor.helpers[object.id] !== undefined) {
@ -414,7 +414,7 @@ function Viewport(editor) {
if (object !== undefined) {
selectionBox.update(object);
selectionBox.setFromObject(object);
}
@ -436,7 +436,7 @@ function Viewport(editor) {
if (editor.selected === object) {
selectionBox.update(object);
selectionBox.setFromObject(object);
transformControls.update();
}