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():