mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Merge pull request #249 from jareguo/master
add animatable attribute for CCClass
This commit is contained in:
@@ -920,6 +920,11 @@ function parseAttributes (attrs, className, propName) {
|
||||
if (attrs.serializable === false) {
|
||||
result.push(Attr.NonSerialized);
|
||||
}
|
||||
if (CC_EDITOR) {
|
||||
if ('animatable' in attrs && !attrs.animatable) {
|
||||
result.push({ animatable: false });
|
||||
}
|
||||
}
|
||||
|
||||
if (CC_DEV) {
|
||||
var visible = attrs.visible;
|
||||
|
||||
Reference in New Issue
Block a user