Issue #524 Mask layer not applied when script layer not empty

This commit is contained in:
Jindra Petřík
2014-09-28 11:52:28 +02:00
parent 01fa2bd5e2
commit 05f47b1052

View File

@@ -2199,11 +2199,16 @@ public class XFLConverter {
ret += "<layers>";
ret += convertLabelsLayer(spriteId, tags, timelineTags, backgroundColor);
ret += convertActionScriptLayer(spriteId, tags, timelineTags, backgroundColor);
String scriptLayer = convertActionScriptLayer(spriteId, tags, timelineTags, backgroundColor);
int index = 0;
if(!scriptLayer.isEmpty()){
index++;
}
ret += scriptLayer;
int layerCount = getLayerCount(timelineTags);
Stack<Integer> parentLayers = new Stack<>();
int index = 0;
for (int d = layerCount; d >= 1; d--, index++) {
for (Tag t : timelineTags) {
if (t instanceof PlaceObjectTypeTag) {