17 Commits

Author SHA1 Message Date
Jaime van Kessel
67dbb97958 Fix incorrect cast import 2019-07-30 11:45:27 +02:00
Jaime van Kessel
827ccd5a13 Fix mypy issues caused by scenenode iterator being correctly typed 2019-07-23 13:19:42 +02:00
Jaime van Kessel
07ff08f6bb Ensure that objects outside build volume are not added to thumbnail
CURA-6545
2019-05-29 15:53:23 +02:00
Ghostkeeper
ab32d64c01
Add types for ShaderPrograms
Otherwise it'll think that this variable can only have None in it.

Contributes to issue CURA-5330.
2018-06-15 11:34:35 +02:00
Ghostkeeper
7d98167383
Ignore type errors arising from misinterpretation of DepthFirstIterator type
MyPy requests that this needs to have a __next__ function, but actually Python calls the __iter__ function first and then calls the __next__ function on the result of that. MyPy is wrong here.

Contributes to issue CURA-5330.
2018-06-15 11:30:49 +02:00
Diego Prado Gesto
d03b0e610b CURA-5330 Fix typing in the PreviewPass 2018-06-13 11:56:53 +02:00
Diego Prado Gesto
f1b0c6238f CURA-5330 Add return type to some constructors 2018-06-13 11:01:30 +02:00
Lipu Fei
196bd3a730 Add non-thumbnail-visible flag for creating previews
CURA-5373

Addition to the non-slicable meshes, the support meshes should also not
be included in the previews.
2018-05-23 16:32:38 +02:00
Aleksei S
36dbc70813 Remove unnecessary code for taking snapshot for UFP file
CURA-5373
2018-05-18 14:01:31 +02:00
Aleksei S
1f149b2821 Do not show not printed models on snapshot for UFP files
CURA-5373
2018-05-18 10:50:54 +02:00
Jack Ha
f9e7d119af CURA-5019 thumbnail: do not scale the second color of support meshes or the checkboard pattern is not visible anymore 2018-03-29 14:10:50 +02:00
Jack Ha
c1bc078813 CURA-5019 support and infill type nodes are now correctly rendered in the thumbnail 2018-03-29 10:59:53 +02:00
Jack Ha
06ec77e012 Better readability in PreviewPass 2018-02-15 15:23:17 +01:00
Jack Ha
037298cf03 Tweaked the snapshot images to make it look prettier 2018-02-15 13:53:45 +01:00
Jack Ha
c42f186812 CURA-4425 first thumbnail in UFP file; updated CuraSceneModel and PreviewPass 2018-01-31 17:08:32 +01:00
Jaime van Kessel
f2e7fef747 Update PreviewPass so that only slicable objects are rendered 2017-11-09 13:51:47 +01:00
Jaime van Kessel
06045f036e Added previewPass 2017-11-08 16:37:24 +01:00