From 892a96c5a5ba05d713c3afaf0aad23623f679302 Mon Sep 17 00:00:00 2001 From: RPaladin <69180012+rpaladin@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:31:46 -0800 Subject: [PATCH] Fix context for remove traits operator --- blender/arm/props_traits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blender/arm/props_traits.py b/blender/arm/props_traits.py index e6515d1437..3ecaa002ec 100644 --- a/blender/arm/props_traits.py +++ b/blender/arm/props_traits.py @@ -741,7 +741,7 @@ class ARM_OT_RemoveTraitsFromActiveObjects(bpy.types.Operator): @classmethod def poll(cls, context): - return len(context.selected_objects) > 0 + return context.mode != 'SCENE' and len(context.selected_objects) > 0 def execute(self, context): for obj in bpy.context.selected_objects: