Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix instantiate prefab scale error #4454

Merged
merged 1 commit into from May 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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