mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Update changelog
This commit is contained in:
parent
ce24f8ade9
commit
945cdd0e88
2 changed files with 7 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ local function update_parent_effect(p: {
|
|||
return p
|
||||
end
|
||||
|
||||
-- todo: investigate if "count" method used in indexes() and values() can improve performance here
|
||||
local function update_children_effect(p: {
|
||||
instance: Instance,
|
||||
cur_children_set: { [Instance]: true },
|
||||
|
|
@ -39,6 +40,7 @@ local function update_children_effect(p: {
|
|||
if new_children_set[child] then return end -- stops redundant reparenting
|
||||
|
||||
new_children_set[child] = true -- record child set from this update
|
||||
|
||||
if not cur_children_set[child] then
|
||||
child.Parent = p.instance -- if child wasn't already parented then parent it
|
||||
else
|
||||
|
|
@ -85,7 +87,9 @@ return {
|
|||
property = property,
|
||||
source = source
|
||||
})
|
||||
|
||||
evaluate_node(node)
|
||||
|
||||
return node
|
||||
end,
|
||||
|
||||
|
|
@ -94,7 +98,9 @@ return {
|
|||
instance = instance,
|
||||
source = parent
|
||||
})
|
||||
|
||||
evaluate_node(node)
|
||||
|
||||
return node
|
||||
end,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue