Commit Graph

10033 Commits

Author SHA1 Message Date
63bc64d8cf Follow-up 6d2efe29a4 - Call wxInitAllImageHandlers() before any UI actions to avoid "No image handler..." warnings.
+ Deleted unnecessary app_config->save() call
2021-12-14 14:56:38 +01:00
370b220643 Localization: Updated dictionaries for CS, DE, ES, FR, IT, NL, PL
+ GUI_App.cpp: Set language, color mode and initialization of image handlers before a call of check_older_app_config()
2021-12-14 14:13:44 +01:00
c241a7b92c #7461 - Use three floats for defining vertex normal to render travel toolpaths. This fixes a crash on NVIDIA Quadro graphics cards when turning on travel moves visibility in preview. 2021-12-14 13:53:37 +01:00
0a375fcab2 Follow-up e2475c95 - Disable check of the compatibility of the "support_material" and "overhangs" options for profile which was loaded from 3mf 2021-12-14 11:49:53 +01:00
987f229153 Check "support_material" and "overhangs" relations only on global settings level.
Note: It can be changed in the future, when infrastructure for saving of this relation per configuration will be implemented
2021-12-14 10:49:47 +01:00
9a3150b628 Fix for crash from #7486 - PrusaSlicer crashes when doing this commands 2021-12-13 16:19:58 +01:00
49b480ded4 Double ampersand in text 2021-12-13 13:39:24 +01:00
90ba5da99a Fixed objects bigger than print volume set as sinking after calling 'Scale to print volume' command - SPE-1155 2021-12-13 11:32:59 +01:00
f5a9e90734 Always use batched models to render options in preview 2021-12-13 09:50:13 +01:00
83f79111c1 Fix for #7481 - Found typo in BitmapComboBox.cpp L257: _MSW_DAEK_MODE 2021-12-13 09:27:35 +01:00
d4651bdc50 Fixed minor typo in wording. 2021-12-12 14:44:12 +01:00
7e60564533 Fix of Bed shape inverted origin position #7474
The bug was introduced with cc44089 due to out of print bed detection refactoring.
2021-12-12 08:38:56 +01:00
df873b35ff Added asserts to check for empty calls to glMultiDrawElements().
Some OpenGL drivers crash on empty glMultiDrawElements, see GH #7415.
2021-12-12 07:35:13 +01:00
f4f454b657 Fix of PS 2.4.0 Beta 4: No image handler for type 15 defined. #7469
On Linux, image handlers need to be initialized before showing
any PNG.
2021-12-11 16:59:21 +01:00
4da956f9e4 Fixed typo in GLGizmoPainterBase::get_projected_mouse_positions() after 7bb38840e1. 2021-12-10 22:37:53 +01:00
27cb9fd59c Localization: Next improvements: CS, IT, ES, DE, ES, FR 2021-12-10 17:28:36 +01:00
ece20180b9 Code refactoring for ObjectList::get_selection_indexes().
Assert is changed to check if selection isn't empty.
Elsewhere processing of the empty selection can causes a crash.
2021-12-10 17:10:09 +01:00
b46e70710c Follow-up ea796aaa68
* Fixed builds for non-MSW platforms (We can't change the signature of the RichMessageDialog. It have to be completely the same as for wxRichMessageDialog)
* Texts of the message dialog are changed. Use InfoDialog instead of a RichMessageDialog.
* MsgDialog: Added SetButtonLabel() function
* InfoDialog: For constructor added is_marked_message and style parameter to allow to use marked text in the Dialog and set different style
2021-12-10 15:35:04 +01:00
37b19e76dd Follow-up of 450e430ca1b5169ab59d39a62cc84c4db3b0a8fa - Fixed wrong if() conditions into Plater::priv::reload_from_disk() 2021-12-10 14:36:28 +01:00
cb74c1271d #7429 - Fixes in reload from disk command 2021-12-10 14:36:28 +01:00
ead36858b7 Trying to fix #7176:
Incorrect vertical size of a wxBitmapComboBox selecting presets
at the Persets page due to likely incorrect setting of a "rubbery"
scale factor of one of the box sizers.
2021-12-10 09:38:57 +01:00
3f98f505c4 Windows specific: Fixes layout issues on plater, short BitmapComboBoxes
with some Windows scaling, see GH issue #7414.
The issue was most likely due to the initial main frame size
generated by Windows based on some unknown rule based on font scaling
and possibly display size and something else. If the initial window height
is short, then the last controls in a "rubbery" sizer are trimmed
and wxBitmapComboBoxes then remember the initial widget size indefinietly.
2021-12-10 09:34:28 +01:00
1c19ba4cc8 Changed message about copying another configuration folder.
Added headline to RitchTextDialog.
2021-12-09 18:46:36 +01:00
bdbf7b3295 RichMessageDialog on non-MSW platforms: Set escape ID to wxID_CANCEL
+ Fixed behavior of the "Open hyperlink" dialog when "cross"(close window button) is clicked.
2021-12-09 16:00:12 +01:00
1695bc147d Follow-up b3074ad2cc
Change random values of the S and V in HSV colors.
To avoid generation of the extremely light or dark colors we use now generated values from the range [0.65; 0.1]
2021-12-09 14:16:47 +01:00
32c2f5b4ac wider SLA material type in conf wizard 2021-12-09 11:43:49 +01:00
5aefc9ef96 Fix for #7146 - Reset settings for spiral vase mode is inconsistent 2021-12-08 16:36:50 +01:00
c4816feb10 Fixed behaviour of float sliders in SLA gizmos,
which was broken after the 'Edit' button was added.
This is a bit hacky fix, it might be worth improving later.
2021-12-08 16:19:08 +01:00
daa5f1f806 Added a missing include (GCC11.1 without PCH). 2021-12-08 13:19:27 +01:00
5aff03a30b Changed OpenGL buffer type to GL_ELEMENT_ARRAY_BUFFER for vertex array indices in GLPaintContour. The previous type GL_ARRAY_BUFFER was used by mistake. 2021-12-08 11:23:35 +01:00
79d348a059 Fixed incorrect case in include 2021-12-08 11:19:25 +01:00
390c04eb1c Fix of the position of "PrusaSlicer: Open hyperlink" Dialog
More info https://github.com/prusa3d/PrusaSlicer/issues/7419#issuecomment-988231014
2021-12-08 10:40:47 +01:00
b657ef8ce1 Fixed #7446 - Removed 'support' label makes the terms in the support selector confusing. 2021-12-07 16:25:22 +01:00
9472b1f2e0 Fix for InfoDialog, when Info about in-recognized loaded config values is shown.
Text in this dialog wasn't marked correctly.
2021-12-07 15:19:04 +01:00
849fbc3a5e Fix for endless loop dialog - see https://github.com/prusa3d/PrusaSlicer/issues/7419#issuecomment-986325432
When part's configuration is updated =>
Don't call config_manipulation.update_print_fff_config() separately for applied object's config and then applied own config.
Configuration have to be applied from object config and its config. And than call config_manipulation.update_print_fff_config().

+ Redundant call of the update_config_values() is deleted from DeleteButton event. All checks are made during update_settings_list().
2021-12-07 14:40:52 +01:00
f587beb00e Follow-up d8ecc191da - Remove from code a condition which has opposite effect effect now.
+ OptionsGroup::activate_line():Add same as at OG_CustomCtrl::CtrlLine::render() condition for the drawing of a option label.
It means that we draw option labels only, if line has more than one option.
2021-12-07 10:55:27 +01:00
1a2f51630b Added a check that first layer height is not expressed as a percentage (related to https://github.com/prusa3d/PrusaSlicer/issues/7418)
first_layer_height cannot be changed to ConfigOptionFloat, that would break loading of old 3MFs.
The relative values from 3MFs should already be converted to absolute in `Preset::normalize`, what is missing is the UI check.

+ Code refactoring for OptionsGroup::create_single_option_line():
Don't clear label value in an Option. This value is used in Field::get_value_by_opt_type() to show error "%s doesn't support percentage".
=> At functions OG_CustomCtrl::CtrlLine::render() and OG_CustomCtrl::CtrlLine::get_pos() added check if current line has more than one option.
=> Draw option's label only when line has several options.
2021-12-07 09:20:36 +01:00
c2d22bd130 Followup on 6490456ec4
Rename variable
2021-12-06 17:24:54 +01:00
468f63e63e Do not perform config check if conf folder is redefined 2021-12-06 17:15:22 +01:00
5f1c8c37a3 Follow-up of 2ed57d1ba5 - Removed unneeded sort 2021-12-06 14:25:17 +01:00
484cad81ad Further optimization of G-code viewer: Replaced std::set<RenderPaths>
with std::vector.
2021-12-06 13:21:34 +01:00
f007565e3f Optimization of G-code rendering, may improve speed issues mentioned in #7415 2021-12-06 11:52:27 +01:00
379d07adef Caching of shader program attribute and uniform IDs from strings. 2021-12-06 11:52:27 +01:00
9165c2482d Allow a "Dark mode" in Preferences for G-code viewer 2021-12-06 11:44:29 +01:00
0fbc5dd73b Fix for #7419 - Non-modal settings window loses focus after accepting dialog (MSW specific issue)
MessageDialog is used instead of wxMessageDialog on MSW for supporting of the Light/Dark color mode.
But a constructor of the MsgDialog replaces a parent which is equal to nullptr with the MainFrame .
That is why non-modal dialog with Preset Settings loses a focus after close of the MessageDialog.

"m_msg_dlg_parent" is added to ConfigManipulation class. ConfigManipulation's instance owed by Tab will use the Tab as a parent for MessageDialogs.
=> The MessageDialog with information about configuration incompatibility will always appear over related SettingsTab
and a non-modal dialog with Preset Settings will not lose the focus.
2021-12-06 11:44:29 +01:00
58c8bcbfad #7415 - GCodeViewer::refresh_render_paths() - Remove empty render paths to avoid calling glMultiDrawElements() with empty data while rendering toolpaths. 2021-12-06 11:39:10 +01:00
5180a237e1 Fix of GCodeViewer crashes when opening app preferences #7430 2021-12-06 08:23:19 +01:00
1c7fb34e56 Follow-up to 3622f06bed
Work around 3D scene focus after de-activation of the main
window without having to resort to CallAfter(), which breaks
on Linux with some window managers that follow mouser cursor.
Fixes #5620 #6870 #6992

3622f06bed was not a correct solution,
it broke focus for non-modal windows.
Fixes #7419

The actual issue seems to be caused by wxProgressDialog not playing
well with modal dialogs closed just before wxProgressDialog opens.
If wxProgressDialog parent was not a main frame, keyboard focus
was not restored correctly after the wxProgressDialog closed.
2021-12-05 09:09:34 +01:00
864583f84c Fix of Upload and simulate wrong label (Issue #7424) 2021-12-05 08:45:31 +01:00
e523e6f6a2 Fix for #7408 - Crash after closing error for deleting box shape with cylinder negative volume 2021-12-04 10:05:14 +01:00