mirror of
https://github.com/panda3d/panda3d.git
synced 2026-03-18 01:40:50 -05:00
minor memory optimization
This commit is contained in:
@@ -10,6 +10,7 @@ from OnscreenGeom import OnscreenGeom
|
||||
import string, types
|
||||
|
||||
class DirectFrame(DirectGuiWidget):
|
||||
DefDynGroups = ('text', 'geom', 'image')
|
||||
def __init__(self, parent = None, **kw):
|
||||
# Inherits from DirectGuiWidget
|
||||
# A Direct Frame can have:
|
||||
@@ -38,7 +39,7 @@ class DirectFrame(DirectGuiWidget):
|
||||
)
|
||||
# Merge keyword options with default options
|
||||
self.defineoptions(kw, optiondefs,
|
||||
dynamicGroups = ('text', 'geom', 'image'))
|
||||
dynamicGroups = DirectFrame.DefDynGroups)
|
||||
|
||||
# Initialize superclasses
|
||||
DirectGuiWidget.__init__(self, parent)
|
||||
|
||||
Reference in New Issue
Block a user