You can now render OpenGL for drawings - allowing much better wireframe views

This commit is contained in:
Dion Moult
2020-08-30 21:41:01 +10:00
parent 9c50e909e3
commit 8d80c58e2d
2 changed files with 8 additions and 2 deletions
@@ -2108,8 +2108,10 @@ class CutSection(bpy.types.Operator):
'diagrams',
'{}.png'.format(self.diagram_name)
)
if bpy.context.scene.DocProperties.should_render:
if bpy.context.scene.DocProperties.should_render == 'DEFAULT':
bpy.ops.render.render(write_still=True)
elif bpy.context.scene.DocProperties.should_render == 'VIEWPORT':
bpy.ops.render.opengl(write_still=True)
location = camera.location
render = bpy.context.scene.render
if self.is_landscape():
+5 -1
View File
@@ -526,7 +526,11 @@ class DrawingStyle(PropertyGroup):
class DocProperties(PropertyGroup):
should_recut: BoolProperty(name="Should Recut", default=True)
should_recut_selected: BoolProperty(name="Should Recut Selected Only", default=False)
should_render: BoolProperty(name="Should Render", default=True)
should_render: EnumProperty(items=[
('NONE', 'None', ''),
('DEFAULT', 'Default', ''),
('VIEWPORT', 'Viewport', ''),
], name='Should Render', default='DEFAULT')
should_extract: BoolProperty(name="Should Extract", default=True)
drawings: CollectionProperty(name='Drawings', type=Drawing)
active_drawing_index: IntProperty(name='Active Drawing Index')