Skip to content

Commit ff2b77f

Browse files
committed
new files should not generate a blank image
1 parent 9b91332 commit ff2b77f

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
@@ -686,6 +686,8 @@ public File save() throws IOException {
686686
private void setTimelineImage(List<CSG> currentState, int currentIndex2) throws IOException {
687687
if(selfInternal==null)
688688
return;
689+
if(currentIndex2==0)
690+
return;
689691
File parent = selfInternal.getAbsoluteFile().getParentFile();
690692
File imageCache = new File(parent.getAbsolutePath() + delim() + "timeline" + delim() + currentIndex2 + ".png");
691693
File image = new File(parent.getAbsolutePath() + delim() + "snapshot.png");

0 commit comments

Comments
 (0)