Skip to content

Commit 31e7498

Browse files
committed
Merge branch 'kh/add-cadoodle' of git@github.com:CommonWealthRobotics/bowler-script-kernel.git into kh/add-cadoodle
2 parents 20a6549 + ff2b77f commit 31e7498

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,8 @@ public File save() throws IOException {
689689
private void setTimelineImage(List<CSG> currentState, int currentIndex2) throws IOException {
690690
if(selfInternal==null)
691691
return;
692+
if(currentIndex2==0)
693+
return;
692694
File parent = selfInternal.getAbsoluteFile().getParentFile();
693695
File imageCache = new File(parent.getAbsolutePath() + delim() + "timeline" + delim() + currentIndex2 + ".png");
694696
File image = new File(parent.getAbsolutePath() + delim() + "snapshot.png");

0 commit comments

Comments
 (0)