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

Fog Settings Only Display Relevant Parameters #270

Merged

Conversation

Spiderguy-F
Copy link
Contributor

We found a TODO in fog.py and resolved it:
grafik
The Fog component only shows Near and Far when Linear fog is selected and only Density when Exponential fog is selected

Copy link
Contributor

@keianhzo keianhzo left a 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
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the print.

@keianhzo
Copy link
Contributor

There are some formatting errors in the code, please run:
python ./check_style.py
and fix the issues to keep the code format consistency.

Copy link
Contributor

@keianhzo keianhzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@keianhzo keianhzo merged commit 7017c5e into Hubs-Foundation:master Mar 18, 2024
6 checks passed
@GottfriedHofmann GottfriedHofmann deleted the FogDisplayValidOptionsOnly branch March 18, 2024 16:39
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