mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
we might need to upcast even in single inheritance
This commit is contained in:
parent
0a6dd236f2
commit
3ca542e7d6
@ -400,7 +400,8 @@ class ClassTypeDescriptor(BaseTypeDescriptor):
|
|||||||
At multiple inheritance nodes, copy all the parent methods into
|
At multiple inheritance nodes, copy all the parent methods into
|
||||||
this class and call them after upcasting us to that class
|
this class and call them after upcasting us to that class
|
||||||
"""
|
"""
|
||||||
if (len(self.parentTypes) >= 2):
|
if (len(self.parentTypes) >= 2 or \
|
||||||
|
(len(self.parentTypes) == 1 and self.hasMethodNamed('upcastTo' + self.parentTypes[0].foreignTypeName))):
|
||||||
indent(file, nesting+1, '\n')
|
indent(file, nesting+1, '\n')
|
||||||
indent(file, nesting+1, '##################################################\n')
|
indent(file, nesting+1, '##################################################\n')
|
||||||
indent(file, nesting+1, '# Upcast inherited instance method wrappers #\n')
|
indent(file, nesting+1, '# Upcast inherited instance method wrappers #\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user