mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Replace freestyle extension warning with poll message #5472
This commit is contained in:
@@ -207,6 +207,13 @@ class CreateDrawing(bpy.types.Operator):
|
|||||||
if not tool.Drawing.is_drawing_active():
|
if not tool.Drawing.is_drawing_active():
|
||||||
cls.poll_message_set("No active drawing.")
|
cls.poll_message_set("No active drawing.")
|
||||||
return False
|
return False
|
||||||
|
if context.scene.camera.data.BIMCameraProperties.linework_mode == "FREESTYLE" and not hasattr(
|
||||||
|
context.scene, "svg_export"
|
||||||
|
):
|
||||||
|
cls.poll_message_set(
|
||||||
|
"Freestyle SVG Exporter extension is not installed (required for 'Freestyle' linework mode)."
|
||||||
|
)
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def invoke(self, context, event):
|
def invoke(self, context, event):
|
||||||
|
|||||||
@@ -70,9 +70,6 @@ class BIM_PT_camera(Panel):
|
|||||||
row.prop(props, "fill_mode")
|
row.prop(props, "fill_mode")
|
||||||
row = self.layout.row()
|
row = self.layout.row()
|
||||||
row.prop(props, "cut_mode")
|
row.prop(props, "cut_mode")
|
||||||
elif not hasattr(context.scene, "svg_export"):
|
|
||||||
row = self.layout.row()
|
|
||||||
row.label(text="Freestyle SVG Exporter Not Installed", icon="ERROR")
|
|
||||||
|
|
||||||
row = self.layout.row()
|
row = self.layout.row()
|
||||||
row.prop(props, "width")
|
row.prop(props, "width")
|
||||||
|
|||||||
Reference in New Issue
Block a user