Skip to content

Commit

Permalink
Feature: Oh yeah, 3D model resaver, too
Browse files Browse the repository at this point in the history
  • Loading branch information
LaCuneta committed Sep 21, 2023
1 parent 7d0ca0b commit dde432d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ When the NetLogo version is bumped, a few changes are required:

- Update the version in `build.sbt`
- Update the expected version in `VersionTests.scala`
- Resave the models using the `runMain org.nlogo.models.ModelsResaver` sbt command.
- Resave the models using the `runMain org.nlogo.models.ModelsResaver` sbt command and then the `runMain org.nlogo.models.ModelsResaver3d` sbt command. These commands must be run separately as the switch for 3D mode is only read once globally.

## Licenses

Expand Down
9 changes: 8 additions & 1 deletion src/main/scala/org/nlogo/models/ModelResaver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,18 @@ import org.nlogo.sdm.{ NLogoSDMFormat, SDMAutoConvertable }
* of the NetLogo repo. -Jeremy B September 2023
*
*/

object ModelResaver3d {
def main(args: Array[String]): Unit = {
System.setProperty("org.nlogo.is3d", "true")
ModelResaver.main(Array())
}
}

object ModelResaver {
def main(args: Array[String]): Unit = {
System.setProperty("org.nlogo.preferHeadless", "true")
System.setProperty("java.awt.headless", "true")

resaveAllModels()
}

Expand Down

0 comments on commit dde432d

Please sign in to comment.