mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 17:42:41 +08:00
Merge pull request #154 from 2youyouo2/master
if value is null, should not update clip
This commit is contained in:
@@ -106,7 +106,7 @@ var Animation = cc.Class({
|
||||
set: function (value, force) {
|
||||
this._currentClip = value;
|
||||
|
||||
if (CC_EDITOR && force) {
|
||||
if (CC_EDITOR && force && value) {
|
||||
this._updateClip(value);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user