mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
remove some old panda support
This commit is contained in:
parent
39f5de7827
commit
7fdd1813ac
@ -1120,10 +1120,6 @@ class Actor(DirectObject, NodePath):
|
|||||||
optimal than controlJoint() for cases in which the transform
|
optimal than controlJoint() for cases in which the transform
|
||||||
is not intended to be animated during the lifetime of the
|
is not intended to be animated during the lifetime of the
|
||||||
Actor. """
|
Actor. """
|
||||||
# Temporary condition for old Pandas.
|
|
||||||
if not hasattr(PartBundle, 'controlJoint'):
|
|
||||||
return
|
|
||||||
|
|
||||||
if transform == None:
|
if transform == None:
|
||||||
transform = TransformState.makePosHprScale(pos, hpr, scale)
|
transform = TransformState.makePosHprScale(pos, hpr, scale)
|
||||||
|
|
||||||
|
@ -144,11 +144,7 @@ class DirectEntry(DirectFrame):
|
|||||||
DirectFrame.destroy(self)
|
DirectFrame.destroy(self)
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
# Temporary condition for old pandas.
|
self.guiItem.setupMinimal(self['width'], self['numLines'])
|
||||||
if hasattr(self.guiItem, 'setupMinimal'):
|
|
||||||
self.guiItem.setupMinimal(self['width'], self['numLines'])
|
|
||||||
else:
|
|
||||||
self.guiItem.setup(self['width'], self['numLines'])
|
|
||||||
|
|
||||||
def setFocus(self):
|
def setFocus(self):
|
||||||
PGEntry.setFocus(self.guiItem, self['focus'])
|
PGEntry.setFocus(self.guiItem, self['focus'])
|
||||||
|
@ -51,9 +51,7 @@ class Loader(DirectObject):
|
|||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
self.ignore(self.hook)
|
self.ignore(self.hook)
|
||||||
# Temp condition for old Panda.
|
self.loader.stopThreads()
|
||||||
if hasattr(self.loader, "stopThreads"):
|
|
||||||
self.loader.stopThreads()
|
|
||||||
del self.base
|
del self.base
|
||||||
del self.loader
|
del self.loader
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user