فهرست منبع

added configable switch want-python-motion-trails

Chris Brunner 18 سال پیش
والد
کامیت
f538ea5eaf
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      direct/src/motiontrail/MotionTrail.py

+ 4 - 2
direct/src/motiontrail/MotionTrail.py

@@ -118,8 +118,10 @@ class MotionTrail(NodePath, DirectObject):
         self.cmotion_trail.setGeomNode (self.geom_node)
 
         self.modified_vertices = True
-
-        self.use_python_version = False
+        if base.config.GetBool('want-python-motion-trails', 0):
+            self.use_python_version = True
+        else:
+            self.use_python_version = False
         
         return