diff --git a/scripts/startup/bl_ui/space_sequencer.py b/scripts/startup/bl_ui/space_sequencer.py index 702fdac4e44..194b7919c30 100644 --- a/scripts/startup/bl_ui/space_sequencer.py +++ b/scripts/startup/bl_ui/space_sequencer.py @@ -529,7 +529,7 @@ class SEQUENCER_MT_select(Menu): st = context.space_data has_sequencer, has_preview = _space_view_types(st) is_retiming = ( - context.sequencer_scene and + context.sequencer_scene is not None and context.sequencer_scene.sequence_editor is not None and context.sequencer_scene.sequence_editor.selected_retiming_keys ) @@ -1044,7 +1044,7 @@ class SEQUENCER_MT_strip_retiming(Menu): is_retiming = ( context.sequencer_scene is not None and context.sequencer_scene.sequence_editor is not None and - context.sequencer_scene.sequence_editor.selected_retiming_keys is not None + context.sequencer_scene.sequence_editor.selected_retiming_keys ) strip = context.active_strip diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index c20ae3ca3c0..15ba46c83e5 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -2376,6 +2376,9 @@ static std::optional compositor_node_get_execution_tim if (const timeit::Nanoseconds *execution_time = tree_draw_ctx.compositor_per_node_execution_time->lookup_ptr(key)) { + if (execution_time->count() == 0) { + return std::nullopt; + } return *execution_time; }