From 65026bf0d4fec13386b32681bd339a71c3280391 Mon Sep 17 00:00:00 2001 From: Yun Hsiao Wu Date: Mon, 21 Jan 2019 17:07:24 +0800 Subject: [PATCH] fix model --- cocos/renderer/scene/model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/renderer/scene/model.ts b/cocos/renderer/scene/model.ts index 83fc3c003f..b601af39d1 100644 --- a/cocos/renderer/scene/model.ts +++ b/cocos/renderer/scene/model.ts @@ -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