Conversation
…: min and max values are reset when the material changes)
… materials selected
… into smg/all-materials
…removing nodes. this is done by defining a collection of sockets for each material.
…ded, deleted or their name is edited.
* subpanels are updated when materials are added, removed, their names are edited or the use_node checkbox status changes. * also the operator only shows if there are input nodes for that material. * The operator per subpanel is disabled as it is not working yet.
…a subpanel is clicked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extended the materials panel to show a subpanel for each existing material. Closes #13
This was a modification from the initial approach, in which the materials panel only showed info for the currently active material.
Features:
use_nodes=Trueare added to the list. By default,use_nodesis set to True, but this is a convenient way to add/remove materials from the panel.configmodule to define parameters that need to be shared several modules.Approach to define a subpanel and view-graph operator for each material:
I followed the example here. The idea is that I define a maximum number of subpanels (100 for now), but only display as many subpanels as materials are defined. Although some subpanels will never be used, this is more robust than defining the subpanels as needed. I applied the same method for the view-graph operators.