mirror of
https://github.com/shadowscion/Prop2Mesh.git
synced 2025-03-04 03:13:03 -05:00
e2m ownership fix?
and legacy obj render inside setting fix
This commit is contained in:
parent
942c92d6b0
commit
5964bee761
@ -208,6 +208,7 @@ local function p2mCreate(context, pos, ang, count)
|
||||
self:CPPISetOwner(context.player)
|
||||
end
|
||||
|
||||
self:SetPlayer(context.player)
|
||||
self:SetSolid(SOLID_NONE)
|
||||
self:SetMoveType(MOVETYPE_NONE)
|
||||
self:DrawShadow(false)
|
||||
|
@ -60,6 +60,13 @@ function ENT:Initialize()
|
||||
self.prop2mesh_sync = true
|
||||
end
|
||||
|
||||
function ENT:SetPlayer(pl)
|
||||
self:SetVar("Founder", pl)
|
||||
end
|
||||
|
||||
function ENT:GetPlayer()
|
||||
return self:GetVar("Founder", NULL)
|
||||
end
|
||||
|
||||
function ENT:Think()
|
||||
if self.prop2mesh_upload_queue then
|
||||
|
@ -95,6 +95,7 @@ local function getLegacyParts(data)
|
||||
part.objn = v.name or crc
|
||||
part.vsmooth = tonumber(v.smooth)
|
||||
part.vinvert = v.flip and 1 or nil
|
||||
part.vinside = v.inv and 1 or nil
|
||||
else
|
||||
if v.holo then part.holo = v.mdl else part.prop = v.mdl end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user