mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
save processing time if osd is not enabled
This commit is contained in:
parent
d2722e035f
commit
0988a2c484
@ -1451,6 +1451,8 @@ class Actor(PandaObject, NodePath):
|
|||||||
print out
|
print out
|
||||||
|
|
||||||
def osdAnimBlends(self, animName=None, partName=None, lodName=None):
|
def osdAnimBlends(self, animName=None, partName=None, lodName=None):
|
||||||
|
if not onScreenDebug.enabled:
|
||||||
|
return
|
||||||
# puts anim blending info into the on-screen debug panel
|
# puts anim blending info into the on-screen debug panel
|
||||||
if animName is None:
|
if animName is None:
|
||||||
animNames = self.getAnimNames()
|
animNames = self.getAnimNames()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user