mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Made duplicateObj function work with toontown
This commit is contained in:
parent
a9062aa25f
commit
28827cd5e3
@ -601,7 +601,12 @@ class ObjectMgr:
|
||||
objRGBA = obj[OG.OBJ_RGBA]
|
||||
|
||||
if parent is None:
|
||||
parent = nodePath.getParent()
|
||||
parentNP = nodePath.getParent()
|
||||
parentObj = self.findObjectByNodePath(parentNP)
|
||||
if parentObj is None:
|
||||
parent = parentNP
|
||||
else:
|
||||
parent = parentObj[OG.OBJ_NP]
|
||||
|
||||
newObjNP = self.addNewObject(objDef.name, parent=parent, fSelectObject = False)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user