Commit Graph

10101 Commits

Author SHA1 Message Date
enricoturri1966
5586fd92f2 Follow-up of d0d89a4d5b - Fixed warnings 2022-03-14 09:50:25 +01:00
enricoturri1966
d0d89a4d5b Tech ENABLE_GL_IMGUI_SHADERS - Render imgui using shaders 2022-03-14 09:04:44 +01:00
enricoturri1966
ac0ec5fa43 Tech ENABLE_NEW_CAMERA_MOVEMENTS_CTRL_ROTATE renamed as ENABLE_NEW_CAMERA_MOVEMENTS
Tech ENABLE_NEW_CAMERA_MOVEMENTS_MIDMOUSE_ROTATE merged into ENABLE_NEW_CAMERA_MOVEMENTS

Tech ENABLE_NEW_CAMERA_MOVEMENTS_SHIFT_SELECTION renamed as ENABLE_NEW_RECTANGLE_SELECTION
2022-03-11 12:36:09 +01:00
enricoturri1966
2342002151 Tech ENABLE_NEW_CAMERA_MOVEMENTS_CTRL_ROTATE - Fixed volumes moving after releasing CTRL key
Tech ENABLE_NEW_CAMERA_MOVEMENTS_SHIFT_SELECTION - Selection rectangle not started while hovering on a volume
2022-03-11 11:28:08 +01:00
enricoturri1966
4a5ad304ad Fixed conflicts after merge with master 2022-03-11 09:35:02 +01:00
enricoturri1966
3dddfa919a Debug tech ENABLE_GLMODEL_STATISTICS - Shows an imgui dialog with GLModel statistics data 2022-03-10 15:55:15 +01:00
enricoturri1966
9d2314557d Tech ENABLE_GL_SHADERS_ATTRIBUTES - Removed remaining pairs glPushMatrix()/glPopMatrix() 2022-03-10 13:40:37 +01:00
enricoturri1966
27861fa0bd Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2022-03-10 12:48:40 +01:00
enricoturri1966
f0a4fd1123 Fixed GLVolumes color when tech ENABLE_LEGACY_OPENGL_REMOVAL is disabled 2022-03-10 12:48:31 +01:00
Lukas Matena
68ca42abbf Merge branch 'stable' 2022-03-10 12:29:17 +01:00
enricoturri1966
a9465ddedc A few small refactorings 2022-03-10 11:27:05 +01:00
enricoturri1966
57ffa4d9ee Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-09 12:06:09 +01:00
enricoturri1966
f8ce187262 Tech ENABLE_LEGACY_OPENGL_REMOVAL - Refactoring of GLModel to automatically detect the data type to use into the index buffer in dependence of vertices count 2022-03-09 11:51:02 +01:00
enricoturri1966
46283cfde3 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES renamed as ENABLE_GL_SHADERS_ATTRIBUTES 2022-03-09 08:22:07 +01:00
enricoturri1966
5ffe010a9d Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL merged into ENABLE_LEGACY_OPENGL_REMOVAL 2022-03-08 14:50:32 +01:00
enricoturri1966
05efb88e3f Tech ENABLE_GLBEGIN_GLEND_REMOVAL renamed as ENABLE_LEGACY_OPENGL_REMOVAL 2022-03-08 14:08:11 +01:00
enricoturri1966
80717bbdec Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Some code cleanup 2022-03-08 13:27:51 +01:00
enricoturri1966
65b5af9561 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: variable_layer_height
2022-03-08 12:48:21 +01:00
enricoturri1966
dbdc272c4e Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: mm_gouraud
2022-03-08 11:17:34 +01:00
enricoturri1966
66fa2b1e26 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: mm_contour
2022-03-08 10:57:43 +01:00
enricoturri1966
c17c4d2e9a Follow-up of 005fef7bf6 - Fixed imgui dialogs associated to gizmo bar and toolbar items 2022-03-08 09:24:42 +01:00
Lukas Matena
62cc48188d Fix background color in InfoDialog on older macOSes (#3775, #7603) 2022-03-07 16:43:21 +01:00
enricoturri1966
9fb350e3dd Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud
2022-03-07 15:31:23 +01:00
enricoturri1966
f4726f738c Follow-up of 005fef7bf6 - Fixed highlight arrows for gizmos bar and toolbars 2022-03-07 15:06:45 +01:00
enricoturri1966
568f42660a Follow-up of 005fef7bf6 - Fixed Toolbars 2022-03-07 12:02:19 +01:00
Lukáš Hejl
6c51e5148c Fix of #7994 (Travel very close to the inner holes, could cross external perimeter when the avoid crossing perimeters was enabled.) 2022-03-07 10:48:17 +01:00
enricoturri1966
005fef7bf6 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat_texture
2022-03-07 09:45:29 +01:00
enricoturri1966
545056bf7c Fixed warnings 2022-03-04 14:17:55 +01:00
enricoturri1966
93610ebb02 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: printbed
2022-03-04 14:10:41 +01:00
enricoturri1966
4323b602f5 Code cleanup 2022-03-04 13:57:11 +01:00
enricoturri1966
44a00be329 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: toolpaths_cog
2022-03-04 13:50:31 +01:00
enricoturri1966
b84b6af32a Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: background
2022-03-04 13:30:21 +01:00
enricoturri1966
191222c3a8 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Travel moves in gcode preview
2022-03-04 13:14:03 +01:00
enricoturri1966
cdf3cb83b6 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light_instanced_attr - Instanced options in gcode preview
2022-03-04 12:46:01 +01:00
enricoturri1966
bca966039e Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Toolpaths and batched options in gcode preview
2022-03-04 12:07:08 +01:00
enricoturri1966
c344a633ee Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-04 10:52:45 +01:00
enricoturri1966
d6b0a9858b Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Selection sidebar hints
2022-03-04 10:52:30 +01:00
YuSanka
3505e5a290 Fix of leaking GDI resources on Win7 #8002:
- Code refactoring for draw_focus_rect.
- Use one PaintDC for rendering
- DoubleSlider::Control::Ruler refactoring
- Suppress to update ruler for horizontal slider
2022-03-04 09:27:29 +01:00
enricoturri1966
f7d06f4ec8 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Simplify
2022-03-04 09:16:17 +01:00
enricoturri1966
d71ad7177e Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Rotate grabber extensions
2022-03-04 09:08:15 +01:00
enricoturri1966
7df713d471 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-04 09:08:02 +01:00
enricoturri1966
ead51d69b7 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Move grabber extensions
2022-03-04 09:01:10 +01:00
enricoturri1966
31013fb6df Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Refactoring of flat vertex shader
2022-03-04 08:54:23 +01:00
Lukáš Hejl
4967b940b8 Fixed a compiler warning. 2022-03-03 14:56:18 +01:00
enricoturri1966
f9cabee382 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo SLA Supports
2022-03-03 14:28:43 +01:00
enricoturri1966
919730e969 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Hollow
2022-03-03 14:01:34 +01:00
enricoturri1966
bceeb67c53 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-03 13:31:01 +01:00
enricoturri1966
2d72931fac Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Scale hovered grabbers
2022-03-03 13:30:22 +01:00
enricoturri1966
dccc8aea17 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Move hovered grabber
2022-03-03 13:17:19 +01:00
enricoturri1966
661ecdc142 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Gizmo Cut
2022-03-03 13:10:47 +01:00
enricoturri1966
14c23a6526 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - GLGizmoBase grabbers
2022-03-03 13:04:00 +01:00
enricoturri1966
14f4345389 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Thumbnails render
2022-03-03 12:36:44 +01:00
Lukas Matena
a3b9d1d82f Added a comment explaining activate_gizmo return value 2022-03-03 11:47:16 +01:00
Lukas Matena
34a0f6d970 Bumped up version to 2.4.1-rc1 2022-03-03 11:16:57 +01:00
enricoturri1966
3003db411f Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - GCodeViewer shells
2022-03-03 09:56:13 +01:00
enricoturri1966
8d43a854c6 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Sequential view marker
2022-03-03 09:46:04 +01:00
enricoturri1966
a3753c9d9c Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Bed model
2022-03-03 09:29:54 +01:00
enricoturri1966
8315f43ed0 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: gouraud_light - Bed axes
2022-03-03 09:21:52 +01:00
enricoturri1966
abb5f5f99a Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - GLGizmoPainterBase::m_circle
2022-03-03 08:40:12 +01:00
enricoturri1966
a6e84aec20 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo SLA Supports points
2022-03-02 15:10:34 +01:00
enricoturri1966
3165a4d0d5 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-02 14:32:30 +01:00
enricoturri1966
5621f00ee6 Some refactoring into GLGizmoSlaSupports::render_points() 2022-03-02 14:31:24 +01:00
enricoturri1966
bf57d022d4 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-02 13:28:42 +01:00
enricoturri1966
4990558dee Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Fixed a few bugs when the tech is disabled 2022-03-02 13:28:20 +01:00
enricoturri1966
b4f9d91b73 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - debug tech PRUSASLICER_TRIANGLE_SELECTOR_DEBUG
2022-03-02 13:07:36 +01:00
enricoturri1966
5cf6219f3e Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - GLGizmoPainterBase::s_sphere
2022-03-02 12:21:59 +01:00
enricoturri1966
a07e02f5ab Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-02 12:11:33 +01:00
enricoturri1966
5193a15852 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Use 2D vertices to render GLGizmoPainterBase circle 2022-03-02 12:10:02 +01:00
enricoturri1966
93afbd551b Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo Hollow picking
2022-03-02 11:56:09 +01:00
enricoturri1966
278ec6fe93 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Layers editing
2022-03-02 10:12:44 +01:00
enricoturri1966
1959522c46 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-02 08:32:13 +01:00
enricoturri1966
5f9aeb1e38 Removed unneeded pairs glPushMatrix()/glPopMatrix() 2022-03-02 08:30:00 +01:00
enricoturri1966
0d001ce84f Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Rectangle selection
2022-03-01 15:39:00 +01:00
enricoturri1966
cc1d3b738d Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Selection
2022-03-01 13:03:49 +01:00
enricoturri1966
f4cf9494d0 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Some refactoring 2022-03-01 12:00:29 +01:00
enricoturri1966
282b3d2d6b Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - MeshClipper
2022-03-01 11:13:44 +01:00
enricoturri1966
a5ef78b8fd Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo Scale
2022-03-01 11:01:12 +01:00
enricoturri1966
76f3829ecb Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo Rotate
2022-03-01 10:48:38 +01:00
enricoturri1966
0376571a93 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo Move grabber extension
2022-03-01 10:10:04 +01:00
enricoturri1966
bc3341160b Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_opengl_3 2022-03-01 09:56:10 +01:00
enricoturri1966
3b53ba7865 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo Move
2022-03-01 09:56:00 +01:00
enricoturri1966
5377e4c43b Removed empty DoubleSliderUtils.hpp 2022-02-28 15:53:12 +01:00
enricoturri1966
d766627099 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo Place on face
2022-02-28 15:11:14 +01:00
enricoturri1966
7c9ac342de Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Gizmo Cut
2022-02-28 14:55:08 +01:00
enricoturri1966
8c8f0b32a7 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Picking for base gizmo grabbers and gizmo rotate grabber extensions
2022-02-28 14:33:49 +01:00
enricoturri1966
78a93acb5b Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - SLA caps
2022-02-28 12:50:43 +01:00
enricoturri1966
d0511b332b Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Camera target
2022-02-28 12:39:00 +01:00
enricoturri1966
5b1c9a34d6 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Volumes picking pass
2022-02-28 12:05:08 +01:00
enricoturri1966
507dda6641 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Model sequential print clearance
2022-02-28 11:23:46 +01:00
enricoturri1966
b766902fe2 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Model non-manifold edges
2022-02-28 11:14:07 +01:00
enricoturri1966
df7be964e0 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: flat - Model sinking contour
2022-02-28 11:10:03 +01:00
enricoturri1966
a5ff37013b Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders. 1st installment.
Shader: flat - Default bed
2022-02-28 10:41:01 +01:00
enricoturri1966
2379588196 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Fix in GLGizmoRotate::render_angle_arc():
Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Fix in GLModel::render()
2022-02-28 10:21:03 +01:00
enricoturri1966
b4c11dfc83 SPE-1202 - Fixed project name after loading a 3mf file whose path contains diacritics by double clicking (might be a fix of #7681, #7173 and #7845) 2022-02-25 14:11:06 +01:00
Vojtech Bubnik
97fb6d22dd Follow-up to 8aefe3fc90
Suppress the G-code find / replace substitutions for the non-G-code
    sections (comment blocks) at the start and at the end of the G-code file.
This commit extends the suppressed blocks for G-code find / replace
to placeholders for initial / final M73 commands and over the trailing
G-code comments.
Fixes gcode substitution: replacing comments removes initial and final M73 commands
2022-02-25 12:20:33 +01:00
enricoturri1966
1e9951dec5 Follow-up of 5b5fdfba01 - Removed member variable Selection::m_dragging
It was used only in ObjectManipulation::update_if_dirty() to avoid the update the sidebar reset and mirror button, which results in a slow down of the GUI, while dragging objects/gizmos in the 3D scene

A call to GLCanvas3D::is_dragging() is used instead
2022-02-25 11:42:42 +01:00
enricoturri1966
5b5fdfba01 Follow-up of 3cd15ac005 - Fixed update of dragging state of selection 2022-02-24 14:49:53 +01:00
enricoturri1966
2aa79ec483 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_new_camera_movements 2022-02-24 13:24:28 +01:00
enricoturri1966
cd32254190 Fixed conflicts after merge with master 2022-02-24 13:17:30 +01:00
Lukas Matena
e058f794d9 Merge branch 'stable' 2022-02-24 13:05:05 +01:00
Filip Sykala
3cd15ac005 Merge branch 'master' into fs_mouse 2022-02-23 16:25:44 +01:00
enricoturri1966
b155d1a2c3 Follow-up of 1eac357739 - Fixed color of volumes after creation 2022-02-23 15:40:25 +01:00
enricoturri1966
b4516396fe SPE-1202 - Fixed project name after loading a 3mf file whose path contains diacritics by double clicking 2022-02-23 14:56:16 +01:00
Filip Sykala
0d48cf5ab9 Merge branch 'master' into fs_mouse 2022-02-23 14:43:42 +01:00
enricoturri1966
c78ee8f936 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2022-02-23 14:27:19 +01:00
enricoturri1966
148ed7fee4 Follow-up of 1eac357739 - Fixed warning 2022-02-23 14:27:10 +01:00
Lukas Matena
0a280be8d0 Placeholder parser fixes 2022-02-23 13:44:26 +01:00
enricoturri1966
3bdc6e49c1 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2022-02-23 13:39:59 +01:00
enricoturri1966
1eac357739 Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Replace GLIndexedVertexArray with GLModel: GLVolume geometry + removed class GLIndexedVertexArray from codebase 2022-02-23 13:39:54 +01:00
Lukas Matena
d3e7a9613e Fix of cut gizmo: contour placed incorrectly with elevated objects 2022-02-23 11:01:02 +01:00
Lukáš Hejl
33fe1c44b4 Fixed 'illegal qualified name in member declaration' reported in #7959. 2022-02-22 17:34:09 +01:00
tamasmeszaros
4ed411f211 Fix tbb assert when grainsize is lower then 1 2022-02-22 12:43:06 +01:00
Lukáš Hejl
dbc3cfc004 Fixed an issue that, in some cases, an inner brim was not generated. 2022-02-22 12:39:10 +01:00
tamasmeszaros
cc788ebb64 Fix and merge PR #7809 2022-02-22 11:36:27 +01:00
Yuri D'Elia
0ffcfd8393 Use namespaces to link against libcereal >= 1.3.1
Create an alias for previous versions.
2022-02-22 11:20:03 +01:00
Yuri D'Elia
3a821d6752 Add missing declaration/includes (fix non-PCH build) 2022-02-21 11:15:31 +01:00
Yuri D'Elia
fe14c547fe Show GLEW error string on glewInit() initialization errors 2022-02-21 11:15:19 +01:00
Vojtech Bubnik
8aefe3fc90 Fix of gcode_substitutions will cause errors in prusaslicer_config dump at the end of gcode #7952
Suppress the G-code find / replace substitutions for the non-G-code
sections (comment blocks) at the start and at the end of the G-code file.
2022-02-21 11:04:43 +01:00
Vojtech Bubnik
6937b34fdc get_wraped_wxString(): Wrapping on '\' on Windows.
Deleting all G-code substitutions: Added a Cancel button.
2022-02-21 09:59:51 +01:00
Lukáš Hejl
945bebd224 Follow-up to e20d041fc9: Fixed a wrong calculation of indices when object instances were used.
Also, it was fixed polygon intersection detection, which was not working when a polygon intersected another polygon by only one edge.
2022-02-18 16:45:50 +01:00
tamasmeszaros
f3384c835f Merge branch 'tm_sla_archive_tests' 2022-02-18 14:55:06 +01:00
tamasmeszaros
b407540f26 Downgrade log message from sla support tree creation 2022-02-17 13:44:53 +01:00
tamasmeszaros
66f60de556 SLAArchive framework refactor 2022-02-17 12:50:40 +01:00
enricoturri1966
6c397e291c Removed debug code committed by mistake 2022-02-16 10:18:47 +01:00
enricoturri1966
3633112148 Follow-up of 7150e0adda - Fix in clamping max bounding box to avoid z-fighting in gcode preview 2022-02-16 10:17:57 +01:00
Lukáš Hejl
5d72f18dc6 Follow-up to a4ecf2f2a6. Refactoring of the function for removing duplicate points. 2022-02-16 09:20:45 +01:00
Lukáš Hejl
eef741b095 Fixed a copy-paste typo that could lead to duplicate edges in MMU_Graph in the multi-material segmentation. 2022-02-16 09:20:41 +01:00
Vojtech Bubnik
3e9e3fd102 Follow-up to 58d64bae77
Disabled check for "G92 E0" in layer change G-code for other firmware types
than Marlin 2 and Marlin Legacy. We don't know whether other firmware
flavors are sensitive to E axis accumulation error and we know that
RepRapFirmware is not.

Fixes #7846
2022-02-14 15:11:19 +01:00
tamasmeszaros
b6fe41d5ab Fixes for pwmx format PR 2022-02-14 14:42:47 +01:00
enricoturri1966
5fcb618f96 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Fixed bug in rendering gizmo rotate 2022-02-14 14:23:07 +01:00
Vojtech Bubnik
a062a889d8 Follow-up to a1746e3e66
Fix for #7849 - "Save Project" command doesn't work properly
2022-02-14 14:13:48 +01:00
enricoturri1966
14b7d36070 #7906 - Port of 296041da38 'Fixed 'Export as .stl' scaling not applied on scaled object instances' 2022-02-14 13:58:43 +01:00
Lukáš Hejl
5e78203241 Added missing includes (GCC11.1 without PCH). 2022-02-14 10:47:39 +01:00
Vojtech Bubnik
0508754033 SLA SVG export: Using string_view literals to avoid unnecessary
std::string allocations and faster string additions
(length of a string_view literal is known without having to
iterate to the trailing NULL).
2022-02-14 09:54:05 +01:00
rtyr
732bc61092
Merge pull request #7917 from ole00/sla_pwmx_export_rebase01
Added support for Anycubic Photon Mono X SLA printer and its native export format.
2022-02-14 08:59:52 +01:00
Lukáš Hejl
69019ae4bb Added a missing include (GCC11.1 without PCH). 2022-02-14 08:20:57 +01:00
ole00
7685e70743 SLA: added pwmx format exporter
Pwmx format is used by Anycubic Photon Mono X printers.
File format structure and rle encoding implemented according to:
https://github.com/sn4k3/UVtools
https://github.com/ole00/pwmx_info
2022-02-12 12:55:22 +00:00
enricoturri1966
0835e117d5 Refactoring in GLCanvas3D::LayersEditing::render_volumes() 2022-02-11 12:06:48 +01:00
enricoturri1966
5089d1460d Removed obsolete member variable GLCanvas3D::m_color_by 2022-02-11 11:47:29 +01:00
enricoturri1966
0c74081f7d Follow-up of afcac6e2ea - Fixed GLGizmoSlaSupports::render_points() 2022-02-11 11:29:00 +01:00
Filip Sykala
ff713c23ac Remove warning
Remove unused right_up event call
2022-02-11 10:12:57 +01:00
enricoturri1966
c9ff260d13 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - SLA caps rendered using GLModel 2022-02-11 09:15:56 +01:00
enricoturri1966
aa4714a239 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Removed OpenGL legacy calls from GLCanvas3D::init() 2022-02-10 15:17:24 +01:00
enricoturri1966
a28dea0617 Follow-up of 6b041429f6 - Fixed uvmapping of printbed texture 2022-02-10 15:11:22 +01:00
Filip Sykala
1fa3a236a5 Fix hollowing mouse click 2022-02-10 14:58:41 +01:00
enricoturri1966
fa1ff1c357 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Another refactoring to simplify client code of GLModel::Geometry 2022-02-10 14:39:02 +01:00
Filip Sykala
46044a210f Fix SLA supports partialy 2022-02-10 14:06:49 +01:00
enricoturri1966
cca1454c38 Tech ENABLE_VOLUMETRIC_RATE_TOOLPATHS_RECALC - Recalculate toolpaths when switching to/from volumetric rate visualization 2022-02-10 12:06:12 +01:00
enricoturri1966
1d0af50a94 GCodeProcessor - Added processing of gcode line M220 2022-02-10 10:41:38 +01:00
Filip Sykala
74cf6649f3 Merge branch 'master' into fs_mouse 2022-02-10 10:26:04 +01:00
Filip Sykala
576a63cd20 Fix for cut gizmo during move of object 2022-02-10 08:50:38 +01:00
enricoturri1966
be6922795d Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Replace GLIndexedVertexArray with GLModel: MeshClipper::m_vertex_array 2022-02-10 08:24:36 +01:00
Vojtech Bubnik
443a42c6d8 Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2022-02-09 15:31:00 +01:00
Vojtech Bubnik
5ed364910b Follow-up to 199dc121a5
Quantization of G-code export to achieve more precise extrusion
    width control.
Fix of wiping.
2022-02-09 15:30:11 +01:00
Filip Sykala
5f51811a3c Fix dragging out of window 2022-02-09 15:16:17 +01:00
enricoturri1966
df3d670357 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Removed Slic3r::GUI::GLPaintContour from GLGizmoPainterBase.hpp/.cpp and replaced with GLModel 2022-02-09 15:11:56 +01:00
enricoturri1966
8916a00821 Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Replace GLIndexedVertexArray with GLModel:
TriangleSelectorGUI::m_iva_enforcers

TriangleSelectorGUI::m_iva_blockers

TriangleSelectorGUI::m_iva_seed_fills

TriangleSelectorGUI::m_varrays

GLGizmoPainterBase::s_sphere
2022-02-09 13:13:10 +01:00
enricoturri1966
4d2d77e99c Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Adapt GLModel::Geometry index format in dependence of data size, where possible 2022-02-09 10:05:49 +01:00
enricoturri1966
be6b6590be Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Refactoring to simplify client code of GLModel::Geometry 2022-02-09 09:15:20 +01:00
enricoturri1966
ffa3a1d8fc Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Replace GLIndexedVertexArray with GLModel - GLGizmoFlatten::PlaneData::vbo 2022-02-09 09:08:37 +01:00
YuSanka
d0b694daff Linux specific: Fixed a bug focusing of the some settings tabs
Steps to repro of a bug:
1. FFF/SLA printer is selected
2. Load 3mf projet with SLA/FFF printer
3. Chnage printer to the FFF/SLA
=> (Print a Filanemt Settings)/(Print a Materials Settings) are disabled

Notes: This issue appeared after https://github.com/prusa3d/PrusaSlicer/commit/bfce4f6, when find_toplevel_parent(plater) instead of plater was set as a parent for ProgressDialogs
2022-02-08 17:19:30 +01:00
enricoturri1966
a74bea5a2d Follow-up of 6b041429f6 - Fixed typo due to missing code edit after copy and paste 2022-02-08 13:09:19 +01:00
enricoturri1966
8ada191e91 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2022-02-08 12:58:04 +01:00
enricoturri1966
92aa6540f5 Tech ENABLE_SHOW_TOOLPATHS_COG - Show toolpaths center of gravity 2022-02-08 12:57:56 +01:00
Filip Sykala
0c40e2f8c8 Merge branch 'master' into fs_mouse
# Conflicts:
#	src/slic3r/GUI/Gizmos/GLGizmoRotate.cpp
#	src/slic3r/GUI/Gizmos/GLGizmoRotate.hpp
2022-02-08 10:43:29 +01:00
Lukas Matena
1a2120a43e Changed config folder to -alpha, version increased to 2.5.0-alpha0 2022-02-08 10:06:46 +01:00
Vojtech Bubnik
199dc121a5 Quantization of G-code export to achieve more precise extrusion
width control.
2022-02-07 15:33:34 +01:00
Lukáš Hejl
a4ecf2f2a6 Replaced smooth_outward in multi-material segmentation with a function that removes duplicate points with angle threshold. It should fix #7838 and #6892.
The main contribution of the smooth_outward function for multi-material segmentation was the removal of duplicate points in polygons using MutablePolygon::remove_duplicates().
But the issue with this function is that it deletes points only based on their distances, which could cause problems like in #7838.
2022-02-07 13:38:22 +01:00
YuSanka
9ea7427ce7 Fix for #7887 - [UI] Add Settings > Layers and Perimeters - some options have non distinct labels
+ Fixed build warning
2022-02-07 13:21:11 +01:00
YuSanka
a1746e3e66 Fix for #7849 - "Save Project" command doesn't work properly
Don't update saved presets on
   * preset selection
   * initialization of PresetCollection
, but update them on
   * load another project
   * initialization of an application
2022-02-07 11:59:39 +01:00
Vojtech Bubnik
7989b72298 Fixing Perl unit tests: Fixed crash in calc_max_layer_height() 2022-02-07 11:11:29 +01:00
enricoturri1966
f6c7fefec2 Follow-up of 6b041429f6 - Fixed warning 2022-02-07 10:49:50 +01:00
Lukáš Hejl
e20d041fc9 Fixed an issue with a gap in brim when inner brim was used.
This gap still can appear for holes that contain another object.
Also fixed an issue that a huge outer brim can overflow into holes of another object.
2022-02-07 10:48:52 +01:00
enricoturri1966
6b041429f6 Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Removed Slic3r::GUI::GeometryBuffer from 3DBed.hpp and replaced with GLModel 2022-02-07 10:24:24 +01:00
Vojtech Bubnik
1d7f4a081b G-code thumbnails in other than PNG format: Fixing Perl unit tests. 2022-02-07 10:20:04 +01:00
YuSanka
874da0281d Fixed SPE-1192
Wrong list of SLA-materials, when no SLA-printer is installed, but 3MF with SLA print is loaded
2022-02-07 10:00:49 +01:00
Vojtech Bubnik
960913bada Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2022-02-07 09:22:54 +01:00
Lukáš Hejl
dd3964c8c3 Added deallocation of SupportLayers (PrintObject::m_support_layers) into the PrintObject destructor and fixed memory leak in modulate_extrusion_by_overlapping_layers(). 2022-02-05 13:27:54 +01:00
Lukáš Hejl
7cc4b1d8b4 Suppressed reports of memory leaks from Mesa 3D software driver in WSLg. 2022-02-05 13:26:52 +01:00
Vojtech Bubnik
6ed037ab7b Merge remote-tracking branch 'origin/stable' 2022-02-04 17:01:18 +01:00
enricoturri1966
987dc3ddb1 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2022-02-04 12:02:21 +01:00
enricoturri1966
b04e05b3f7 Fixed bug into GLTexture::load_from_svg_files_as_sprites_array() - One pixel of generated icons was cut away 2022-02-04 12:02:10 +01:00
YuSanka
6f595ceb64 Fix for fff_print_tests 2022-02-04 11:30:07 +01:00
YuSanka
9585fda2f1 UnsavedChangesDialog: Fixed a crash, when enum_labels wasn't defined for some enum config option. 2022-02-04 10:02:13 +01:00
enricoturri1966
30dc2bf39c Do not show ProjectDropDialog when drag and dropping a 3mf file produced by other softwares and the plater is not empty 2022-02-04 09:52:00 +01:00
enricoturri1966
252d153b9f Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2022-02-04 08:16:54 +01:00
enricoturri1966
f6b4cbdc32 Follow-up of 030f460114 - compress_thumbnail_jpg() implemented using embedded libjpeg 2022-02-04 08:16:48 +01:00
tamasmeszaros
ca7668d858 Change precision units to mm
Add some perf optimization for svg output writing
2022-02-03 16:10:03 +01:00
tamasmeszaros
5e97778528 Added new param sla_output_precision in nanometers
Adopted a fast and easy integer to string conversion
2022-02-03 16:10:03 +01:00
tamasmeszaros
72da90d28f WIP
wip
2022-02-03 16:10:03 +01:00
tamasmeszaros
b45c6ef173 Export scaled integer coordinates into svg
This is faster and lossless
2022-02-03 16:09:57 +01:00
tamasmeszaros
00764ceade Fix ignoring of changed sla printer params 2022-02-03 16:09:57 +01:00
tamasmeszaros
7f153a55b3 SLA archiver implemented for svg output, switchable in config.
new config is sla_archive_format as a string.
WIP


Get rid of SVG class, use manual svg creation


Revert changes in SVG.hpp and SVG.cpp
2022-02-03 16:09:57 +01:00
enricoturri1966
030f460114 Follow-up of 87cff55856 - Implementation of compress_thumbnail_jpg() 2022-02-03 13:24:30 +01:00
YuSanka
3d0feaf3e6 Fix for #7856 - Grey square rendered over "notebook tabs" in preferences dialog
For BlinkingBitmap was used wrong parent. That is why first layout wasn't correct.
2022-02-03 11:18:56 +01:00
Lukáš Hejl
bd65eb55b0 Added a missing include (GCC11.1 without PCH). 2022-02-03 08:36:24 +01:00
Vojtech Bubnik
086662b6a1 Fixed typo in thumbnail_QOI tag. 2022-02-02 17:43:39 +01:00
Vojtech Bubnik
87cff55856 WIP: Implemented support for QOI G-code thumbnail format as requested
by the RepRapFirmware team due to their low RAM budget for decompression.
Bundled the QOI image compression library.
2022-02-02 17:37:46 +01:00
enricoturri1966
222e3ec6ef Follow-up of cfe8aa4818 - Fixed focus when moving between object manipulator fields by tab key or mouse click 2022-02-02 15:25:35 +01:00
enricoturri1966
81b9997009 Follow-up of 7d87490777 - Fix into function reloadable_volumes() 2022-02-02 14:59:21 +01:00