summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@fairlystable.org>2022-11-24 19:43:18 -0800
committerJoe Rayhawk <jrayhawk@fairlystable.org>2022-11-24 19:43:18 -0800
commitd8249c82b1c210b5bd39681fbab62f686508ad99 (patch)
tree8ed2f9e6dab79642b454baad76eece7927741d80 /src
parent1a5f65e4affcc0c517e2b50c08bc9ca8a6deaae1 (diff)
downloadcrystal-obs-websocket-d8249c82b1c210b5bd39681fbab62f686508ad99.tar.gz
crystal-obs-websocket-d8249c82b1c210b5bd39681fbab62f686508ad99.zip
Manage the last of the SceneItem event cache invalidations
Diffstat (limited to 'src')
-rw-r--r--src/obswebsocket.cr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/obswebsocket.cr b/src/obswebsocket.cr
index 5f19008..de0e235 100644
--- a/src/obswebsocket.cr
+++ b/src/obswebsocket.cr
@@ -332,6 +332,8 @@ module OBS
@scenes[edata["sceneName"].to_s].deletecache()
# This could probably be made more efficient using the eventData
when "SceneItemLockStateChanged"
+ edata = d["eventData"]
+ @scenes[edata["sceneName"].to_s].deletecache()
when "SceneItemTransformChanged"
edata = d["eventData"]
transform = edata["sceneItemTransform"]