Bläddra i källkod

Added holiday props

Mark Mine 21 år sedan
förälder
incheckning
06413d98ac
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      direct/src/leveleditor/LevelEditor.py

+ 3 - 2
direct/src/leveleditor/LevelEditor.py

@@ -4020,7 +4020,7 @@ class LevelStyleManager:
                 (dnaType == 'toon_landmark')):
                 (dnaType == 'toon_landmark')):
                 dnaList = self.getCatalogCodes(dnaType)
                 dnaList = self.getCatalogCodes(dnaType)
                 if dnaType == 'prop':
                 if dnaType == 'prop':
-                    dnaList.append(self.getCatalogCodes('holiday_prop'))
+                    dnaList = dnaList + self.getCatalogCodes('holiday_prop')
             elif (dnaType == 'sign'):
             elif (dnaType == 'sign'):
                 dnaList = [''] + self.getCatalogCodes(dnaType)
                 dnaList = [''] + self.getCatalogCodes(dnaType)
             elif (dnaType == 'wall'):
             elif (dnaType == 'wall'):
@@ -5037,7 +5037,8 @@ class LevelEditorPanel(Pmw.MegaToplevel):
             text = 'ADD PROP',
             text = 'ADD PROP',
             command = self.addProp)
             command = self.addProp)
         self.addPropsButton.pack(fill = X, padx = 20, pady = 10)
         self.addPropsButton.pack(fill = X, padx = 20, pady = 10)
-        codes = self.styleManager.getCatalogCodes('prop')
+        codes = (self.styleManager.getCatalogCodes('prop') +
+                 self.styleManager.getCatalogCodes('holiday_prop'))
         codes.sort()
         codes.sort()
         self.propSelector = Pmw.ComboBox(
         self.propSelector = Pmw.ComboBox(
             propsPage,
             propsPage,