mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Restored removed codes by accident
This commit is contained in:
parent
1f4442d4bd
commit
b9de3daa41
@ -173,6 +173,13 @@ class ProtoPaletteUI(wx.Panel):
|
|||||||
self.editor.convertMaya(modelname, self.addNewItem)
|
self.editor.convertMaya(modelname, self.addNewItem)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
itemData = ObjectBase(name=name, model=modelname, actor=True)
|
||||||
|
self.editor.protoPalette.add(itemData)
|
||||||
|
|
||||||
|
newItem = self.tree.AppendItem(self.editor.ui.protoPaletteUI.tree.root, name)
|
||||||
|
self.tree.SetItemPyData(newItem, itemData)
|
||||||
|
self.tree.ScrollTo(newItem)
|
||||||
|
|
||||||
def addNewItem(self, result):
|
def addNewItem(self, result):
|
||||||
if len(result) == 2:
|
if len(result) == 2:
|
||||||
itemData = ObjectBase(name=result[0], model=result[1], actor=False)
|
itemData = ObjectBase(name=result[0], model=result[1], actor=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user