Commit Graph

8257 Commits

Author SHA1 Message Date
e947a29fc8 Follow-up to 7c01ddf996
1) Starting with this commit, configuration block exported into G-code
   is delimited by "; prusaslicer_config = begin" and "; prusaslicer_config = end".
   These delimiters look like any other key / value configuration pairs
   on purpose to be compatible with older PrusaSlicer config parsing from G-code.
2) Config parser from G-code newly searches for "; generated by ..."
   comment over the complete G-code, thus it is compatible with various
   post processing scripts extending the G-code at the start.
3) Config parser from G-code parses PrusaSlicer version from
   the "; generated by PrusaSlicer ...." header and if the G-code was
   generated by PrusaSlicer 2.4.0-alpha0 and newer, it expects that
   the G-code already contains the "; prusaslicer_config = begin / end"
   tags and it relies on these tags to extract configuration.
4) A new simple and robust parser was written for reading project configuration
   from 3MF / AMF, while a heuristic parser to read config from G-code located
   at the end of the G-code file was used before.
2021-08-12 15:27:46 +02:00
ac86c7c022 ObjectList: Update InfoItems after set some instance as a separate object 2021-08-12 15:23:31 +02:00
3ca2b2bc71 ObjectList: Added separate icons for InfoItems 2021-08-12 15:02:24 +02:00
2be10569e2 Add painting gizmos shortcuts into keyboard shortcuts dialog 2021-08-12 13:38:53 +02:00
c44715f9e0 Moved 'brim_offset' option into Advanced mode (same as EFC) 2021-08-12 13:38:53 +02:00
483684f702 Delete inline in some functions 2021-08-12 11:30:25 +02:00
66435887ea Revert of the 84c6199015
Note: When ProgressDialog has no-nullptr parent, then PrusaSlicer doesn't lose the focus at the end of model fixing,
but start to flickering during fixing of the big models.
2021-08-12 12:51:27 +02:00
37ba18a8c3 DoubleSlider: Init extruder sequence in respect to the extruders count 2021-08-12 12:40:14 +02:00
f3371a3b84 warning fix 2021-08-12 08:49:38 +02:00
23b1bc07a4 narrow mr. clippy logo 2021-08-12 08:46:59 +02:00
131d2ace50 Check min/max values for SpinCtrls in Settings Tabs
+ Set max value for "extruders_count" to 256
2021-08-12 10:20:52 +02:00
021688fe50 Fix place on bed and sinking instances:
all sinking objects were incorrectly shifted to bed when
'place on face' was applied to any object.
2021-08-12 10:17:59 +02:00
52718e96f5 Moved flatpak files from resources/data to src/platform/unix (#6774) 2021-08-12 08:49:24 +02:00
7f2ad140b6 Fix a crash recently introduced by b14faf6 (reported in #6794) 2021-08-11 22:03:26 +02:00
4df2c969a5 Hint notification
changes in hints.ini
Hint notification: Just one button in Help menu.
Hint notification: New naming - Tip of the day
Notifications: no scrolling.
Hint notification: fadeout colors.
2021-08-11 17:15:23 +02:00
fc1054c61d Restored info icon replaced by mistake 2021-08-11 16:17:28 +02:00
b14faf627b Do not show sinking contours when a gizmo hides some objects 2021-08-11 16:17:28 +02:00
83ab034f9a Fixed ENTER for ComboBoxes and TextCtrls in Settings Tabs (related to #6692)
+ Code cleaning : Deleted unused set_focus
2021-08-11 16:01:54 +02:00
3a2a9d8500 Follow up c0a00f4e70 - Check unsaved changes only if project wasn't saved 2021-08-11 15:40:57 +02:00
3605016696 Speed-up of clipping plane 2021-08-11 15:06:29 +02:00
9632e6fa6a New icons for mmu painting, fuzzy skin and object info items 2021-08-11 13:52:15 +02:00
7e0a2644e2 Fixup of previous commit 2021-08-11 13:38:28 +02:00
49ead341ba Follow-up of cf32b56 (postprocessing scripts):
- The optional output_name file might contain the .pp suffix.
- In case the file contains just filename, prepend it with the
  output dir. We don't want to save to current workdir.
2021-08-11 12:12:50 +02:00
7a60e8cb3a Follow-up to 215ee293ae:
More robust CLI parser.
2021-08-11 09:49:23 +02:00
d735dbe147 Updated Items Info notification
Showing only when new object is added (typically loading projects).
All info in 1 notification.
2021-08-11 09:24:14 +02:00
18cff61bd2 Reworked visualization of selected triangles by seed fill and bucket fill inside the multi-material painting gizmo. Now is drawn boundary around a selected area, and also all triangles inside the selected area are drawn with a darker color. 2021-08-10 21:38:48 +02:00
e5ce748b10 Added missing includes (GCC 11.1) 2021-08-10 21:37:10 +02:00
0e6d77d25a Hints notifications: OS specific tags 2021-08-10 15:25:47 +02:00
cf32b56454 Implemented extension of the G-code post-processor framework:
1) New environment variable SLIC3R_PP_HOST contains one of
   "File", "PrusaLink", "Repetier", "SL1Host", "OctoPrint", "FlashAir", "Duet", "AstroBox" ...
2) New environment variable SLIC3R_PP_OUTPUT_NAME contains the name
   of the G-code file including path (for SLIC3R_PP_HOST == "File")
   or a name of the file after upload to the host (PrusaLink, Octoprint ...)
3) The post-processing script may suggest a new output file name
   (likely based on SLIC3R_PP_OUTPUT_NAME) by saving it as a single line
   into a new "output name" temp file. The "output name" file name is
   created by suffixing the input G-code file name with ".output_name".

Please note that the G-code viewer visualizes G-code before post-processing.

Fixes Broken PostProcessing when script changes out-filename #6042
2021-08-10 15:22:01 +02:00
9e32a00efc Fix of incorrect volume scaling after fix by Netfabb,
see the comment in the code as to why it happened
2021-08-10 15:20:35 +02:00
ad60227449 MSW specific: Fixed a typo caused ignoring ENTER for TextControls in Settings Tabs
+ Added Info icon for MessageDialog
2021-08-10 15:10:37 +02:00
06d27bcb3c Hints notification
Hints notification: enabled / disabled tags 
Hints notification: suppress opening url due to preferences.
Hint notification: close after 5 minutes and button in Help menu
2021-08-10 14:48:23 +02:00
ed25d5c53d Fix for #6692 - Slice button not appearing after infill change 2021-08-10 12:32:00 +02:00
c0a00f4e70 Fix for - Profile save dialog should appear when application is closed and when don't save project is selected
Note: show UnsavedChangesDialog even if there is an object in the scene
2021-08-10 11:42:48 +02:00
a5ebd45d4d Renamed 'MMU segmentation; to 'Multimaterial painting' 2021-08-10 11:26:46 +02:00
1eebaa4576 Update info items in object list after repair by netfabb,
painted data are removed and the info line stays hanging
2021-08-10 11:22:19 +02:00
d88ef826cd Fixed Sinking not visible in right panel after project import 2021-08-10 10:36:36 +02:00
04d6b17c57 Fix of Some FDM supports fail to generate due to wrongly-translated enforcer polygons. #6739
Thanks @n8bot for finding the bug.
Also removed some dead code in MM segmentation.
2021-08-10 09:41:28 +02:00
9f9cbb46f9 Suppor of "No extrusion" firmware flavor by not emitting the E axis.
Fix of https://github.com/prusa3d/PrusaSlicer/issues/6023
The fix is partial: No extrusions are shown by the final G-code preview.
2021-08-09 17:37:35 +02:00
d6370a16fa DoubleSlider: Fix for #6756 - Cannot Color Change (M600) at height when MMU Painting
+ Fixed update for the ruler when "No sparce layer" option is enabled
2021-08-09 17:30:51 +02:00
b43f225ac8 Hint notification fixes and improvements
Hint notification bold (diff color) headline on multiple lines
Hint notification: Documentation link button.
Hints.ini header
hints logo - clippy 
disabled a preffered modes and techs for hints notifications
Empty hints array check. Fix of #6774.
2021-08-09 17:10:39 +02:00
4efce682e1 Fix for #6782 - Clicking On Another Modifier while Changing a Modifier Parameter crashes PrusaSlicer 2021-08-09 13:38:48 +02:00
1f131d130f DoubleSlider with MM-printer preset: When Object has "Paint-on segmentation", DoubleSlider has same behavior as with modifiers
+ MSW specific: Use BitmapComboBox instead of wxBitmapComboBox to DarkMode for extruder selectors
2021-08-09 13:38:48 +02:00
ef30cc8690 Fixup of previous commit: there are two more painting gizmos 2021-08-09 11:49:48 +02:00
13604469fd Painting gizmos and sinking objects:
1. Do not show what's below the bed when a gizmo is open
2. Triangulate the cut so people don't see inside
3. If regular clipping plane is used, the cuts are mutually clipped by one another
4. Painting itself ignores the hidden part of the object
2021-08-09 10:47:51 +02:00
b174dacc85 Added a missing include (GCC 11.1) 2021-08-07 08:29:32 +02:00
0ccc791750 Merge branch 'fs_QuadricEdgeCollapse' 2021-08-06 18:23:49 +02:00
dd55b55853 Swapped the position of seed fill and bucket fill inside the multi-material gizmo. Changed the default value for the seed fill angle. 2021-08-06 16:46:48 +02:00
56d4ba7a29 Fixed the issue when the object was selected by seed fill or bucket fill could stay selected when the painting tool was switched to brush. 2021-08-06 16:46:48 +02:00
666cdeecd9 Forced recomputation of seed fill selected areas when the seed fill angle is changed by ALT+mouse wheel. 2021-08-06 16:46:48 +02:00