Commit Graph

7252 Commits

Author SHA1 Message Date
enricoturri1966
f27032f603 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2021-01-14 11:38:22 +01:00
enricoturri1966
8bdfb6bbce ENABLE_SPLITTED_VERTEX_BUFFER - fixed bugs in export of toolpaths to obj files and in index buffer splitting 2021-01-14 11:38:03 +01:00
YuSanka
af6ef2cb8a Merge remote-tracking branch 'origin/master' into dev 2021-01-13 14:18:55 +01:00
enricoturri1966
bda43e4482 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2021-01-13 10:46:11 +01:00
enricoturri1966
67e144f329 ENABLE_SPLITTED_VERTEX_BUFFER - fixed export of toolpaths to obj files 2021-01-13 10:45:52 +01:00
Vojtech Bubnik
293f85b6cf Fix of Invoking prusa-slicer from $PATH environment variable crashes #5542
Also it likely fixes Crashes when started from symbolic link #5751
2021-01-13 09:22:13 +01:00
YuSanka
0369caa9e1 Fix of #5163 and #5505 - Vertical cutting of the preset comboboxes on a sidebar 2021-01-12 14:54:58 +01:00
enricoturri1966
dc781535b2 Code cleanup 2021-01-12 14:34:52 +01:00
enricoturri1966
e443fe49ad ENABLE_SPLITTED_VERTEX_BUFFER - fixed visualization of last segment for paths whose vertex buffer has been splitted 2021-01-12 14:03:58 +01:00
enricoturri1966
fb7dada01d 1st installment of tech ENABLE_SPLITTED_VERTEX_BUFFER - split vertex buffer when greater than a fixed max size 2021-01-12 09:03:35 +01:00
Sebastian Hammerl
f6f1a3265b Added conversion to c_str 2021-01-12 08:54:39 +01:00
enricoturri1966
250adabd5c Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2021-01-12 08:10:17 +01:00
Vojtech Bubnik
7d751753bc Replaced __linux macro with __linux__ 2021-01-11 13:31:30 +01:00
YuSanka
7a1574a853 Fix of #5720 - SL1 Printer Settings->Notes is not updated when switching tab 2021-01-11 13:11:35 +01:00
Vojtech Bubnik
5a1a41096b Fix of a crash when slicing an object producing no layers and
elphant foot compensation is enabled.
2021-01-11 12:20:50 +01:00
Vojtech Bubnik
d46a756b98 Finally fixing the single instance for AppImage 2021-01-11 11:41:22 +01:00
Vojtech Bubnik
a900b7767b Fix of previous commit 2021-01-11 11:29:27 +01:00
Vojtech Bubnik
7780221683 Fixed "Single instance" locking issue on Linux with AppImage,
where the PrusaSlicer binary is mounted at a different mount point
at each AppImage execution.
Fixes Lock files in the local configuration directory are not deleted (#5733)
2021-01-11 11:14:59 +01:00
Raphael Sobik
2db704917a
Use correct M204 command for acceleration
M204 S is not supported for RepRapFrimware (https://duet3d.dozuki.com/Wiki/Gcode#Section_M204_Set_printing_and_travel_accelerations).
2021-01-11 10:50:18 +01:00
Boleslaw Ciesielski
ecda157c51 Fixed build regression in commit a5882a1a1c on some Linux platforms. We need to link with GTK libs after all. 2021-01-10 22:39:59 -08:00
Mathias Rasmussen
7db371f4df
remove "Some text" 2021-01-09 14:31:21 +01:00
tamasmeszaros
d19a7fcfad Increase tolerance for objects being outside print bed. 2021-01-08 10:14:24 +01:00
enricoturri1966
2dfa91eaf9 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2021-01-08 08:48:10 +01:00
enricoturri1966
012a76e126 Removed obsolete method declaration in GLCanvas3D 2021-01-08 08:47:33 +01:00
enricoturri1966
2e6a0f1ae3 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2021-01-08 08:18:27 +01:00
Vojtech Bubnik
2b02747ec5 On OSX, we use boost::process::spawn() to launch new instances of PrusaSlicer from another PrusaSlicer.
boost::process::spawn() sets SIGCHLD to SIGIGN for the child process, thus if a child PrusaSlicer spawns another
subprocess and the subrocess dies, the child PrusaSlicer will not receive information on end of subprocess
(posix waitpid() call will always fail).
https://jmmv.dev/2008/10/boostprocess-and-sigchld.html
The child instance of PrusaSlicer has to reset SIGCHLD to its default, so that posix waitpid() and similar continue to work.
Fixes #5507
2021-01-07 19:14:48 +01:00
Vojtech Bubnik
71808dc006 boost::process::spawn() sets SIGINT to SIGIGN, which collides with boost::process waiting for a child to finish!
https://jmmv.dev/2008/10/boostprocess-and-sigchld.html
Thus reset the SIGINT to its default, so that posix waitpid() and similar continue to work.
Fixes Crash on Eject in Second Instance on macOS #5507
2021-01-07 17:38:56 +01:00
Vojtech Bubnik
2ad4447035 Fix of Ejecting of device has failed on Ubuntu Linux #3975
Eject failed due to superfluous escaping of spaces in path to the SD card
mount point.
2021-01-07 14:17:09 +01:00
Vojtech Bubnik
4988b93b8d Merge remote-tracking branch 'remotes/origin/master' into vb_osx_eject 2021-01-07 14:12:40 +01:00
Vojtech Bubnik
8c597e9533 Merge remote-tracking branch 'remotes/origin/dk_refresh' into vb_osx_eject 2021-01-07 14:00:21 +01:00
tamasmeszaros
2505c0a82d Fix for incorrect text fitting on gtk comboboxes.
fixes #4584
2021-01-07 13:38:29 +01:00
David Kocik
df59f9497a request frame with delay when new notification pushed 2021-01-07 13:33:05 +01:00
tamasmeszaros
a5882a1a1c success with text ellipsize for combobox 2021-01-07 13:24:26 +01:00
David Kocik
c61a6289c5 update notification before erasing finished ones 2021-01-07 13:16:23 +01:00
Vojtech Bubnik
c227e15794 Fixed compilation on OSX 2021-01-07 13:13:35 +01:00
David Kocik
f43b34fb57 wxWakeUpIdle when render timer ends to ensure idle function spawns and triggers rendering 2021-01-07 12:54:53 +01:00
YuSanka
8e7958da12 Fix of #5698 - When editing presets, list items are always green even if values have changed compared to preset or defaults 2021-01-07 12:26:16 +01:00
Vojtech Bubnik
546fbe1e8e Fix of previous commit for OSX 2021-01-07 12:19:41 +01:00
Vojtech Bubnik
961abd75e8 Fix of previopus commut 2021-01-07 12:09:47 +01:00
Vojtech Bubnik
18cf1fdb43 Fixing the SD card eject issue on OSX by pushing the call to
"diskutil eject" to a worker thread.
Hopefully fixes Ejecting an SD card is slow and locks UI #4844
2021-01-07 12:02:44 +01:00
enricoturri1966
f5c3ca8eea Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2021-01-07 11:13:26 +01:00
enricoturri1966
77f6606771 Another refactoring in GCodeViewer::load_toolpaths() 2021-01-07 11:13:07 +01:00
enricoturri1966
83f60a9dd1 Small refactoring in GCodeViewer::load_toolpaths() 2021-01-07 10:11:50 +01:00
enricoturri1966
ebed29708d Refactoring of GCodeViewer initialization 2021-01-07 09:57:37 +01:00
YuSanka
efd3002ea9 Fix of #5568 - Unselecting more than 10 copies stops at copy 10
But really bug was: incorrectly interrupted DnD.
2021-01-07 09:56:43 +01:00
enricoturri1966
27bd79e409 Fixed merging error after merge with master 2021-01-07 09:06:15 +01:00
YuSanka
3070e66aae Fixed black rects for extruder colors, when we load 3mf project with MM-printer profile and extruder colors is set to the filament colors
+ Fixed a bug with updating colors in extruder editors in ObjectList, when we use filaments colors for extruders and some filament profile is switched
2021-01-07 08:52:45 +01:00
enricoturri1966
676540279d Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2021-01-07 08:24:29 +01:00
Vojtech Bubnik
daa0bbdb0c Fix of slow update when dragging the vertical slider in G-code viewer
with volumetric flow color mapping enabled.
Fixes "Volumetric flow rate computes very slowly #5572"
2021-01-06 15:32:31 +01:00
YuSanka
939d08af19 Fix of #4532 - "Send G-Code to printer host" dialog box blanks out text on Linux 2021-01-06 12:24:00 +01:00
Vojtech Bubnik
67256d6bb0 Added a FIXME comment for
Sequential tool path ordering of multiple parts within the same object, aka. perimeter tracking (#5511)
2021-01-06 12:19:08 +01:00
Vojtech Bubnik
93a5906a18 Fixed numerical issue with the new algorithm to connect infill lines
with perimeters:
1) Increased accuracy of the contour length parametrization from
   float to double, as double should capture the difference of
   32bit coord_t with full accuracy (or at least very close).
2) The algorithm to insert the T-joint points into the infill perimeter
   contour was improved to avoid inserting duplicate points.
2021-01-06 12:18:05 +01:00
Vojtech Bubnik
3c9f3d2b66 Fixing the infill order for concentric infill to outside-in.
Relies to:
Concentric Fill Start Point - New Feature Request #4948
Feature Request: Archimedean Chords - Option to define direction of travel (Inside-Out or Outside-In) #5214
2021-01-06 11:05:32 +01:00
Lukas Matena
e733565031 Fix of #5632 (painter gizmos not working correctly with scaled objects)
This was broken since 8bcdbb7.
2021-01-05 17:06:05 +01:00
YuSanka
48c7673cc6 Fix of #5584 - Information text on startup logo 2021-01-05 14:26:10 +01:00
Vojtěch Bubník
57d0f4b4f6
Merge pull request #5544 from hzeller/fix-assignment-of-charliteral-to-writable-charptr
Fix assignment of string literals to char*.
2021-01-05 13:11:29 +01:00
Vojtech Bubnik
fb29325b14 Fix of G-code Viewer not loading .gco files #5536
".gcode", ".gco", ".g" and ".ngc" were considered to be G-code file
extensions by the G-code import / export file dialogs, but not by
various other functions. Now the G-code extension is tested by
a single function is_gcode_file(string).
2021-01-05 12:26:11 +01:00
enricoturri1966
b93c2aea44 #5690 - Fixed thumbnail generation when a gizmo is active 2021-01-05 11:58:48 +01:00
tamasmeszaros
a629401916 Fix for "bed fill" discarding selected instance transformation.
fixes #5621
2021-01-04 20:33:17 +01:00
YuSanka
f119b80341 Fix of #5672 - Dubious grammar when closing Physical Printer dialog 2021-01-04 19:03:34 +01:00
YuSanka
c3f88db392 Fix of #5638 2021-01-04 18:05:20 +01:00
YuSanka
5845957c7d Fix of second part of #5531
From the Win 2004 preset combobox lose a focus after change the preset selection and that is why the up/down arrow doesn't work properly.
So, set the focus to the combobox explicitly.
2021-01-04 16:51:29 +01:00
Vojtech Bubnik
1076e077ce Fix of Adaptive cubic infill weird behavior #5633
Enabling reordering of infill paths for Support Cubic and Adaptive Cubic
infill types.
2021-01-04 15:42:23 +01:00
Lukas Matena
30c8592b10 Do not use ironing extrusions for autospeed calculations (#5082) 2021-01-04 14:21:24 +01:00
enricoturri1966
4d3cb19423 5677 - GCodeProcessor accepts gcode line T-1 as valid for RepRapFirmware and RepRapSprinter 2021-01-04 14:21:24 +01:00
enricoturri1966
016042db10 Disabled tech ENABLE_RENDER_STATISTICS 2021-01-04 14:21:24 +01:00
Lukas Matena
837070a246 Hotfix of a crash with raft and one-layer object (#5652)
The problem is that PrintObject support generator is only run when m_layers.size() > 1, so one-layer object will skip it.
It apparently never worked, after recent refactoring (probably 8bfc986) it started to crash in GCode generator.
This commit fixes the crash, but not the problem. The raft is still not generated (like in all versions since 2.0.0 at least).
2021-01-04 14:21:24 +01:00
Tuomas Kuosmanen
7a41ab20ed Changed wording in one log message 2021-01-04 14:21:24 +01:00
Lukas Matena
6cf47f3e61 Use monospace font in placeholder parser error messages (Linux fix)
Previous implementation did not use monospace font on Linux. According to a note
from @wavexx in ba7f39a: "wxSYS_ANSI_FIXED_FONT use the same as DEFAULT in wxGtk".
This commit uses the same workaround by actually loading the font from GUI_App.
2021-01-04 14:21:24 +01:00
Lukas Matena
1d25630508 Fix of #5606 (Force invalidation when object settings are deleted) 2021-01-04 14:21:24 +01:00
Lukas Matena
6c2ce4b6b6 Escape special xml characters when writing metadata into the model file
This should fix #5577
2021-01-04 14:21:24 +01:00
Vojtech Bubnik
2d428198b1 Fix of 2.3 rc1 can't load its own 3mf files (if they contain custom gcode) #5550
The issue was handling of the special "default_filament_profile" vector,
which is not being normalized in length to the number of extruders,
as this vector is being shown to the user at the Printer dependencies page,
and we don't want to present empty fields there, if the default filament
profile was not defined in the system preset.
2021-01-04 11:13:44 +01:00
Vojtech Bubnik
b002c1485d Fix of PrusaSlicer hangs on Linux when run with non standard task affinity #5661 2021-01-04 09:03:49 +01:00
YuSanka
c747502db9 Fix of #5517 "Unsupported Selection" error when copy pasting objects with modifiers... 2020-12-30 12:44:07 +01:00
YuSanka
6effa30322 Move text color selection from ButtonsDescription to Preferences dialog (related to #5489) 2020-12-30 12:04:59 +01:00
YuSanka
0331bcefd9 ObjectList: Smart update of the min height in respect to the items count.
Min 7 items and max 15 items
2020-12-30 11:00:02 +01:00
YuSanka
40fb39f5e1 Change the y_step for sidebar slider to fix strange layout of the sidebar 2020-12-29 19:04:38 +01:00
YuSanka
e193a0e921 localization: Fixed one phrase 2020-12-22 17:24:29 +01:00
Pascal de Bruijn
75381af263
PrusaGcodeviewer.desktop icon (#5555)
Linux: update PrusaGcodeviewer.desktop icon
2020-12-22 16:50:34 +01:00
YuSanka
034ca8ef57 Fixed a checking of the description lines existence before setting new value for them 2020-12-22 16:23:53 +01:00
Lukáš Hejl
81878a6f79 Fix of #5537 - GUI_App::post_init could be in some cases called before GUI_App::init_openg when GCode viewer is used.
The solution adds a status flag to GUI_App::init_openg and ensures that GUI_App::post_init isn't called before initialization in GUI_App::init_openg is done.
2020-12-22 12:28:00 +01:00
David Kocik
99f5dfbde7 Added error-checking for child.wait() call during removable drive ejection (to prevent #5507)
Mark Ejection as failed if the wait() function fails. It seems that it is not simply possible
to retrieve the exit code of the process in that case (although it usually finishes sucessfully).
2020-12-22 12:18:30 +01:00
YuSanka
6c399052c6 Fixed a crash on copy/paste, when ObjectList has no selection. Related to #5517 2020-12-22 10:42:47 +01:00
YuSanka
738c115ec1 Follow-up to 9d34d350a5: Missed one more translation for category, when checking selection on the left panel
+ Fixed a typo in CS and ES dictionaries
2020-12-21 14:28:50 +01:00
Lukáš Hejl
dc2e7aeb4e Fixed wrong generation of Adaptive Cubic and Support Cubic infill when infill extrusion width is set in percent. 2020-12-21 14:14:06 +01:00
Lukas Matena
78a3d8b63e Fixed ASCII folding for non-foldable non-ASCII characters
Problem: Add an object, name it using cyrilic, Slice, click Export: the proposed name is mangled. Affects all platforms, 2.2.0 was fine.

Cause: It is mangled during ASCII folding, which was broken with 28c0880 when it was generalized to be used from the fuzzy matcher.
    fold_to_ascii(wchar_t c, char *out) relies on narrowing char = wchar_t assignment, the old one used std::back_insert_iterator<std::wstring>.
    It is thus unable to leave a character alone even when it should (it should, right?).

Solution:
    1. Typed the fold_to_ascii function so it works on wchar_t only, which should mimic the old behaviour.
    2. Changed the respective call in fts_fuzzy_match.h. That function also works with wide char C-strings.

Cleanup:
    1. Removed the unused fold_utf8_to_ascii(const char *src) overload to avoid code duplication.
    2. Untemplated the fold_to_ascii(wchar_t c, std::back_insert_iterator<std::wstring>& out) function, it was never called with a different type.
    3. The function is now static in ASCIIFolding.cpp, nobody else needs to know.
2020-12-21 10:31:37 +01:00
Lukas Matena
1f5ac7d2f7 Fix of a crash on startup when creating physical printer profiles from 2.2 configs (#5513, #5074)
The issue is that opening the wxMessageDialog in GUI_App::check_printer_presets  fires wxEVT_IDLE event (on Linux at least).
At that point it is already bound to our lambda which will in turn call post_init prematurely.
The solution is to move the Bind at the very end of the initialization. The post_init that it calls assumes that init has been finished anyway.
2020-12-21 10:27:35 +01:00
Lukáš Hejl
181642b85b Fix of #5528 - Request re-slicing when bottom_solid_layers changes and spiral_vase is enabled. 2020-12-21 09:15:33 +01:00
Henner Zeller
79e041b961 Fix assignment of string literals to char*.
Fix some char *foo = "string literal" assignments that
really should be assigned to const char*.

(they also happen to be constexpr, but that only prevents
to assign something later to foo, but does not alter
the char* type).

Signed-off-by: Henner Zeller <h.zeller@acm.org>
2020-12-20 13:40:25 -08:00
David Kocik
593c397b19 Missing init() call at notification render 2020-12-19 09:22:40 +01:00
David Kocik
b5de1456a0 Keyboard shortcut at notification hover - eject sd 2020-12-18 15:48:59 +01:00
Lukas Matena
b0115dca60 Fixed encoding issue in ConfigWizard on Windows (#5422) 2020-12-18 15:35:30 +01:00
YuSanka
d49f85572b Added a missing translation macro 2020-12-18 13:28:24 +01:00
Lukas Matena
1cbe2bd87e Added a missing translation macro 2020-12-18 13:04:28 +01:00
Lukas Matena
8f3baeb1c9 Fix of #5410 (Ironing untick/tick bug)
This is a follow-up of commit b1b7a5a which fixed several similar bugs
2020-12-18 12:44:24 +01:00
YuSanka
8849aa77dc Decrease min height for ObjectList (related to #5462) 2020-12-18 11:31:14 +01:00
YuSanka
240dc8b697 Follow-up to 19b52da260: Fixed scale for view toolbar on HDPI (GTK3 specific) 2020-12-18 11:27:28 +01:00
enricoturri1966
d791720b5e Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-12-18 09:03:45 +01:00
enricoturri1966
156019d9d0 Fixed color of shells in preview 2020-12-18 09:03:18 +01:00
YuSanka
19b52da260 Fix of #5501 - 3D Editor / Layer View widget DPI regression (Linux GTK3 specific) 2020-12-18 08:40:17 +01:00
Lukas Matena
5bd1a57650 Bumped up version number to 2.3.0-rc1 2020-12-17 18:07:35 +01:00
YuSanka
b22a38d1d1 Fix of "cut off text for filament type" (Related to #5444) 2020-12-17 16:51:51 +01:00
Lukas Matena
aa69730bc2 Revert recent changes in PresetUpdater error reporting
This reverts commits:
57ba953 ("PresetUpdater - exceptions reformatted, not throwing an exception")
03028bb ("Improved exception throwing at copy file in preset updater")
2020-12-17 16:08:51 +01:00
Lukas Matena
6e3b4b6fd8 Random seam: optimization and fix of a possible infinite loop 2020-12-17 15:48:25 +01:00
enricoturri1966
ce32d68368 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-12-17 11:41:54 +01:00
enricoturri1966
b8fc1d3173 GCodeViewer - Fixed visualization of time estimates for silent mode 2020-12-17 11:41:41 +01:00
Vojtech Bubnik
ba9a9b4e7a Fixed buffer overflow in the OBJ parser.
Improved error reporting on OBJ parser.
2020-12-17 09:53:21 +01:00
david kocik
b1095adc18 follow up of commit c9da06e44a 2020-12-17 09:51:45 +01:00
Vojtech Bubnik
7df9f3e422 Improvements of OBJ parser robustness. 2020-12-17 09:17:07 +01:00
YuSanka
19b7827511 Fix of #5103 and #4861 - ConfigWizard layout issues 2020-12-16 23:44:40 -08:00
YuSanka
64e68f418b Follow-up to 3eb63c93e1:
If value for "Extrusion Multiplier" is out of range, and "NO" is selected in warning message dialog, then set previous value instead of max limit value
2020-12-16 20:14:47 +01:00
David Kocik
99747f8f25 Changed requested time of rendering for timed notification to full duration. Commented unused code. 2020-12-16 17:43:51 +01:00
Lukas Matena
20aa8d65bf Fix through Netfabb notification - remove 'undo' hypertext for now and
refuse to fix when a gizmo is opened (because of missing updates)
This is a follow-up of 1249fdb
2020-12-16 17:33:55 +01:00
YuSanka
8b980d4b77 Localization: Updated PrusaSlicer.pot and CZ dictionary
+ Fixed some phrases.
2020-12-16 17:29:38 +01:00
Vojtech Bubnik
1dae057f15 Some refactoring of the fade out of notifications:
1) Use different wxWidgets call to get current time on Windows vs Unix
   for efficiency reasons.
2) Don't call this function multiple times in a single function, it is
   both expensive and not correct: One shall work with the same timestamp.
3) Added missing unbind of the new timer.
2020-12-16 16:15:58 +01:00
Vojtech Bubnik
08c4f674f7 Disabled "error" outputs
1) they should have been trace and
2) likely they should have been only enabled in debug mode and only
   through conditional compilation
2020-12-16 14:40:56 +01:00
David Kocik
3ae40139b3 render timer 2020-12-16 14:15:12 +01:00
David Kocik
0592d15c50 render timer draft 2020-12-16 14:15:12 +01:00
Vojtech Bubnik
4d459f37de Merge branch 'lm_230beta3_fixes' 2020-12-16 13:51:09 +01:00
Lukáš Hejl
80251e0cf9 Fixed of unintentional disabling of wipe even in cases when avoid crossing perimeters weren't applied due to exceeding the maximum detour length. 2020-12-16 13:17:09 +01:00
YuSanka
3eb63c93e1 Follow-up to f37b9c4d51:
Fix for issues:
Issue 1:
1. Change "Extrusion multiplier" parameter,
2. Save edited preset.
3. Change "Extrusion multiplier" parameter -> preset wasn't marked as "modified"

Issue 2:
1. Change "Extrusion multiplier" parameter with out of range value
2. Push ENTER for the message dialog
3. Answer "Yes"
4. Same message dialog appears again
2020-12-16 13:11:07 +01:00
enricoturri1966
52e0e5b8cc #5481 - Legend keeps last time estimator mode selected 2020-12-16 12:14:57 +01:00
Vojtech Bubnik
2f71af1ee4 Saving "converted from inches" to 3MF and AMF even if the file source
information is empty.
2020-12-16 12:05:29 +01:00
Vojtech Bubnik
8f04d0e0e2 Reverted escaping of ampersand where the escaping was not needed
/ lead to errors.
2020-12-16 11:46:27 +01:00
YuSanka
f37b9c4d51 Set limits to the "extrusion_multiplier" value and show warning message, if out of range value was inputted 2020-12-15 21:21:09 +01:00
Vojtech Bubnik
0ad3a63a3b Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2020-12-15 15:15:46 +01:00
YuSanka
c9da06e44a Fix for text color for the mode buttons under Linux with GTK2 (related to #5444) 2020-12-15 16:03:32 +01:00
enricoturri1966
9704eb6ece Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-12-15 15:57:32 +01:00
enricoturri1966
dcd69b4ef8 #5415 - Fixed preview when volumetric extrusion is turned on 2020-12-15 15:57:22 +01:00
Vojtech Bubnik
20f5b7a7cd When activating the PrusaSlicer main window, focus the Plater 3D view
or G-code preview if it is marked as Active.
Fixes 3Dconnexion not work directly after importing stl (focus problem ?) #5141
Keep your fingers crossed that it will not break something else.
2020-12-15 15:14:59 +01:00
YuSanka
8d4d6b6c89 UnsavedChangesDialog: Fixed default text color in respect to the system text color (Related to #5444) 2020-12-15 14:58:34 +01:00
Vojtech Bubnik
aa8f97fce2 Fix of 3DConnexion 3D SpaceMouse Jumpy Pan moves on Linux #5233
Also improved error reporting on Linux about the 3DConnexion device
access issues.
2020-12-15 14:27:07 +01:00
Lukáš Hejl
d59f345fbb Fix of #5443 - Assigned input file path for ModelVolume also for AMF archives 2020-12-15 14:18:11 +01:00
Lukáš Hejl
e62f014049 Corrected side text for avoid crossing perimeters max detour 2020-12-15 14:03:52 +01:00
YuSanka
62c23313be Suppress to change "inches" flag after conversion to the inches. 2020-12-15 13:57:30 +01:00
Lukáš Hejl
161fb86c43 Fixed percentages in avoid crossing perimeters max detour 2020-12-15 13:49:35 +01:00
Vojtech Bubnik
a13b35ce92 Support for HiDPI in OpenGL on Linux / GTK3.
wxGTK3 HiDPI support seems to emulate what OSX does quite closely,
thus the changes are relatively minimal.

Also fixed an ugly rounding issue when populating the ImGUI font map
with image thumbnails.

Fixes Gtk3 issue on 4k+ screens #4135
Fixes HiDPI screens with Wayland on Fedora 30 cause Plater view to be too small. #3245
2020-12-15 12:14:38 +01:00
YuSanka
43581059ff Fix of #5450 - Wrong printer preset after loading 3mf project file when having multiple presets for one physical printer 2020-12-15 12:11:20 +01:00
enricoturri1966
82fe571cdc Give focus to 3D scene when activating any gizmo to allow related imgui dialogs to receive keyboard input 2020-12-15 10:57:16 +01:00
enricoturri1966
3f44f8177d Disable [Perform cut] button in Cut Gizmo dialog when the value of Z is not valid 2020-12-15 10:44:51 +01:00
YuSanka
8627c35057 Fix of #5472 - UI bug: profile edit controls hidden by scroll bars 2020-12-15 09:38:18 +01:00
enricoturri1966
4911b36bfd #5470 - Fixed switching camera views with alphanumeric row on a czech keyboard 2020-12-15 09:21:09 +01:00
Lukáš Hejl
0ca337ac7a Apply avoid crossing perimeters also for supports. 2020-12-15 06:46:44 +01:00
Lukas Matena
acb7d66577 Linux locales detection: reject unexpected formatting 2020-12-14 22:59:11 +01:00
Vojtech Bubnik
b9bdfd26e3 Linux locales detection: A little refactoring 2020-12-14 22:59:02 +01:00
Lukas Matena
1249fdb71d Remove custom supports/seams after mesh repair
The repair can remove some of the triangles, so the custom data would make no sense.
This will hopefully fix #5458

Also, show a notification with a hyperlink to undo just before the repair.
2020-12-14 22:59:02 +01:00
Lukas Matena
5553762d9c Do not remove custom supports/seams when converting units to imperial 2020-12-14 20:27:19 +01:00
Lukas Matena
a5d363a9f4 Do not emit M1 gcode for firmwares other than Marlin (after MM priming)
The M1 gcode is apparently only supported on Marlin, others do not support it or use it for something else
This should fix #5441
2020-12-14 20:27:19 +01:00
David Kocik
159dde511e Changed condition for showing Open new instance item in dock icon menu (mac). Fix of #5463. 2020-12-14 19:26:25 +01:00
Vojtěch Bubník
cbb306c86a
Merge pull request #5466 from wavexx/include_atomic
Include <atomic> for std::atomic where needed
2020-12-14 18:29:13 +01:00
Vojtech Bubnik
d70d54d4d3 UndoRedo extension::
has_undo_snapshot(timestamp) to query whether one can undo to a snapshot
with a specific timestamp. Useful for notifications, that want to Undo
a specific operation, to verify whether such operation is still valid.
2020-12-14 16:22:40 +01:00
Vojtech Bubnik
7b9f2093bb Configuration layer: Support for vectors of FloatsOrPercents and
FloatsOrPercentsNullable, to support further filament overrides
of Print preset values, namely Avoid Crossing Perimeters.
2020-12-14 15:58:47 +01:00
enricoturri1966
cdb05d103a Tweaked clamping of max toolpaths width 2020-12-14 15:11:38 +01:00
enricoturri1966
9605e235b8 #5378 - Do not apply machine limits for non-Marlin firmwares 2020-12-14 14:02:50 +01:00
Vojtech Bubnik
12303d93d5 Fixed previous merge 2020-12-14 12:49:16 +01:00
Vojtech Bubnik
e90120994e Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2020-12-14 12:47:59 +01:00
Vojtech Bubnik
b5f95dd4b4 Avoid crossing perimeters max detour could newly be specified
in percentage of the direct path.
2020-12-14 12:45:49 +01:00
Vojtech Bubnik
530148575b Avoid crossing perimeters max detour could newly be specified
in percentage of the direct path.
2020-12-14 12:36:55 +01:00
Vojtech Bubnik
fef729b75a Follow-up to c34b683970
Fix of Slic3r::GUI::format/format_wxstr() for wxString&&
2020-12-14 12:23:29 +01:00
Vojtech Bubnik
c34b683970 Fix of Slic3r::GUI::format/format_wxstr() for non-const wxString references.
Vojtech seemingly does not understand perfect forwarding:
Why Slic3r::internal::format::cook(T&& arg) is taken for non-const wxString reference?
2020-12-14 12:06:39 +01:00
Vojtech Bubnik
57ba953b2e PresetUpdater - exceptions reformatted, not throwing an exception
on Linux when changing file attributes, as changing file attributes
may fail when writing onto FAT file system, which does not support
some of the common Unix file attributes.
2020-12-14 11:05:12 +01:00
YuSanka
0f11ff8525 Follow-up on fbf2978190: Refresh Cut gizmo immediately,
when state of "inches" checkbox is changed.
+ Fixed update of Z value, when Cut gizmo is in mm
2020-12-14 09:06:19 +01:00
David Kocik
2b3d9359d4 Typo in preferences string about single instace 2020-12-13 21:21:18 +01:00
Yuri D'Elia
44f71f0ed1 Include <atomic> for std::atomic where needed
Fixes build on linux using clang 11
2020-12-13 19:41:47 +01:00
Vojtech Bubnik
9fdf8c8b8d Fixed retrieving of the "saved in inches" flag from 3MF.
Fixed "import STL from Inches" - it should always scale up even if the
object is bigger than 3x3x3mm.
2020-12-12 18:54:34 +01:00
Vojtech Bubnik
d3bf130e66 Merge remote-tracking branch 'remotes/origin/lm_linux_locales' 2020-12-12 12:39:17 +01:00
Vojtech Bubnik
5605088aad Follow-up on aaaa85c1f8
Fix of #5007 - "Reload from disk" causes objects converted to inches to revert to mm
1) Storing and reloading the "source_in_inches" source flag from AMF and 3MF
2) When converting objects with mixed "inches" volumes, do the right thing
   and do not convert those that do not need conversion.
2020-12-12 12:06:15 +01:00
Vojtech Bubnik
b62a781417 Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2020-12-12 11:26:24 +01:00
Vojtech Bubnik
ccad84fb42 Follow-up on 3523bb421f
(Ongoing uploads while exiting dialog):
Fixed some string conversion issues.
2020-12-12 11:26:17 +01:00
Lukas Matena
0e6f9cdd0b Linux: when available locales do not match the desired language completely,
list the installed locales and try to find an alternative

This should fix issues such as #3368 and #2580
2020-12-12 09:21:51 +01:00
Lukas Matena
d267a9a105 Fixed a typo in a tooltip 2020-12-12 09:15:01 +01:00
Vojtech Bubnik
0884f4fbf5 Slight rewording of the keyboard shortcuts dialog. 2020-12-12 09:11:10 +01:00
Vojtech Bubnik
621610da75 Follow up on 569200eb99
Improved formatting of the vector of dimensions, improved wordings
of error messages and tooltips.
2020-12-12 08:34:43 +01:00
YuSanka
8bfb2a4eef Fix of #5315 - Height Slider heights are too squished
+ some code refactoring
2020-12-11 15:58:10 +01:00
David Kocik
25531d7c00 rename single instance setting in preferences 2020-12-11 15:34:09 +01:00
Vojtech Bubnik
7de0f46db4 Merge of Fix support doesn't ignore overhangs bridge anymore #5164 2020-12-11 15:14:16 +01:00
enricoturri1966
20c4b2c804 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2020-12-11 15:02:42 +01:00
enricoturri1966
5a7e4ff47c Faster toolpaths refresh when changing options selection in preview 2020-12-11 14:59:58 +01:00
YuSanka
aaaa85c1f8 Fix of #5007 - "Reload from disk" causes objects converted to inches to revert to mm 2020-12-11 13:57:58 +01:00
enricoturri1966
7832e8aee1 Enabled tech ENABLE_GCODE_VIEWER_STATISTICS 2020-12-11 12:38:14 +01:00
enricoturri1966
9dd83a3daa Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-12-11 12:36:44 +01:00
enricoturri1966
347a7d5b7e Disabled tech ENABLE_GCODE_VIEWER_STATISTICS 2020-12-11 12:36:26 +01:00
Vojtech Bubnik
2c8a92cacb Some shader compilers did not seemingly like #if XXX blocks
if XXX was not defined. Changed to #ifdef XXX.
2020-12-11 12:27:07 +01:00
Vojtech Bubnik
9f6bf5a835 Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2020-12-11 12:21:13 +01:00
Vojtech Bubnik
a2959ec944 Fix of re-slicing with multiple regions.
This is a fix of a bug, which was in Slic3r forever, where raw slices
were not cached, but recalculated from classified regions, where
merging the regions did not produce the original contour reliably.
Fixes [2.3.0-beta2] Odd bad slicing related to infill (?) percentage #5407
2020-12-11 12:21:07 +01:00
enricoturri1966
acf5e9a21f Enhancements in GCodeViewer Statistics imgui dialog 2020-12-11 11:58:08 +01:00
enricoturri1966
17c9358b0b Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2020-12-11 11:52:43 +01:00
David Kocik
43c424e82b export finished to hdd notification got fadeout after 20 sec 2020-12-11 08:40:40 +01:00
David Kocik
03028bb23e Improved exception throwing at copy file in preset updater 2020-12-10 19:39:47 +01:00
enricoturri1966
740ffc03b4 Removed unused variables in DoubleSlider::Control 2020-12-10 15:22:18 +01:00
enricoturri1966
f6b9cdecc3 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2020-12-10 15:10:59 +01:00
Vojtech Bubnik
cc7dbf8925 Fix of compilation on OSX 2020-12-10 14:45:23 +01:00
enricoturri1966
62dedba32d Reduced max size of index buffers to 32M indices 2020-12-10 14:36:38 +01:00
enricoturri1966
d631bf7c0c Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2020-12-10 14:36:17 +01:00
enricoturri1966
8dd98f6d66 Fixed size of GCodeViewer Statistics imgui dialog 2020-12-10 13:21:18 +01:00
Vojtech Bubnik
8d644fbcb6 1) Shader manager: Allow to override #defines programatically
when loading a shader file.
2) Conditional compilation of environmental mapping in gouraud.fs
   using 1)
2020-12-10 13:20:25 +01:00
enricoturri1966
98515e4fa1 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_splitted_vbuffer 2020-12-10 11:55:30 +01:00
enricoturri1966
bd3f8af610 Enabled tech ENABLE_GCODE_VIEWER_STATISTICS 2020-12-10 11:52:38 +01:00
David Kocik
8522c06812 cleanup 2020-12-10 11:02:46 +01:00
David Kocik
3523bb421f Ongoing uploads while exiting dialog
Ongoing uploads while exiting dialog

Ongoing uploads while exiting dialog
2020-12-10 11:02:46 +01:00