Skip to content

Commit

Permalink
Merge pull request #2976 from rpaladin/fix-context
Browse files Browse the repository at this point in the history
Fix context for remove traits operator
  • Loading branch information
luboslenco committed Nov 30, 2023
2 parents c80c03b + 892a96c commit 9880bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blender/arm/props_traits.py
Expand Up @@ -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:
Expand Down

0 comments on commit 9880bcd

Please sign in to comment.