Skip to content

Commit

Permalink
Scene validation - post process props
Browse files Browse the repository at this point in the history
  • Loading branch information
p2or committed Mar 20, 2024
1 parent d6983fa commit 9961fb0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions loom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,16 +1220,16 @@ def execute(self, context):
user_error = True

""" Scene validation """
if len(scn.sequence_editor.sequences):
if scn.render.use_sequencer and len(scn.sequence_editor.sequences):
if self.validate_sequencer(context):
if not user_input.isdigit():
self.report(
{'INFO'},
"Scene Strip(s) in 'Sequencer' detected: "
"Switched to commandline rendering...")
"Switched to Command Line rendering...")
lum.command_line = True
else:
if scn.use_nodes:
if scn.render.use_compositing and scn.use_nodes:
rlyr = self.validate_comp(context)
if rlyr is not None:
self.report(
Expand Down Expand Up @@ -3938,16 +3938,16 @@ def execute(self, context):

""" Scene validation in case the operator is called via console """
if self.validate_scene:
if len(scn.sequence_editor.sequences):
if scn.render.use_sequencer and len(scn.sequence_editor.sequences):
if self.validate_sequencer(context):
if len(self._frames) > 1 and not self.render_silent:
self.report(
{'INFO'},
"Scene Strip(s) in 'Sequencer' detected: "
"Automatically switched to silent rendering...")
"Automatically switched to 'silent' rendering...")
self.render_silent = True
else:
if scn.use_nodes:
if scn.render.use_compositing and scn.use_nodes:
rlyr = self.validate_comp(context)
if rlyr is not None:
self.report(
Expand Down

0 comments on commit 9961fb0

Please sign in to comment.