From 0988a2c484bdcb51873652a380eadf5ca1520122 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Fri, 22 Apr 2005 01:49:46 +0000 Subject: [PATCH] save processing time if osd is not enabled --- direct/src/actor/Actor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index e6f7c70f38..65b2ba218f 100644 --- a/direct/src/actor/Actor.py +++ b/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()