Skip to content

Commit

Permalink
Added NaN protections
Browse files Browse the repository at this point in the history
Earlier this week I encountered some rbxm files that appeared to have the values of some NumberSequenceKeypoints as NaN. This would cause the rojo sync to fail as that value was being serialized as nil. Adding a zero here allowed the sync to complete successfully.
  • Loading branch information
nightcycle authored Jan 14, 2025
1 parent 8e750dc commit 0bb44bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbx_dom_lua/src/EncodedValue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ types = {
local keypoints = {}

for index, keypoint in ipairs(pod.keypoints) do
keypoints[index] = NumberSequenceKeypoint.new(keypoint.time, keypoint.value, keypoint.envelope)
keypoints[index] = NumberSequenceKeypoint.new(keypoint.time, keypoint.value or 0, keypoint.envelope)
end

return NumberSequence.new(keypoints)
Expand Down

0 comments on commit 0bb44bd

Please sign in to comment.