mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
Add support for ignoring auto-created instances in sync process
- Introduced a new configuration for ignored class names in Config.lua to streamline the sync process by skipping instances that are auto-created by Roblox, such as TouchTransmitter and Camera. - Updated PatchTree, applyPatch, and diff functions to utilize this configuration, enhancing efficiency by preventing unnecessary processing of these instances.
This commit is contained in:
parent
c5c6bf9a10
commit
3c33054afd
4 changed files with 16 additions and 6 deletions
|
|
@ -11,6 +11,7 @@ local Packages = Rojo.Packages
|
|||
|
||||
local Log = require(Packages.Log)
|
||||
|
||||
local Config = require(Plugin.Config)
|
||||
local Timer = require(Plugin.Timer)
|
||||
local Types = require(Plugin.Types)
|
||||
local WhitespaceUtil = require(Plugin.WhitespaceUtil)
|
||||
|
|
@ -335,8 +336,8 @@ function PatchTree.build(patch, instanceMap, changeListHeaders)
|
|||
continue
|
||||
end
|
||||
|
||||
-- Skip TouchTransmitter (auto-created by Roblox when touch events are connected)
|
||||
if instance.ClassName == "TouchTransmitter" then
|
||||
-- Skip auto-created instances that shouldn't be synced
|
||||
if Config.ignoredClassNames[instance.ClassName] then
|
||||
continue
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue