Skip to content

Commit 9e866a3

Browse files
committed
add a ruler location to the cadoodle file
1 parent 9b91332 commit 9e866a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/CaDoodleFile.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public class CaDoodleFile {
5555
@Expose(serialize = true, deserialize = true)
5656
private String projectName = NO_NAME;
5757
@Expose(serialize = true, deserialize = true)
58+
private TransformNR rulerLocation = new TransformNR();
59+
@Expose(serialize = true, deserialize = true)
5860
private TransformNR workplane = new TransformNR();
5961
@Expose(serialize = false, deserialize = false)
6062
private File selfInternal;
@@ -857,4 +859,14 @@ private void setRegenerating(boolean regenerating) {
857859
this.regenerating = regenerating;
858860
}
859861

862+
public TransformNR getRulerLocation() {
863+
return rulerLocation;
864+
}
865+
866+
public void setRulerLocation(TransformNR rulerLocation) {
867+
this.rulerLocation = rulerLocation;
868+
fireWorkplaneChange();
869+
fireSaveSuggestion();
870+
}
871+
860872
}

0 commit comments

Comments
 (0)