Commit Graph

4984 Commits

Author SHA1 Message Date
Lukas Matena
08a6c86326 Slight change in clipping plane updating after hollowing finishes
The clipping plane in SLA gizmos is only moved in case that the gizmo is currently active and hollowing is actually enabled.
2020-02-27 15:18:15 +01:00
Lukas Matena
5a2da9597b Shared data for SLA gizmos have been removed from GLGizmoBase
This commit introduces no functional changes, only code-shuffling
2020-02-27 15:18:15 +01:00
Lukas Matena
a3869736ba SLA gizmos can now be opened when any instance is selected
This was broken - only first instance worked
2020-02-27 15:18:15 +01:00
Lukas Matena
b2b2574244 Fixed a crash when deleting an object after switching from SLA to FDM 2020-02-27 15:18:15 +01:00
Enrico Turri
d6b86b5e2b Workaround to remove crash when closing PrusaSlicer on OSX 10.9.5 2020-02-27 14:55:27 +01:00
Lukas Matena
abca180f9f More polishing of translations 2020-02-27 14:11:20 +01:00
bubnikv
b4d0d9610e Various changes in handling of profile compatiblilities
and the "show incompatible profiles" option.

It was not able to select the incompatible Print profile, which is
possible now.
(see Cannot select incompatible printer profile #3715)

When the Printer profile derived from the Prusa3D system profile was
active or a system Prusa3D profile was active, and when the Print profile
with the removed "inherits" field was active (or any other profile
derived from the "-- default --" profile was active), then the filament
selector offered just the profiles with the removed "inherits" field
(or any other profile derived from the "-- default--") profile.
This behavior has been now changed, so that in this scenario the Filament selector
will offer the Prusa3D vendor profiles compatible with the active Print
and Printer profile as well as the user profiles.

Slicer was also changed to keep an incompatible preset selected
at its respective tab if its respective "Red flag" is enabled.
For example, if an incompatible Print preset is selected and a Printer
profile is switched to another one which is not compatible with the active
Print preset that was red already, the active Print preset is
not switched if the Print "Red flag" is active. However, if the Print profile
was compatible before the Printer profile is switched and now the Print
profile becomes incompatible, another compatible Print profile is selected.

A likely bug in wxWidgets was worked around when switching a Print preset
on Plater, if the last item in the Print preset was active and incompatible,
and another Print preset was selected by the user. On Windows, an CBN_EDITCHANGE
is sent just after combo box selection change event and the CBN_EDITCHANGE
holds an index of the combo box item, which will be removed by the 1st event,
therefore leading to an assert in wxWidgets on CBN_EDITCHANGE. The workaround
is to disable processing of CBN_EDITCHANGE on Windows for the Plater
preset selection combo boxes.
2020-02-27 11:44:12 +01:00
David Kocik
26c89300f3 copy file result enum 2020-02-27 10:44:25 +01:00
David Kocik
70f5efbfc3 eject sd card/usb icon 2020-02-26 15:02:43 +01:00
Enrico Turri
47604b6326 #3707 - Fixed buttons layout after closing preference dialog 2020-02-26 10:18:04 +01:00
Enrico Turri
69e1e46dd7 Fixed reload from disk for modifiers 2020-02-26 08:56:05 +01:00
Lukas Matena
aa8c97803c Fix of #3695
Ternary operator is given wxString and std::string, which does not work when implicit conversions between std::string and wxString are disabled
2020-02-25 15:53:01 +01:00
Lukas Matena
c326b31c92 Enabled text-wrapping for tooltips in hollowing gizmo 2020-02-25 11:12:04 +01:00
Lukas Matena
f475d994b3 Fixup of previous commit - actually added the translation macros 2020-02-24 15:24:12 +01:00
bubnikv
d4d5076e49 Generalization of translate() / translate_utf8() to wxString arguments. 2020-02-24 15:23:43 +01:00
Lukas Matena
e16786b701 Added a missing localization L mark 2020-02-24 14:54:44 +01:00
Lukas Matena
15ea6f5609 Several translation-related fixes
ConfigWizard name was missing translation macro in several places
Few typos corrected
Some string conversions fixed
Two strings were not marked for translation
2020-02-24 11:00:48 +01:00
bubnikv
d5bffd2816 Fixed crash on reading profiles with the "thumbnails" settings different
from the parent profile.
2020-02-24 10:41:20 +01:00
bubnikv
6ddb21fe06 Bumped up version to 2.2.0-beta
Changed the profile directory from PrusaSlicer-alpha to PrusaSlicer-beta
2020-02-21 18:44:53 +01:00
bubnikv
29086aa00b Fix of a regression from e0811e4aa5
Due to refactoring of G-code export some "don't care" extrusions
were not extruded at all.
2020-02-21 18:18:17 +01:00
Lukas Matena
53f1a283f3 Hollowing gizmo sliders now contain a unit where appropriate 2020-02-21 14:24:50 +01:00
Lukas Matena
676448581d Fixed a bug in hollowing gizmo - hole depth not matching slider value after selection 2020-02-21 14:23:50 +01:00
bubnikv
a7ffd2a6fe GUI::show_error() is now generalized for std::string and const char*
Fixed return type of std::string translate_utf8() with context
(incorrectly returned wxString, should return std::string).
Fixed double translation of BackgroundSlicingProcess::validate() in Plater.
2020-02-21 13:38:06 +01:00
Lukas Matena
f60c117761 One more encoding problem
Uncovered after rebasing onto current master
2020-02-21 12:53:51 +01:00
Lukas Matena
91cabe5832 Fixed few more encoding issues
All uncovered after disabling unsafe wxString conversions
2020-02-21 12:53:51 +01:00
Benjamin Greiner
a877147afd fix #3402
Amended by lukasmatena: changed mb_str() to ToUTF8()
2020-02-21 12:53:51 +01:00
Lukas Matena
598ec04639 Hopefully a fix for #3683 (encoding in hollowing gizmo) 2020-02-21 12:53:28 +01:00
bubnikv
aef93158ec Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2020-02-21 12:18:57 +01:00
bubnikv
377b9e4b45 ImGUI input_double wrapper for wxString label.
Possible fix of Fix encoding in Hollowing #3683
2020-02-21 12:17:46 +01:00
David Kocik
dd0e527d6d Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-02-21 11:18:09 +01:00
David Kocik
427cf32849 refactoring of errors at copying g-code to target destination 2020-02-21 11:17:48 +01:00
bubnikv
004b23e362 Fix of Bug: Changing print settings resets filament settings #3675
When switching a Print profile, the modifications of an active Filament
profile were incorrecly dropped even if the active Filament profile
was compatible with the newly selected Print profile.
2020-02-21 11:03:03 +01:00
Lukas Matena
8be3d074fd Fix of wipe into object
The bug was introduced in 15eedef. lower_bound_by_predicate implementation returns first item that does not satisfy the predicate, not last item that does.
2020-02-21 10:05:33 +01:00
Lukas Matena
57c0a313a4 Fixed typo in an error message 2020-02-21 10:05:03 +01:00
Lukas Matena
74799ade14 Fixed two cases of crashes on application close
Both related to ObjectList - it was attempting to call plater after it was destroyed
Approved by @YuSanka
2020-02-21 10:02:41 +01:00
Lukas Matena
003a54600d Make sure that objects are correctly shown/hidden when switched 2020-02-21 09:46:40 +01:00
Lukas Matena
4c22023762 SLA gizmo clipping plane resetting
Clipping plane direction is now initialized when the plane is first moved, not when the gizmo is opened. This is how previous versions worked.
This is a minimal-effort solution before the clipping plane is refactored properly.
2020-02-21 09:46:40 +01:00
Lukas Matena
4df6a645f2 AABB trees for SLA gizmos are not calculated when the object is selected, but only after one of the gizmos is opened 2020-02-21 09:46:40 +01:00
YuSanka
487ac0423e Implemented time estimation for PausePrint (#3544)
DoubleSlider: fixed get_color_for_color_change_tick()
2020-02-20 17:33:43 +01:00
Lukas Matena
90a8076d25 SLA support gizmo correctly hides drain holes if they are clipped by clipping plane 2020-02-20 15:04:53 +01:00
YuSanka
5e4a0b96b7 Linux issue: fixed Object's DnD with sub items 2020-02-20 14:19:00 +01:00
David Kocik
746a5c1788 bug fix at check_copy() while exporting to sd/usb 2020-02-20 10:35:53 +01:00
tamasmeszaros
bfd79fc48c Fix English tooltip and label for elefant_foot_min_width 2020-02-19 13:48:10 +01:00
YuSanka
77daa54b0c Localization: New POT 2020-02-19 13:21:31 +01:00
bubnikv
dfbae648bf Follow up on 6deb6a776d:
Fixed orientation of contours after Elephant Foot Compensation.
2020-02-19 12:58:03 +01:00
YuSanka
ae197ddd94 Added a shortcut to the tooltip for a "Send to printer" button (related to #3667)
+ Localization: fixed some phrases
2020-02-19 10:59:05 +01:00
bubnikv
ab72d5135b Fix of Placeholders do not respect filament overrides. #3649 2020-02-19 10:56:30 +01:00
tamasmeszaros
fcaa498abd Merge branch 'tm_sla_efc_SPE-1080' 2020-02-18 17:39:56 +01:00
tamasmeszaros
6deb6a776d Do EFC for the first faded layers of SLA, interpolate efc parameters
Compensated slices have negative orientation...


Move efc to common params


Fix elefant foot compensation reversed contours


Remove redundant assertions and don't apply absolute correction if zero
2020-02-18 17:39:36 +01:00
YuSanka
5c6987137d Removed code which is redundant now,
but causes an issue #3642 (G-Code Export button visible in "non-default" position)

All Show/Hide() of active buttons are processed inside show_action_buttons() function
2020-02-18 15:45:17 +01:00
bubnikv
0228375512 Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2020-02-18 15:44:07 +01:00
bubnikv
b47246f69b Fixed a bug, where the top or bottom solid layers were created even
if the number of top / bottom solid layers was set to zero while
the top / bottom minimum shell thickess was set nonzero.

With this commit, if the top / bottom solid layers is set to zero,
there are no top / bottom solid layers generated independent from
the minimum top / bottom shell thickness.
2020-02-18 15:44:01 +01:00
tamasmeszaros
726f645f84 Fix default hard coded parameters for SLA
fixes #3650
2020-02-18 15:39:30 +01:00
bubnikv
25d6818fc7 Fix of
Opening saved project removes Print Host settings #3655
Octoprint Settings when Opening a .3MF file #3244

When loading a configuration file (from AMF, 3MF, .ini or .gcode),
and if the host settings ("print_host", "printhost_apikey", "printhost_cafile")
in the configuration file is empty, then the config is considered to be anonymized,
and these anonymized keys are loaded from the referenced "derived from" profile,
if it exists in user's PrusaSlicer configuration directory.

We are aware that this is a patch work and a better long term solution
is to separate physical printer settings from logical printer settings,
but this is a good enough solution for PrusaSlicer 2.2.0 release.
2020-02-18 14:13:56 +01:00
YuSanka
b5e61982a6 Localization: changed some phrases. Updated POT 2020-02-18 13:46:12 +01:00
David Kocik
441f045a52 text change - forced update dialog 2020-02-18 13:15:58 +01:00
bubnikv
43f2171446 Partial fix of v2.2.0 alpha2 Unhandled exception - extrusion width #3482
Exceptions thrown by Flow calculation were made explicit classes derived
from std::invalid_argument.

The PresetHints::recommended_thin_wall_thickness() newly catches these
exceptions and it shows the reason of why the hint is invalid.
2020-02-18 12:26:56 +01:00
YuSanka
d1e3435956 Fixed non-correct TextCtrl's update on wxEVT_KILL_FOCUS (partially related to #3482),
when for Parameter validation dialog "Selecting NO caused no change".

OSX:TextCtrl:wxEVT_KILL_FOCUS: Second call is suppressed

+ Under OSX set a little bit more wider width for Fields
2020-02-18 11:11:39 +01:00
bubnikv
1850685431 One more fix for Make compile and works for FreeBSD (#3556) 2020-02-18 10:15:41 +01:00
Lukas Matena
b1145df566 Fixed incorrect filtering of extrusions during gcode generation
The behaviour resulted in duplicate extrusions in some cases
Fix of #3665
2020-02-18 09:52:34 +01:00
David Kocik
e571181c54 config wizard: enable finish button if only custom printer is selected 2020-02-17 15:57:16 +01:00
Lukas Matena
9b73ecdf02 Fixed printing order of skirt-brim intersecting extrusions (#3634) 2020-02-17 12:57:43 +01:00
YuSanka
1693a56ea3 Suppress print info about Weight and cost, if they are equal to zero 2020-02-17 11:51:22 +01:00
YuSanka
3631e938b2 Extruder selection for multiple selected objects/parts.
A Menu with colored icons is used now instead of wxGetSingleChoice.
All menus for extruder selection use colored icon
2020-02-17 11:26:40 +01:00
YuSanka
860571d51d DoubleSlider: Changed behavior of thumbs. New rule: Only active thumb is moving to the new place. 2020-02-14 16:44:49 +01:00
YuSanka
23732864ab Fixed bug related to possibility of load several files as a multi-part object
Steps to repro:
 - set MMU printer
 - set SL1 printer
 - add two or more objects
 - select yes in "Multi-part object detected" dialog
2020-02-14 14:44:17 +01:00
YuSanka
3f27802c0a Fix of Crash when trying to select extruders for multiple parts (#3657) 2020-02-14 13:27:25 +01:00
Lukas Matena
cd937d62b5 Make sure that filament stats in gcode are on separate lines 2020-02-14 12:50:26 +01:00
YuSanka
3ffc565722 DoubleSlider:colored_band: Fixed get a correct color for extruder, when it's changed from Settings Tab 2020-02-14 09:52:27 +01:00
YuSanka
1399696b04 DoubleSlider: Suppressed manipulation for sequential print.
+ some code refactoring

 + experiment with alignment of several options inside the Line
2020-02-14 09:52:27 +01:00
tamasmeszaros
41d77b492c Added new parameter elefant_foot_min_width 2020-02-14 09:21:00 +01:00
tamasmeszaros
96d5c8c35d Add elephant foot compensation to SLA print
Work in progress


Convert efc input to the right scaling


Apply EFC on the slice index to make it visible in the preview.
2020-02-14 09:21:00 +01:00
Lukas Matena
f8c5855d55 Hollowing 'accuracy' and 'closing distance' are only shown in the hollowing gizmo when the respective mode is active 2020-02-13 15:55:36 +01:00
tamasmeszaros
1cdde90971 Add tooltip and rename labels of hollowing params 2020-02-13 14:58:17 +01:00
Lukas Matena
2f18101c77 Slightly changed hollowing gizmo title
'ing' forms were removed to match Cut gizmo
2020-02-13 14:22:16 +01:00
Enrico Turri
0ce730e79a Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-02-13 13:55:27 +01:00
Lukas Matena
2f3b665ac5 Fixup of 6d0cf16: Export hollowed STL 2020-02-13 13:49:18 +01:00
Enrico Turri
8e4274e100 Fixed conflicts after merge with master 2020-02-13 13:41:42 +01:00
Enrico Turri
4a59a45d51 ENABLE_SHOW_SCENE_LABELS set as default 2020-02-13 13:24:52 +01:00
tamasmeszaros
c4c2cf4ead Merge remote-tracking branch 'origin/tm_fix_commandline' 2020-02-13 12:53:31 +01:00
Enrico Turri
6914f688f8 ENABLE_BACKWARD_COMPATIBLE_RELOAD_FROM_DISK set as default 2020-02-13 12:43:19 +01:00
Enrico Turri
847efec2ed ENABLE_6DOF_CAMERA set as default 2020-02-13 12:13:54 +01:00
Enrico Turri
904263d231 ENABLE_CONFIGURABLE_PATHS_EXPORT_TO_3MF_AND_AMF set as default 2020-02-13 11:25:34 +01:00
Enrico Turri
b0218daafe ENABLE_MODIFIED_TOOLBAR_TEXTURES set as default 2020-02-13 09:50:06 +01:00
Enrico Turri
5797c9edc2 ENABLE_3DCONNEXION_Y_AS_ZOOM set as default 2020-02-13 09:20:20 +01:00
tamasmeszaros
25e303493e Revert c55173eb as it breaks features.
Output file name is not picked up in the SLA export file dialog.
2020-02-12 18:25:18 +01:00
tamasmeszaros
d13b0e45f4 Fix command line slicing by tweaking default config values. 2020-02-12 18:21:56 +01:00
YuSanka
c877549b1b Fixed width of "printhost_apikey" and "printhost_cafile" fields 2020-02-12 15:47:34 +01:00
Enrico Turri
c55173eba4 Follow-up of 00ecafe3d5 -> Fix of #3650 moved into 'SLAPrint::output_filename()' as the previous fix was breaking the export from GUI 2020-02-12 15:39:04 +01:00
Enrico Turri
d350d001fc New keyboard shortcuts dialog -> Bigger default size 2020-02-12 15:02:22 +01:00
Enrico Turri
4d556b40d1 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_shortcuts_dialog 2020-02-12 15:01:53 +01:00
Enrico Turri
00ecafe3d5 #3650 - Fixed extension of exported file when processing models for sla printers from command line 2020-02-12 14:23:54 +01:00
YuSanka
e70b17f38c Updated POT
+ Fixed texts in DoubleSlider.cpp
2020-02-12 14:19:48 +01:00
YuSanka
fcd1cf371b Alignments of options in settings tabs
+ msw_rescale() is overridden for PrinterTab to rescale of all the option Pages and not just a respect to current print technology
+ A Setting of the option.width in PrintConfig is no need anymore
2020-02-12 12:51:34 +01:00
Enrico Turri
c33dc5c2fe New keyboard shortcuts dialog -> Scrollable pages and resizable dialog 2020-02-12 11:25:36 +01:00
Enrico Turri
b5152e4126 New keyboard shortcuts dialog -> Fixed items order and use wxNotebook on top 2020-02-12 08:49:56 +01:00
Enrico Turri
742c6b6746 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_shortcuts_dialog 2020-02-12 08:09:22 +01:00
Lukas Matena
2e62f03ba8 Small fix of 41388bd:
Interior mesh can be empty and TriangleMeshSlicer would fail in that case.
Also, recalculating shared vertices after repair should probably be done, TMS relies on it.
2020-02-11 15:25:28 +01:00
Enrico Turri
9689d006c0 Rework of keyboard shortcut dialog layout -> use wxChoicebook 2020-02-11 15:12:35 +01:00
Enrico Turri
c0ee66fd52 Rework of keyboard shortcut dialog layout -> use wxNotebook at left 2020-02-11 15:01:32 +01:00