Fixed #1932 Wrong subsprite frames display

This commit is contained in:
Jindra Petřík
2023-01-06 22:02:45 +01:00
parent 774b834ad5
commit b4bf6fe0ab
15 changed files with 647 additions and 5 deletions

View File

@@ -741,8 +741,8 @@ public class Timeline {
if (cacheAsBitmap && renderContext.displayObjectCache != null) {
DisplayObjectCacheKey key = new DisplayObjectCacheKey(layer.placeObjectTag, unzoom, viewRect);
img = renderContext.displayObjectCache.get(key);
}
}
int stateCount = renderContext.stateUnderCursor == null ? 0 : renderContext.stateUnderCursor.size();
int dframe;
if (fontFrameNum != -1) {
@@ -750,8 +750,7 @@ public class Timeline {
} else {
dframe = time % drawableFrameCount;
}
int dtime = 0;
int dtime = time - dframe;
ExportRectangle viewRect2 = new ExportRectangle(viewRect);
if (filters != null && filters.size() > 0) {