Skip to content

Commit

Permalink
Fixed Style Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiderguy-F committed Mar 14, 2024
1 parent da9bf97 commit 3895563
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/io_hubs_addon/components/definitions/fog.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ class Fog(HubsComponent):
'icon': 'MOD_OCEAN',
'version': (1, 0, 0)
}

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)
if self.type == "linear":
layout.prop(data=self, property="near")
layout.prop(data=self, property="far")
Expand All @@ -39,7 +38,6 @@ def draw(self, context, layout, panel):
min=0,
max=1)

# TODO Make these properties to be displayed dynamically based on the fog type, BlenderDiplom: Done
near: FloatProperty(
name="Near", description="Fog Near Distance (linear only)", default=1.0)

Expand Down

0 comments on commit 3895563

Please sign in to comment.