Fix #141399: Operator search throws error in empty VSE
Python AttributeError was thrown, because `strip.type` was accessed, while `strip` was `None`. Pull Request: https://projects.blender.org/blender/blender/pulls/141421
This commit is contained in:
committed by
Richard Antalik
parent
ad7943d6c2
commit
59173b6f92
@@ -661,7 +661,7 @@ class SEQUENCER_MT_change(Menu):
|
||||
del bpy_data_scenes_len
|
||||
|
||||
layout.operator_context = 'INVOKE_DEFAULT'
|
||||
if strip.type in {
|
||||
if strip and strip.type in {
|
||||
'CROSS', 'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
|
||||
'GAMMA_CROSS', 'MULTIPLY', 'WIPE', 'GLOW',
|
||||
'TRANSFORM', 'SPEED', 'MULTICAM', 'ADJUSTMENT',
|
||||
|
||||
Reference in New Issue
Block a user