[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30280] trunk/blender/release/scripts/ui/ properties_data_curve.py: dont show active spline for text

Campbell Barton ideasman42 at gmail.com
Tue Jul 13 21:24:35 CEST 2010


Revision: 30280
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30280
Author:   campbellbarton
Date:     2010-07-13 21:24:35 +0200 (Tue, 13 Jul 2010)

Log Message:
-----------
dont show active spline for text

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/properties_data_curve.py

Modified: trunk/blender/release/scripts/ui/properties_data_curve.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_curve.py	2010-07-13 17:45:57 UTC (rev 30279)
+++ trunk/blender/release/scripts/ui/properties_data_curve.py	2010-07-13 19:24:35 UTC (rev 30280)
@@ -44,7 +44,7 @@
 
     def poll(self, context):
         curve = context.curve
-        return (curve and curve.splines.active)
+        return (curve and type(curve) is not bpy.types.TextCurve and curve.splines.active)
 
 
 class DATA_PT_context_curve(DataButtonsPanel):





More information about the Bf-blender-cvs mailing list