We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4703e3f commit 56b031dCopy full SHA for 56b031d
plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py
@@ -72,15 +72,14 @@ def processScene(scene):
72
PLUGIN_ARGS = json_input["args"]["mode"]
73
if "processAll" in PLUGIN_ARGS:
74
processAll()
75
-
76
77
elif "hookContext" in json_input["args"]:
78
id = json_input["args"]["hookContext"]["id"]
79
if (
80
(
81
json_input["args"]["hookContext"]["type"] == "Scene.Update.Post"
82
or "Scene.Create.Post"
83
- ) and len(json_input["args"]["hookContext"]["inputFields"]) > 2
+ ) and "inputFields" in json_input["args"]["hookContext"]
+ and len(json_input["args"]["hookContext"]["inputFields"]) > 2
84
):
85
scene = stash.find_scene(id)
86
processScene(scene)
0 commit comments