Fixed E2 Spherical not saving due to lack of register

This commit is contained in:
SMSum 2020-05-06 09:47:46 -05:00 committed by GitHub
parent 825c612ac6
commit 987f3fea9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,7 @@ if SERVER then
data.radius = radius
ent.noradius = data.noradius
PrintTable(data)
duplicator.StoreEntityModifier( ent, "MakeSphericalCollisions", data )
end
@ -168,6 +169,16 @@ if SERVER then
phys:EnableMotion( ismove )
if not issleep then phys:Wake() end
local data = {}
data.enabled = true
data.isrenderoffset = 0
data.mass = mass
data.obbcenter = ent:OBBCenter()
data.radius = radius
data.renderoffset = Vector(0,0,0)
ent.noradius = data.noradius
duplicator.StoreEntityModifier( ent, "MakeSphericalCollisions", data )
end
function MakeSpherical.CopyConstraintData( ent, removeconstraints )