Skip to content

Conversation

@MeFisto94
Copy link
Member

  • Fixed a NPE when trying to select a Node. Now you can properly remove/edit nodes
  • "smartLog" now compares the hash across different instances (Two Material Previews led to duplicate log messages)
  • Using smartLog for CompilationErrors now to not spam the log with 60 FPS

The Lookup failed because there was no Instance of MatDefNavigatorPanel.
Now everything works as intended (You can remove Nodes, change their properties, or at least select them without a crash.)

When you produce a shader compilation error, you have the same error printed three times (wireframe (geometry), solid (color) and a third). This doesn't happen anymore, since the hash is now static.

However I am uncertain because of such an example:
When you have two instances, one constantly printing a and one constantly printing b. Then smartLog wouldn't work. Since we have three Renderers with the same Material this is very unlikely.

 * Fixed a NPE when trying to select a Node. Now you can properly remove/edit nodes
 * "smartLog" now compares the hash across different instances (Two Material Previews led to duplicate log messages)
 * Using smartLog for CompilationErrors now to not spam the log with 60 FPS
@Nehon
Copy link
Contributor

Nehon commented Feb 28, 2016

Well there could be more than 3 renderers in the future, if we use MRT.
Basically we'll have several color preview.
Anyway, we'll see when we're there.
Thanks for the fixes

Nehon added a commit that referenced this pull request Feb 28, 2016
Improved ShaderNodes, fixed some issues with error management and crash when selecting some nodes
@Nehon Nehon merged commit 963bbd4 into jMonkeyEngine:master Feb 28, 2016
@MeFisto94 MeFisto94 deleted the ShaderNodes branch February 28, 2016 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants