Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2210 from pypeclub/bugfix/OP-1901-Maya-multiple-s…
Browse files Browse the repository at this point in the history
…ubsets-review-broken
  • Loading branch information
mkolar authored Nov 8, 2021
2 parents ac404b6 + 8d67aa1 commit 8bb4e42
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions openpype/hosts/maya/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2183,10 +2183,11 @@ def load_capture_preset(data=None):
for key in preset['Display Options']:
if key.startswith('background'):
disp_options[key] = preset['Display Options'][key]
disp_options[key][0] = (float(disp_options[key][0])/255)
disp_options[key][1] = (float(disp_options[key][1])/255)
disp_options[key][2] = (float(disp_options[key][2])/255)
disp_options[key].pop()
if len(disp_options[key]) == 4:
disp_options[key][0] = (float(disp_options[key][0])/255)
disp_options[key][1] = (float(disp_options[key][1])/255)
disp_options[key][2] = (float(disp_options[key][2])/255)
disp_options[key].pop()
else:
disp_options['displayGradient'] = True

Expand Down

0 comments on commit 8bb4e42

Please sign in to comment.