Browse Source

Updated to be inheritable

Gyedo Jeon 16 years ago
parent
commit
7d72196ccf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/leveleditor/ProtoPaletteBase.py

+ 2 - 0
direct/src/leveleditor/ProtoPaletteBase.py

@@ -10,6 +10,8 @@ from ObjectPaletteBase import *
 class ProtoPaletteBase(ObjectPaletteBase):
 class ProtoPaletteBase(ObjectPaletteBase):
     def __init__(self):
     def __init__(self):
         ObjectPaletteBase.__init__(self)
         ObjectPaletteBase.__init__(self)
+        # self.dirname should be defined in inherited class
+        assert self.dirname
 
 
     def addItems(self):
     def addItems(self):
         if type(protoData) == types.DictType:
         if type(protoData) == types.DictType: