Skip to content

Commit

Permalink
Removed some redundant code from lighting simple command that set sha…
Browse files Browse the repository at this point in the history
…dows and multishadows parameters to the same value twice.
  • Loading branch information
tomgoddard committed Sep 19, 2024
1 parent d7a8532 commit 9df8e45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bundles/std_commands/src/lighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ def lighting(session, preset = None, direction = None, intensity = None, color =
ms_directions = lighting_settings(session).lighting_multishadow_directions
sil = v.silhouette
if preset == 'default' or preset == 'simple':
lp.shadows = False
lp.multishadow = 0
sil.depth_jump = 0.03
lp.set_default_parameters(v.background_color)
sil.depth_jump = 0.03
elif preset == 'full':
lp.shadows = True
lp.multishadow = ms_directions
Expand Down

0 comments on commit 9df8e45

Please sign in to comment.