add BaseName to parts so you can get the

original part it was derived from
This commit is contained in:
Techbot121 2023-05-01 16:39:16 +02:00
parent 0ae8bccfc1
commit 7ff355c47c
3 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ local render_PushFilterMag = render.PushFilterMag
local BUILDER, PART = pac.PartTemplate("base_movable")
PART.ClassName = "base_drawable"
PART.BaseName = PART.ClassName
BUILDER
:StartStorableVars()

View File

@ -7,6 +7,7 @@ local Matrix = Matrix
local BUILDER, PART = pac.PartTemplate("base")
PART.ClassName = "base_movable"
PART.BaseName = PART.ClassName
BUILDER
:StartStorableVars()

View File

@ -16,6 +16,7 @@ local table_insert = table.insert
local BUILDER, PART = pac.PartTemplate()
PART.ClassName = "base"
PART.BaseName = PART.ClassName
function PART:__tostring()
return string_format("part[%s][%s][%i]", self.ClassName, self:GetName(), self.Id)