OpenSpace / OpenSpace

This is the official GitHub repository for OpenSpace: an open source astrovisualization project. For instructions on how to build and run OpenSpace, see the Getting Started Guides on the wiki page at http://docs.openspaceproject.com.
http://openspaceproject.com
Other
778 stars 121 forks source link

Shift/T to toggle shadows of Pluto and Charon only works on Pluto #1463

Closed estrelanova closed 3 years ago

estrelanova commented 3 years ago

Shift/T to toggle shadows of Pluto and Charon only works on Pluto, the shadow of Charon remains visible.

I'm using 0.16.0 on a Windows 10 machine.

<< Attach screenshots, if possible >>

alexanderbock commented 3 years ago

Thanks! I just fixed it in master. If you want to hotfix it on your end:

  1. Open the data/profile/newhorizons.profile in a text editor
  2. Add the Charon changing code to line 197

Before:

      "script": "openspace.setPropertyValueSingle('Scene.PlutoShadow.Renderable.Enabled', not openspace.getPropertyValue('Scene.PlutoShadow.Renderable.Enabled'));"

After:

      "script": "openspace.setPropertyValueSingle('Scene.PlutoShadow.Renderable.Enabled', not openspace.getPropertyValue('Scene.PlutoShadow.Renderable.Enabled'));openspace.setPropertyValueSingle('Scene.CharonShadow.Renderable.Enabled', not openspace.getPropertyValue('Scene.CharonShadow.Renderable.Enabled'));"