diff --git a/scripts/modules/bpy_types.py b/scripts/modules/bpy_types.py index 209f7ed050c..d7faf00135a 100644 --- a/scripts/modules/bpy_types.py +++ b/scripts/modules/bpy_types.py @@ -1044,7 +1044,12 @@ class _GenericUI: @classmethod def is_extended(cls): - return bool(getattr(cls.draw, "_draw_funcs", None)) + draw_funcs = getattr(cls.draw, "_draw_funcs", None) + if draw_funcs is None: + return False + # Ignore the first item (the original draw function). + # This can happen when enabling then disabling add-ons. + return len(draw_funcs) > 1 @classmethod def append(cls, draw_func):