Skip to content

Commit

Permalink
fix: use secondary output type vars only if color image is used in li…
Browse files Browse the repository at this point in the history
…ght effect
  • Loading branch information
vasarhelyi committed Jul 28, 2023
1 parent ea4d848 commit 648fa49
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/sbstudio/plugin/model/light_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,10 @@ def get_output_based_on_output_type(
outputs_x, common_output_x = get_output_based_on_output_type(
self.output, self.output_mapping_mode
)
outputs_y, common_output_y = get_output_based_on_output_type(
self.output_y, self.output_mapping_mode_y
)
if color_image is not None:
outputs_y, common_output_y = get_output_based_on_output_type(
self.output_y, self.output_mapping_mode_y
)

# Get the additional predicate required to evaluate whether the effect
# will be applied at a given position
Expand Down

0 comments on commit 648fa49

Please sign in to comment.