mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
POD: handle multiple inheritance
This commit is contained in:
parent
bf54580d8e
commit
8cebb52c84
@ -1240,11 +1240,13 @@ class POD:
|
|||||||
# bring less-derived classes to the front
|
# bring less-derived classes to the front
|
||||||
mostDerivedLast(bases)
|
mostDerivedLast(bases)
|
||||||
for c in (bases + [cls]):
|
for c in (bases + [cls]):
|
||||||
# make sure this base has its dict of data defaults
|
# skip multiple-inheritance base classes that do not derive from POD
|
||||||
c._compileDefaultDataSet()
|
if issubclass(c, POD):
|
||||||
if c.__dict__.has_key('DataSet'):
|
# make sure this base has its dict of data defaults
|
||||||
# apply this class' default data values to our dict
|
c._compileDefaultDataSet()
|
||||||
cls._DataSet.update(c.DataSet)
|
if c.__dict__.has_key('DataSet'):
|
||||||
|
# apply this class' default data values to our dict
|
||||||
|
cls._DataSet.update(c.DataSet)
|
||||||
_compileDefaultDataSet = classmethod(_compileDefaultDataSet)
|
_compileDefaultDataSet = classmethod(_compileDefaultDataSet)
|
||||||
# END CLASS METHODS
|
# END CLASS METHODS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user