Skip to content

Commit

Permalink
Don't overwrite nlogo files with png when using all-previews in 3d
Browse files Browse the repository at this point in the history
Running `all-previews` in headless 3d is not very useful (at least until, if ever, #833 is completed), but this will at least avoid messing up the models themselves.
  • Loading branch information
nicolaspayette authored and mrerrormessage committed Sep 22, 2015
1 parent c425009 commit 8c9c824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/org/nlogo/headless/ChecksumsAndPreviews.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object ChecksumsAndPreviews {
List("HUBNET", "/GOGO/", "/CODE EXAMPLES/SOUND/")
.forall(!path.toUpperCase.containsSlice(_))
def remake(path: String) {
val previewPath = path.replaceFirst("\\.nlogo$", ".png")
val previewPath = path.replaceFirst("\\.nlogo(3d)?$", ".png")
val workspace = HeadlessWorkspace.newInstance
try {
// we set the random seed before opening the model, so that the random-seed will affect the
Expand Down

0 comments on commit 8c9c824

Please sign in to comment.