Skip to content

Commit 58af9ac

Browse files
[tagSceneswithPerfTags] add check before processing scene (#475)
1 parent c9b6e84 commit 58af9ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ def processScene(scene):
6363
elif "hookContext" in json_input["args"]:
6464
id = json_input["args"]["hookContext"]["id"]
6565
if (
66-
json_input["args"]["hookContext"]["type"] == "Scene.Update.Post"
67-
or "Scene.Create.Post"
66+
(
67+
json_input["args"]["hookContext"]["type"] == "Scene.Update.Post"
68+
or "Scene.Create.Post"
69+
) and len(json_input["args"]["hookContext"]["inputFields"]) > 2
6870
):
6971
scene = stash.find_scene(id)
7072
processScene(scene)

0 commit comments

Comments
 (0)