mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Remove unnecessary code for taking snapshot for UFP file
CURA-5373
This commit is contained in:
parent
ac0bb2a06b
commit
36dbc70813
2 changed files with 3 additions and 13 deletions
|
@ -6,13 +6,10 @@ from PyQt5 import QtCore
|
|||
from PyQt5.QtGui import QImage
|
||||
|
||||
from cura.PreviewPass import PreviewPass
|
||||
from cura.Scene import ConvexHullNode
|
||||
|
||||
from UM.Application import Application
|
||||
from UM.Math.AxisAlignedBox import AxisAlignedBox
|
||||
from UM.Math.Matrix import Matrix
|
||||
from UM.Math.Vector import Vector
|
||||
from UM.Mesh.MeshData import transformVertices
|
||||
from UM.Scene.Camera import Camera
|
||||
from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator
|
||||
|
||||
|
@ -43,8 +40,7 @@ class Snapshot:
|
|||
render_width, render_height = active_camera.getWindowSize()
|
||||
render_width = int(render_width)
|
||||
render_height = int(render_height)
|
||||
skip_non_printed_objects = True
|
||||
preview_pass = PreviewPass(render_width, render_height, skip_non_printed_objects)
|
||||
preview_pass = PreviewPass(render_width, render_height)
|
||||
|
||||
root = scene.getRoot()
|
||||
camera = Camera("snapshot", root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue