From c5c6bf9a10b3b8ed6dd8335480be96d32b0f1b99 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 20 Jan 2026 22:54:07 -0600 Subject: [PATCH] Update PatchTree and applyPatch to skip TouchTransmitter instances during patch processing - Modified the logic in PatchTree.build and applyPatch functions to skip instances of ClassName "TouchTransmitter", which are auto-created by Roblox for touch events. - This change enhances the efficiency of patch applications by preventing unnecessary processing of these instances. --- plugin/src/PatchTree.lua | 4 ++-- plugin/src/Reconciler/applyPatch.lua | 4 ++-- plugin/src/Reconciler/diff.lua | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/src/PatchTree.lua b/plugin/src/PatchTree.lua index 5423beed..f888c973 100644 --- a/plugin/src/PatchTree.lua +++ b/plugin/src/PatchTree.lua @@ -335,8 +335,8 @@ function PatchTree.build(patch, instanceMap, changeListHeaders) continue end - -- Skip TouchInterest (auto-created by Roblox when touch events are connected) - if instance.ClassName == "TouchInterest" then + -- Skip TouchTransmitter (auto-created by Roblox when touch events are connected) + if instance.ClassName == "TouchTransmitter" then continue end diff --git a/plugin/src/Reconciler/applyPatch.lua b/plugin/src/Reconciler/applyPatch.lua index f95b0b1b..aca5c126 100644 --- a/plugin/src/Reconciler/applyPatch.lua +++ b/plugin/src/Reconciler/applyPatch.lua @@ -27,9 +27,9 @@ local function applyPatch(instanceMap, patch) local deferredRefs = {} for _, removedIdOrInstance in ipairs(patch.removed) do - -- Skip TouchInterest (auto-created by Roblox when touch events are connected) + -- Skip TouchTransmitter (auto-created by Roblox when touch events are connected) local instance = if Types.RbxId(removedIdOrInstance) then instanceMap.fromIds[removedIdOrInstance] else removedIdOrInstance - if instance and instance.ClassName == "TouchInterest" then + if instance and instance.ClassName == "TouchTransmitter" then continue end diff --git a/plugin/src/Reconciler/diff.lua b/plugin/src/Reconciler/diff.lua index 798e5e4c..6a4502fe 100644 --- a/plugin/src/Reconciler/diff.lua +++ b/plugin/src/Reconciler/diff.lua @@ -335,8 +335,8 @@ local function diff(instanceMap, virtualInstances, rootId) -- corresponding virtual instance should be removed. Any instance that -- does have a corresponding virtual instance is recursively diffed. for _, childInstance in ipairs(instance:GetChildren()) do - -- Skip TouchInterest (auto-created by Roblox when touch events are connected) - if childInstance.ClassName == "TouchInterest" then + -- Skip TouchTransmitter (auto-created by Roblox when touch events are connected) + if childInstance.ClassName == "TouchTransmitter" then continue end