fix model

This commit is contained in:
Yun Hsiao Wu
2019-01-21 17:07:24 +08:00
parent 34cfd8ae6b
commit 65026bf0d4
+2 -2
View File
@@ -95,9 +95,9 @@ export class Model {
}
public _updateTransform () {
if (!this._node.hasChanged) {
if (this._node.hasChanged) {
this._node.updateWorldTransformFull();
if (!this._modelBounds) {
if (this._modelBounds) {
this._modelBounds.transform(
// @ts-ignore