Display depth when hovering ImagePanel

Display the depth of the objects under the cursor
This commit is contained in:
Exund
2021-11-29 19:39:23 +01:00
committed by Jindra Petřík
parent 85fb118138
commit 52270d33b0
3 changed files with 7 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ import java.util.concurrent.atomic.AtomicLong;
* @author JPEXS
*/
public class DepthState {
public int depth = -1;
public int characterId = -1;
@@ -113,6 +114,7 @@ public class DepthState {
time = obj.time;
placeObjectTag = obj.placeObjectTag;
minPlaceObjectNum = obj.minPlaceObjectNum;
depth = obj.depth;
if (sameInstance) {
time++;
instanceId = obj.instanceId;

View File

@@ -312,6 +312,7 @@ public class Timeline {
DepthState fl = frame.layers.get(depth);
if (fl == null) {
frame.layers.put(depth, fl = new DepthState(swf, frame));
fl.depth = depth;
}
frame.layersChanged = true;
fl.placeObjectTag = po;