mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
Merge pull request #1440 from natural-law/issue5081
Solve the reviewed issue.
This commit is contained in:
@@ -760,8 +760,7 @@ var TiledMap = cc.Class({
|
||||
sgLayerNames.push(child.getLayerName());
|
||||
sgLayers.push(child);
|
||||
}
|
||||
|
||||
if (child instanceof _ccsg.TMXObjectGroup) {
|
||||
else if (child instanceof _ccsg.TMXObjectGroup) {
|
||||
sgLayerNames.push(child.getGroupName());
|
||||
sgLayers.push(child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user