mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-08 10:08:12 +00:00
Edit points - show, cancel
This commit is contained in:
@@ -30,6 +30,7 @@ import com.jpexs.decompiler.flash.types.SHAPE;
|
||||
import com.jpexs.decompiler.flash.types.annotations.Reserved;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFType;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFVersion;
|
||||
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
|
||||
import com.jpexs.helpers.ByteArrayRange;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -137,4 +138,17 @@ public class DefineMorphShape2Tag extends MorphShapeTag {
|
||||
public int getShapeNum() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateStartBounds() {
|
||||
super.updateStartBounds();
|
||||
startEdgeBounds = SHAPERECORD.getBounds(startEdges.shapeRecords, null, getShapeNum(), true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateEndBounds() {
|
||||
super.updateEndBounds();
|
||||
endEdgeBounds = SHAPERECORD.getBounds(endEdges.shapeRecords, null, getShapeNum(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -359,4 +359,17 @@ public abstract class MorphShapeTag extends DrawableTag {
|
||||
cmse.export();
|
||||
result.append(cmse.getShapeData());
|
||||
}
|
||||
|
||||
public void updateStartBounds() {
|
||||
startBounds = SHAPERECORD.getBounds(startEdges.shapeRecords, morphLineStyles.getStartLineStyles(getShapeNum()), getShapeNum(), false);
|
||||
}
|
||||
|
||||
public void updateEndBounds() {
|
||||
startBounds = SHAPERECORD.getBounds(endEdges.shapeRecords, morphLineStyles.getEndLineStyles(getShapeNum()), getShapeNum(), false);
|
||||
}
|
||||
|
||||
public void updateBounds() {
|
||||
updateStartBounds();
|
||||
updateEndBounds();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.jpexs.decompiler.flash.types.LINESTYLE;
|
||||
import com.jpexs.decompiler.flash.types.LINESTYLE2;
|
||||
import com.jpexs.decompiler.flash.types.LINESTYLEARRAY;
|
||||
import com.jpexs.decompiler.flash.types.MATRIX;
|
||||
import com.jpexs.decompiler.flash.types.MORPHLINESTYLEARRAY;
|
||||
import com.jpexs.decompiler.flash.types.RECT;
|
||||
import com.jpexs.decompiler.flash.types.RGB;
|
||||
import com.jpexs.decompiler.flash.types.RGBA;
|
||||
|
||||
Reference in New Issue
Block a user