mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-11 18:20:16 +08:00
CCClass: allow array type working togather with getter (#3545)
This commit is contained in:
@@ -159,7 +159,7 @@ function checkUrl (val, className, propName, url) {
|
||||
|
||||
function parseType (val, type, className, propName) {
|
||||
if (Array.isArray(type)) {
|
||||
if (CC_EDITOR) {
|
||||
if (CC_EDITOR && 'default' in val) {
|
||||
var isArray = require('./CCClass').isArray; // require lazily to avoid circular require() calls
|
||||
if (!isArray(val.default)) {
|
||||
cc.warnID(5507, className, propName);
|
||||
|
||||
Reference in New Issue
Block a user