mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-27 22:04:46 +00:00
Fixed: Select depth exception when timelined is null
This commit is contained in:
@@ -725,13 +725,18 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
|
||||
depths = new ArrayList<>(depths);
|
||||
|
||||
Frame fr = timelined.getTimeline().getFrame(frame);
|
||||
|
||||
for (int i = 0; i < depths.size(); i++) {
|
||||
int depth = depths.get(i);
|
||||
if (fr == null || !fr.layers.containsKey(depth)) {
|
||||
depths.remove(i);
|
||||
i--;
|
||||
if (timelined == null) {
|
||||
depths = new ArrayList<>();
|
||||
} else {
|
||||
Frame fr = timelined.getTimeline().getFrame(frame);
|
||||
|
||||
for (int i = 0; i < depths.size(); i++) {
|
||||
int depth = depths.get(i);
|
||||
if (fr == null || !fr.layers.containsKey(depth)) {
|
||||
depths.remove(i);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user