mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-02-01 16:08:17 +00:00
BoxHelper中update(object)函数替换为新版setFromObject(object)函数。
This commit is contained in:
parent
98445da8c4
commit
4cdf2f485c
@ -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();
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user