mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
changed how tools are used
This commit is contained in:
parent
9582d9ffdf
commit
76bcca4c44
2 changed files with 14 additions and 21 deletions
|
|
@ -170,14 +170,12 @@ class ToolsEnumEntity(BaseEnumEntity):
|
|||
|
||||
valid_keys = set()
|
||||
enum_items = []
|
||||
for tool_group in system_settings_entity["tools"].values():
|
||||
enabled_entity = tool_group.get("enabled")
|
||||
if enabled_entity and not enabled_entity.value:
|
||||
continue
|
||||
|
||||
tools_entity = system_settings_entity["tools"]
|
||||
for group_name, tool_group in tools_entity["tool_groups"].items():
|
||||
for variant_name in tool_group["variants"].keys():
|
||||
enum_items.append({variant_name: variant_name})
|
||||
valid_keys.add(variant_name)
|
||||
tool_name = "/".join((group_name, variant_name))
|
||||
enum_items.append({tool_name: tool_name})
|
||||
valid_keys.add(tool_name)
|
||||
return enum_items, valid_keys
|
||||
|
||||
def set_override_state(self, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue