Commit Graph

10403 Commits

Author SHA1 Message Date
Lukas Matena
c84b1ca34b Multimaterial initial priming for non-Prusa printers (https://github.com/prusa3d/PrusaSlicer/issues/1121)
The initial priming now does not assume anything about bed width and always uses the space it has
In case of circular beds it places the priming lines along the diameter
Custom beds are not supported (they are treated as circular with no extra checks whether it is sane)
Slight refactoring of the WipeTower class (constructor now gets reference to PrintConfig and not the individual values, same with set_extruder). This was legacy from times when the wipe tower was meant to be abstract and independent on the rest)
2019-08-15 01:41:46 +02:00
lukasmatena
fbda7be89d
Merge pull request #2757 from jasontibbitts/format-security2
Fix format-security-related build failure
2019-08-13 23:08:21 +02:00
Jason Tibbitts
b2fc0cd427 Fix format-security-related build failure
Calling a printf-like function without a format string will cause gcc to
emit a warhing and causes a build failure on distros which build
everything with -Werror=format-security.

Signed-off-by: Jason Tibbitts <j@tib.bs>
2019-08-13 14:21:41 -05:00
YuSanka
5cf9bb0282 Fixed set printable state for a first instance after increasing instance count 2019-08-13 18:15:12 +02:00
YuSanka
4cd4d2c8b5 Fixed wrong page selection for Printer Setting after application run 2019-08-13 17:09:42 +02:00
YuSanka
6adb2e7aea Merge remote-tracking branch 'origin/ys_scaling' 2019-08-13 13:50:05 +02:00
Lukas Matena
c189140221 Fixed a false positive empty layer report
Reported in https://github.com/prusa3d/PrusaSlicer/issues/2752 and was a result of setting support contact z distance to negative value.
This lowered the maximum allowed print_z of the next layer, even though previous layer had object layers too, so the penalty from the contact z should not have been applied.
Fixed simply by rejecting the negative contact_z.
2019-08-13 11:02:58 +02:00
YuSanka
08dced3ce7 Fix of scaling on Manipulation panel 2019-08-12 15:21:06 +02:00
YuSanka
ba15c99c2f GTK issue: Fixed layer range editing.
Bug description: When try to change min/max Z value, object is unselected and layers "planes" on 3DScene are wrong positioned
2019-08-09 17:47:35 +02:00
tamasmeszaros
a49caea6cc Hotfix for crash when empty pad and support mesh is generated. 2019-08-09 17:13:18 +02:00
bubnikv
aa7f98b020 Bumped up version to 2.1.0-alpha1 2019-08-09 13:19:23 +02:00
bubnikv
9b700ef252 Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2019-08-09 09:58:27 +02:00
bubnikv
46fa83adac Only validate support_material_extrusion_width with supports
or raft enabled.
2019-08-09 09:58:05 +02:00
YuSanka
0a9c5a9433 Fixed extra "Add_Selection" snapshot on call context menu from scene
+ Added take_snapshot for toggle_instance_printable_state
2019-08-09 09:49:10 +02:00
tamasmeszaros
52702769d4 Hotfix for crash with support disabled and pad enabled. 2019-08-08 19:12:37 +02:00
bubnikv
39b07e7b94 Partial revert of 07a3072622
It fixes an issue where the objects out of print bed are shown
in the print path preview in SLA mode.
2019-08-08 18:26:41 +02:00
bubnikv
bcfb445d0c Partial revert of f474978db5
to fix Perl driven unit tests.
2019-08-08 15:24:23 +02:00
bubnikv
7e694a8fb8 Workaround for invalid access inside some character classification table
when parsing localized file names by the PlaceholderParser:
UTF8 characters were handled as chars, and the negative char values were
used as indices into 7bit long tables.
2019-08-08 14:21:24 +02:00
bubnikv
f474978db5 Clean up the mess required for the legacy Perl bindings, which are now
used for Perl unit / integration tests only. With this commit,
the code will be cleaner, but likely the unit tests will not run
on Windows, if installed in a localized path.
2019-08-08 12:59:55 +02:00
Yuri D'Elia
489fba326e Add 'L' as a legend toggle shortcut in preview 2019-08-08 10:04:05 +02:00
Yuri D'Elia
07480edc50 Show/hide the legend using a new checkbox in preview 2019-08-08 10:04:05 +02:00
bubnikv
0fb81e6cda Let the alpha build store its profile into PrusaSlicer-alpha directory. 2019-08-08 10:00:11 +02:00
bubnikv
23b2b4c59f Merge remote-tracking branch 'remotes/origin/vb_picking_fix' 2019-08-08 09:50:02 +02:00
bubnikv
8970ee28b2 Fixed linking of the "pad" combo box of the Plater with the respective
pad boolean values of the configuration layer.
2019-08-08 09:48:56 +02:00
bubnikv
b7f93292fa FIx of Single test suite failure on two minority architectures #2461 2019-08-08 09:45:42 +02:00
bubnikv
75f36b83d5 Merge remote-tracking branch 'remotes/origin/master' into tm_zero_elev_ui 2019-08-08 08:43:00 +02:00
bubnikv
2e53cf1464 Merge branch 'tm_zero_elev_ui' of https://github.com/Prusa3d/PrusaSlicer into tm_zero_elev_ui 2019-08-08 08:42:50 +02:00
Lukas Matena
1789179506 GLGizmoSlaSupports.cpp: unproject_on_mesh does not throw exceptions but uses bool return value to signal success 2019-08-07 16:17:41 +02:00
tamasmeszaros
ada43e7add Merge branch 'master' into tm_zero_elev_ui 2019-08-07 15:53:41 +02:00
bubnikv
ed2ca9ab0b Merge remote-tracking branch 'remotes/origin/ys_printable_property' into vb_picking_fix 2019-08-07 15:44:25 +02:00
YuSanka
850fbdbe56 Added snapshot taking for Set Printable/Unprintable for full object 2019-08-07 15:39:46 +02:00
bubnikv
841d0796b7 Fix of the SLA gizmo picking. 2019-08-07 15:36:09 +02:00
tamasmeszaros
0ca37729aa Merge branch 'master' into tm_zero_elev_ui 2019-08-07 15:28:17 +02:00
bubnikv
7cef1292b2 Yet another fix of the preceding commit. 2019-08-07 15:03:43 +02:00
bubnikv
a19a506ad8 GLCanvas requires 8bit alpha channel for picking checksums. 2019-08-07 14:55:34 +02:00
bubnikv
abd89e4f9a Merge remote-tracking branch 'remotes/origin/master' into vb_picking_fix 2019-08-07 14:31:16 +02:00
bubnikv
83ed1bed16 Merge remote-tracking branch 'remotes/origin/ys_printable_property' into vb_picking_fix 2019-08-07 14:31:00 +02:00
YuSanka
d25c5e0473 Added printable state update on canvas from Undo/redo 2019-08-07 14:28:46 +02:00
bubnikv
2d7f478dac Finished picking by color with a checksum in the alpha channel
to guard against unwanted alpha blending and / or multi sampling.
2019-08-07 14:15:38 +02:00
YuSanka
abe16fa22e Added printable property for object with instances 2019-08-07 14:11:41 +02:00
Lukas Matena
8e4f777bd3 One more fix on the empty layers detection - support contact z distance is taken into account
If it wasn't, anything with raft would be rejected unless contact z was zero. We do not want that.
2019-08-07 12:02:30 +02:00
bubnikv
2ad3c05a65 WIP: Improvement in the picking robustness: store a checksum
into the alpha channel.
2019-08-07 11:37:38 +02:00
tamasmeszaros
1c479ad6c5 Fix build without PCH 2019-08-07 11:17:17 +02:00
bubnikv
a58b1844e0 WIP: Picking fix - disable alpha blending and render with false colors
including the alpha channels, which have their 3 lowest bits set to zero.
In case some blending occurs, the lowest 3 bits will likely be used
to interpolate between the false colors, therefore the 3 lowest bits
may be used to detect alpha blending or multi-sampling.
2019-08-07 11:14:04 +02:00
Lukas Matena
f61c982111 GCode.cpp: fixed detection of empty layers so it doesn't give false positives
That could happen on empty support layers which do not necessarily matter, since their spacing is not generally synchronized with the object
The new hopefully correct logic is "if there are extrusions on a layer, check that last layer with extrusions is at most the new layer height below
This is a fixup of changes from 0de6e53 and 6ab1cec
2019-08-07 10:54:36 +02:00
bubnikv
2f642ffffb ModelInstance::is_printable() takes into account printability
of the parent ModelObject.
2019-08-07 10:18:16 +02:00
bubnikv
b7a8e51907 Merge remote-tracking branch 'remotes/origin/master' into ys_printable_property 2019-08-07 08:43:11 +02:00
Vojtech Bubnik
5ee69842d0 Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2019-08-06 19:53:47 +02:00
Vojtech Bubnik
d36c64873d Fix of a Linux / GTK specific crash on deleting of Layers from the side panel: wxWidgets / GTK internally delays the EnsureVisible() call to Idle processing. If the item is deleted after EnsureVisible() is planned and before the Idle processed, the Idle processing routine works with deleted data 2019-08-06 19:53:20 +02:00
YuSanka
91e0b7aa9a Fixed control of options category for single material profiles 2019-08-06 19:02:17 +02:00