forked from rojo-rbx/rojo
Fixed nil -> nil props showing up as failing in patch visualizer (plugin) (#1081)
This commit is contained in:
committed by
GitHub
parent
e092a7301f
commit
7f68d9887b
@@ -1,10 +1,12 @@
|
||||
# Rojo Changelog
|
||||
|
||||
## Unreleased
|
||||
* Fixed nil -> nil properties showing up as failing to sync in plugin's patch visualizer ([#1081])
|
||||
* Changed the background of the server's in-browser UI to be gray instead of white ([#1080])
|
||||
* Fixed `Auto Connect Playtest Server` no longer functioning due to Roblox change ([#1066])
|
||||
* Added an update indicator to the version header when a new version of the plugin is available. ([#1069])
|
||||
|
||||
[#1081]: https://github.com/rojo-rbx/rojo/pull/1081
|
||||
[#1080]: https://github.com/rojo-rbx/rojo/pull/1080
|
||||
[#1049]: https://github.com/rojo-rbx/rojo/pull/1066
|
||||
[#1069]: https://github.com/rojo-rbx/rojo/pull/1069
|
||||
|
||||
@@ -25,6 +25,14 @@ local function trueEquals(a, b): boolean
|
||||
return true
|
||||
end
|
||||
|
||||
-- Treat nil and { Ref = "000...0" } as equal
|
||||
if
|
||||
(a == nil and type(b) == "table" and b.Ref == "00000000000000000000000000000000")
|
||||
or (b == nil and type(a) == "table" and a.Ref == "00000000000000000000000000000000")
|
||||
then
|
||||
return true
|
||||
end
|
||||
|
||||
local typeA, typeB = typeof(a), typeof(b)
|
||||
|
||||
-- For tables, try recursive deep equality
|
||||
|
||||
Reference in New Issue
Block a user