Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development side: addMaterial() #296

Merged
merged 3 commits into from
Feb 1, 2021
Merged

Development side: addMaterial() #296

merged 3 commits into from
Feb 1, 2021

Conversation

mcbrown042
Copy link
Collaborator

changes to addMaterial() allowing existing material in ground.rad to be overwritten instead of creating multiple instances of material within file.

mcbrown042 and others added 3 commits January 8, 2021 09:54
RadianceObj.addMaterial() now overwrites existing material with new instance based on matching name and type.
If previous instance preferred, set parameter
>>> rewrite=False
Shortened code, fixed EOL errors. Satisfies testing of new mat, overwrite new mat, overwrite old mat, setting ground to overwrite of new and old mats.
@shirubana shirubana merged commit 8a4d92a into development Feb 1, 2021
@shirubana shirubana deleted the development_side branch February 1, 2021 15:28
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.

None yet

2 participants