[Bf-blender-cvs] [7947b3d] master: Fix for recent regression in curve geometry panel poll

Campbell Barton noreply at git.blender.org
Sat Dec 14 15:33:34 CET 2013


Commit: 7947b3d21d8e5d0df5a25f24cce5d8a69f713a46
Author: Campbell Barton
Date:   Sun Dec 15 01:32:36 2013 +1100
http://developer.blender.org/rB7947b3d21d8e5d0df5a25f24cce5d8a69f713a46

Fix for recent regression in curve geometry panel poll

===================================================================

M	release/scripts/startup/bl_ui/properties_data_curve.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py
index 120e302..429c207 100644
--- a/release/scripts/startup/bl_ui/properties_data_curve.py
+++ b/release/scripts/startup/bl_ui/properties_data_curve.py
@@ -157,6 +157,10 @@ class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
 class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel):
     bl_label = "Geometry"
 
+    @classmethod
+    def poll(cls, context):
+        return (type(context.curve) in {Curve, TextCurve})
+
     def draw(self, context):
         layout = self.layout




More information about the Bf-blender-cvs mailing list