Closed JenusL closed 5 years ago
So I thought I would loop through all open PPGs and only run InspectObj()
if closure
is main content.
Application.Desktop.ActiveLayout.Views
doesn't return any PPGs and I can't find any other way at all to get them.
I've tried all I can think of but can't really find a solution to this other than to remove the code completely.
@caron Any thoughts?
Looking at it now...
Hmm, this is tricky. Maybe we can inspect the material node also. InspectObj
takes a string list so we can pass both the input and output of the closure
node.
Great thinking! So I just tried that and it doesn't work either :( It creates an infinite recursion because Material wants to show closure so the logic runs over and over.
Right, doh! I am fine removing it, it was just a 'nice' thing to have. Don't want to cause trouble.
Created a revert PR. I agree it was a nice thing to have. Maybe we can revisit it some time.
Looks like #40 introduced a nasty bug. It's impossible to inspect the Material node because it just jumps to standard_surface. This is because Material shows the closure PPG inside it. This makes it impossible to choose OpenGL settings like the texture to show in the viewport.