Fixed Shape not clipped when clip area ouside of view

This commit is contained in:
Jindra Petřík
2022-10-26 14:28:01 +02:00
parent d5399a0513
commit 3e67636555
2 changed files with 5 additions and 2 deletions
@@ -660,10 +660,12 @@ public class Timeline {
fg.drawRect((int) (viewRectZoom.xMin / SWF.unitDivisor + 5), (int) (viewRectZoom.yMin / SWF.unitDivisor + 5), (int) (viewRectZoom.getWidth() / SWF.unitDivisor - 5), (int) (viewRectZoom.getHeight() / SWF.unitDivisor - 5));
*/
if (!viewRectZoom.intersects(fullRect)) {
//System.err.println("hidden " + layer.characterId);
if (clipDepth > -1) {
Clip clip = new Clip(new Area(), clipDepth);
clips.add(clip);
}
return;
}
strokeTransform = strokeTransform.concatenate(layerMatrix);
boolean cacheAsBitmap = layer.cacheAsBitmap() && layer.placeObjectTag != null && drawable.isSingleFrame();