mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Fixed a bug in undo for deletion
This commit is contained in:
parent
d105aa08ea
commit
ffee5a7d56
@ -138,12 +138,11 @@ class ActionDeleteObj(ActionBase):
|
||||
print "Undo: deleteObject"
|
||||
def restoreObject(uid, parentNP):
|
||||
obj = self.objInfos[uid]
|
||||
objNP = obj[OG.OBJ_NP]
|
||||
objDef = obj[OG.OBJ_DEF]
|
||||
objModel = obj[OG.OBJ_MODEL]
|
||||
objProp = obj[OG.OBJ_PROP]
|
||||
objRGBA = obj[OG.OBJ_RGBA]
|
||||
self.editor.objectMgr.addNewObject(objDef.name,
|
||||
objNP = self.editor.objectMgr.addNewObject(objDef.name,
|
||||
uid,
|
||||
obj[OG.OBJ_MODEL],
|
||||
parentNP)
|
||||
|
Loading…
x
Reference in New Issue
Block a user