mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-12 19:58:25 +00:00
Do not calculate rect of Sprite from fonts on stage.
This commit is contained in:
@@ -27,6 +27,7 @@ import com.jpexs.decompiler.flash.tags.base.BoundedTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.CharacterIdTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.CharacterTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.DrawableTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.FontTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.PlaceObjectTypeTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.RemoveTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.RenderContext;
|
||||
@@ -267,6 +268,12 @@ public class DefineSpriteTag extends DrawableTag implements Timelined {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (characterId != -1 && swf != null) {
|
||||
//Do not handle Fonts as characters. TODO: make this better
|
||||
if (swf.getCharacter(characterId) instanceof FontTag) {
|
||||
characterId = -1;
|
||||
}
|
||||
}
|
||||
if (characterId == -1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user