Skip to content

Commit a1c04a7

Browse files
committed
make sure it checks for the latest version for copy the thumbnail
correctly
1 parent 6351105 commit a1c04a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ private void setTimelineImage(List<CSG> currentState, ICaDoodleOpperation op) th
811811
return;
812812
}
813813
} while (!imageCache.exists());
814-
if (currentIndex2 == currentIndex) {
814+
if (getOpperations().get(getOpperations().size()-1)==op) {
815815
Files.copy(imageCache, image);
816816
}
817817
System.err.println("Thumbnail saved successfully to " + imageCache.getAbsolutePath());

0 commit comments

Comments
 (0)