mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +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',
|
'diagrams',
|
||||||
'{}.png'.format(self.diagram_name)
|
'{}.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
|
location = camera.location
|
||||||
render = bpy.context.scene.render
|
render = bpy.context.scene.render
|
||||||
if self.is_landscape():
|
if self.is_landscape():
|
||||||
|
|||||||
@@ -382,6 +382,7 @@ class Subcontext(PropertyGroup):
|
|||||||
|
|
||||||
class DocProperties(PropertyGroup):
|
class DocProperties(PropertyGroup):
|
||||||
should_recut: BoolProperty(name="Should Recut", default=True)
|
should_recut: BoolProperty(name="Should Recut", default=True)
|
||||||
|
should_render: BoolProperty(name="Should Render", default=True)
|
||||||
view_name: StringProperty(name="View Name")
|
view_name: StringProperty(name="View Name")
|
||||||
available_views: EnumProperty(items=getViews, name="Available Views")
|
available_views: EnumProperty(items=getViews, name="Available Views")
|
||||||
sheet_name: StringProperty(name="Sheet Name", update=refreshSheets)
|
sheet_name: StringProperty(name="Sheet Name", update=refreshSheets)
|
||||||
|
|||||||
@@ -627,6 +627,9 @@ class BIM_PT_camera(Panel):
|
|||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(dprops, 'should_recut')
|
row.prop(dprops, 'should_recut')
|
||||||
|
|
||||||
|
row = layout.row()
|
||||||
|
row.prop(dprops, 'should_render')
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(props, 'is_nts')
|
row.prop(props, 'is_nts')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user