Skip to content

Commit

Permalink
Update for feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jdent02 committed Jun 26, 2020
1 parent 6d92756 commit 6efb8a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/osl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ def update_sockets(self, context):

elif param['type'] == "float":

kwargs = {'name': param['name'], 'description': helper, 'default': float(default)} if 'default' in keys else {'name': param['name'], 'description': helper}
kwargs = {'name': param['name'], 'description': helper}

if 'default' in keys:
kwargs['default'] = float(default)

if minimum is not None:
kwargs['min'] = float(minimum)
if maximum is not None:
Expand Down

0 comments on commit 6efb8a8

Please sign in to comment.