mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Merge pull request #2098 from jareguo/v1.7
spine's __preload should not reinvoked in dev mode
This commit is contained in:
@@ -390,9 +390,8 @@ sp.Skeleton = cc.Class({
|
||||
// IMPLEMENT
|
||||
|
||||
__preload: function () {
|
||||
if (CC_EDITOR || CC_DEV) {
|
||||
if (CC_EDITOR) {
|
||||
var Flags = cc.Object.Flags;
|
||||
this._objFlags &= Flags.PersistentMask; // for v1.0 project
|
||||
this._objFlags |= (Flags.IsAnchorLocked | Flags.IsSizeLocked);
|
||||
}
|
||||
// sgNode 的尺寸不是很可靠 同时 Node 的框框也没办法和渲染匹配 只好强制尺寸为零
|
||||
|
||||
Reference in New Issue
Block a user