diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-30 22:24:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-30 22:24:13 +0300 |
commit | 9d8b94eceed50ad0b397a87d4322bd6951176872 (patch) | |
tree | a64c57b603cfc81f6a2aac143e3574e8c1a3bad4 /release/scripts | |
parent | afe475b55b24ffdac9b9401bc81e5522ab901c4c (diff) |
surfaces were displaying the Geometry panel that only curves need
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/ui/properties_data_curve.py | 8 |
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 |