-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fog Settings Only Display Relevant Parameters #270
Fog Settings Only Display Relevant Parameters #270
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the contribution, just a couple minor things and this is ready. Thanks!
@@ -29,7 +39,7 @@ class Fog(HubsComponent): | |||
min=0, | |||
max=1) | |||
|
|||
# TODO Make these properties to be displayed dynamically based on the fog type | |||
# TODO Make these properties to be displayed dynamically based on the fog type, BlenderDiplom: Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to remove this as it's not a TODO anymore and the commit and the commit author already give you the information that you are adding.
def draw(self, context, layout, panel): | ||
'''Draw method to be called by the panel. The base class method will print all the component properties''' | ||
layout.prop(data=self, property="type") | ||
print("Type:", self.type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the print.
There are some formatting errors in the code, please run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
We found a TODO in fog.py and resolved it:
The Fog component only shows Near and Far when Linear fog is selected and only Density when Exponential fog is selected