From e3c44925d48f4c8f1843a57116d429973f97bfa6 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 25 Mar 2021 19:50:18 +0100 Subject: [PATCH] fix tool name in create update attriutes action --- .../event_handlers_user/action_create_cust_attrs.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pype/modules/ftrack/event_handlers_user/action_create_cust_attrs.py b/pype/modules/ftrack/event_handlers_user/action_create_cust_attrs.py index ae040fd630..8ff0cade7b 100644 --- a/pype/modules/ftrack/event_handlers_user/action_create_cust_attrs.py +++ b/pype/modules/ftrack/event_handlers_user/action_create_cust_attrs.py @@ -400,11 +400,10 @@ class CustomAttributes(BaseAction): def tools_attribute(self, event): tools_data = [] - for tool_name, tool in self.app_manager.tools.items(): - if tool.enabled: - tools_data.append({ - tool_name: tool_name - }) + for tool_name in self.app_manager.tools.keys(): + tools_data.append({ + tool_name: tool_name + }) # Make sure there is at least one item if not tools_data: