forked from bartvdbraak/blender
surfaces were displaying the Geometry panel that only curves need
This commit is contained in:
parent
afe475b55b
commit
9d8b94ecee
@ -128,6 +128,14 @@ class DATA_PT_shape_curve(DataButtonsPanel):
|
|||||||
class DATA_PT_geometry_curve(DataButtonsPanel):
|
class DATA_PT_geometry_curve(DataButtonsPanel):
|
||||||
bl_label = "Geometry"
|
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):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user