[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25035] trunk/blender/release/scripts/ui/ properties_data_curve.py: surfaces were displaying the Geometry panel that only curves need

Campbell Barton ideasman42 at gmail.com
Mon Nov 30 20:24:13 CET 2009


Revision: 25035
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25035
Author:   campbellbarton
Date:     2009-11-30 20:24:13 +0100 (Mon, 30 Nov 2009)

Log Message:
-----------
surfaces were displaying the Geometry panel that only curves need

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	2009-11-30 18:42:13 UTC (rev 25034)
+++ trunk/blender/release/scripts/ui/properties_data_curve.py	2009-11-30 19:24:13 UTC (rev 25035)
@@ -128,6 +128,14 @@
 class DATA_PT_geometry_curve(DataButtonsPanel):
     bl_label = "Geometry"
 
+    def poll(self, context):
+        obj = context.object
+        if obj and obj.type == 'SURFACE':
+            return False
+
+        curve = context.curve
+        return (curve and curve.active_spline)
+
     def draw(self, context):
         layout = self.layout
 





More information about the Bf-blender-cvs mailing list