Skip to content

Commit

Permalink
fix instantiate prefab scale error (#4454)
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxHuang authored and jareguo committed May 20, 2019
1 parent 101e62e commit db34f28
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cocos2d/core/CCNode.js
Expand Up @@ -560,7 +560,7 @@ var Node = cc.Class({
default: undefined,
type: cc.Float
},
_scale: cc.Vec3,
_scale: cc.v3(1, 1, 1),
_rotationX: 0.0,
_rotationY: 0.0,
_quat: cc.Quat,
Expand Down Expand Up @@ -1150,11 +1150,6 @@ var Node = cc.Class({
// Mouse event listener
this._mouseListener = null;

// default scale
this._scale.x = 1;
this._scale.y = 1;
this._scale.z = 1;

this._matrix = mathPools.mat4.get();
this._worldMatrix = mathPools.mat4.get();
this._localMatDirty = LocalDirtyFlag.ALL;
Expand Down

0 comments on commit db34f28

Please sign in to comment.