Merge pull request #1440 from natural-law/issue5081

Solve the reviewed issue.
This commit is contained in:
Jare Guo
2017-01-16 14:00:15 +08:00
committed by GitHub
+1 -2
View File
@@ -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);
}