mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-11 15:02:26 +00:00
Fixed: #1570 Incorrect shape rendering when edge is reversed
This commit is contained in:
@@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
|
||||
- #1634 AS3 slot/const editor loses focus on edit button press
|
||||
- #1636 Exception after search - traitslist with not properly set abc, other ui exception
|
||||
- Flash viewer- cyclic DefineSprite usage
|
||||
- #1570 Incorrect shape rendering when edge is reversed
|
||||
|
||||
### Removed
|
||||
- #1631 ActiveX Flash component download in windows installer
|
||||
|
||||
@@ -46,6 +46,8 @@ import java.util.Map;
|
||||
*/
|
||||
public abstract class ShapeExporterBase implements IShapeExporter {
|
||||
|
||||
private static final boolean USE_REVERSE_LOOKUP = true;
|
||||
|
||||
protected final SHAPE shape;
|
||||
|
||||
private final List<FillStyle> _fillStyles;
|
||||
@@ -454,13 +456,10 @@ public abstract class ShapeExporterBase implements IShapeExporter {
|
||||
if (edge != null) {
|
||||
idx = subPath.indexOf(edge);
|
||||
} else {
|
||||
|
||||
boolean useNew = false;
|
||||
|
||||
IEdge revEdge = findNextEdgeInCoordMap(reverseCoordMap, prevEdge);
|
||||
|
||||
if (revEdge != null) {
|
||||
if (useNew) {
|
||||
if (USE_REVERSE_LOOKUP) {
|
||||
idx = subPath.indexOf(revEdge);
|
||||
IEdge r = revEdge.reverseWithNewFillStyle(revEdge.getFillStyleIdx());
|
||||
updateEdgeInCoordMap(coordMap, revEdge, r);
|
||||
|
||||
Reference in New Issue
Block a user