Skip to content

Commit

Permalink
Remove PrimaryPart conditional in WorldPivotData custom setter (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler authored Feb 20, 2024
1 parent 3f3d64a commit 6ccd30f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rbx_dom_lua/src/customProperties.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,7 @@ return {
},
WorldPivotData = {
read = function(instance)
if instance.PrimaryPart == nil then
-- Model.WorldPivotData is unoccupied when the model does not have a
-- PrimaryPart
return true, nil
else
return true, instance:GetPivot()
end
return true, instance:GetPivot()
end,
write = function(instance, _, value)
if value == nil then
Expand Down

0 comments on commit 6ccd30f

Please sign in to comment.