mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Add option to use cached render during documentation
This commit is contained in:
@@ -1559,7 +1559,8 @@ class CutSection(bpy.types.Operator):
|
||||
'diagrams',
|
||||
'{}.png'.format(self.diagram_name)
|
||||
)
|
||||
bpy.ops.render.render(write_still=True)
|
||||
if bpy.context.scene.DocProperties.should_render:
|
||||
bpy.ops.render.render(write_still=True)
|
||||
location = camera.location
|
||||
render = bpy.context.scene.render
|
||||
if self.is_landscape():
|
||||
|
||||
@@ -382,6 +382,7 @@ class Subcontext(PropertyGroup):
|
||||
|
||||
class DocProperties(PropertyGroup):
|
||||
should_recut: BoolProperty(name="Should Recut", default=True)
|
||||
should_render: BoolProperty(name="Should Render", default=True)
|
||||
view_name: StringProperty(name="View Name")
|
||||
available_views: EnumProperty(items=getViews, name="Available Views")
|
||||
sheet_name: StringProperty(name="Sheet Name", update=refreshSheets)
|
||||
|
||||
@@ -627,6 +627,9 @@ class BIM_PT_camera(Panel):
|
||||
row = layout.row()
|
||||
row.prop(dprops, 'should_recut')
|
||||
|
||||
row = layout.row()
|
||||
row.prop(dprops, 'should_render')
|
||||
|
||||
row = layout.row()
|
||||
row.prop(props, 'is_nts')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user