mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Patch visualizer redesign (#883)
This commit is contained in:
parent
87920964d7
commit
b2f133e6f1
16 changed files with 690 additions and 312 deletions
|
|
@ -211,9 +211,11 @@ end
|
|||
function PatchSet.countChanges(patch)
|
||||
local count = 0
|
||||
|
||||
for _ in patch.added do
|
||||
-- Adding an instance is 1 change
|
||||
count += 1
|
||||
for _, add in patch.added do
|
||||
-- Adding an instance is 1 change per property
|
||||
for _ in add.Properties do
|
||||
count += 1
|
||||
end
|
||||
end
|
||||
for _ in patch.removed do
|
||||
-- Removing an instance is 1 change
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue