Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-30 22:24:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-30 22:24:13 +0300
commit9d8b94eceed50ad0b397a87d4322bd6951176872 (patch)
treea64c57b603cfc81f6a2aac143e3574e8c1a3bad4 /release/scripts/ui
parentafe475b55b24ffdac9b9401bc81e5522ab901c4c (diff)
surfaces were displaying the Geometry panel that only curves need
Diffstat (limited to 'release/scripts/ui')
-rw-r--r--release/scripts/ui/properties_data_curve.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/ui/properties_data_curve.py b/release/scripts/ui/properties_data_curve.py
index 9a7961cfa33..b6e82e05994 100644
--- a/release/scripts/ui/properties_data_curve.py
+++ b/release/scripts/ui/properties_data_curve.py
@@ -128,6 +128,14 @@ class DATA_PT_shape_curve(DataButtonsPanel):
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