mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 13:36:25 +00:00
Minor fix
This commit is contained in:
@@ -2116,7 +2116,11 @@ class CutSection(bpy.types.Operator):
|
|||||||
if bpy.context.scene.DocProperties.should_render == 'DEFAULT':
|
if bpy.context.scene.DocProperties.should_render == 'DEFAULT':
|
||||||
bpy.ops.render.render(write_still=True)
|
bpy.ops.render.render(write_still=True)
|
||||||
elif bpy.context.scene.DocProperties.should_render == 'VIEWPORT':
|
elif bpy.context.scene.DocProperties.should_render == 'VIEWPORT':
|
||||||
|
for obj in camera.users_collection[0].objects:
|
||||||
|
obj.hide_set(True)
|
||||||
bpy.ops.render.opengl(write_still=True)
|
bpy.ops.render.opengl(write_still=True)
|
||||||
|
for obj in camera.users_collection[0].objects:
|
||||||
|
obj.hide_set(False)
|
||||||
location = camera.location
|
location = camera.location
|
||||||
render = bpy.context.scene.render
|
render = bpy.context.scene.render
|
||||||
if self.is_landscape():
|
if self.is_landscape():
|
||||||
|
|||||||
Reference in New Issue
Block a user