Browse Source

save processing time if osd is not enabled

Darren Ranalli 20 years ago
parent
commit
0988a2c484
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/actor/Actor.py

+ 2 - 0
direct/src/actor/Actor.py

@@ -1451,6 +1451,8 @@ class Actor(PandaObject, NodePath):
         print out
 
     def osdAnimBlends(self, animName=None, partName=None, lodName=None):
+        if not onScreenDebug.enabled:
+            return
         # puts anim blending info into the on-screen debug panel
         if animName is None:
             animNames = self.getAnimNames()