Commit Graph

40439 Commits

Author SHA1 Message Date
ppphp
51c6dbd3e3 fix unique ptr usage in sketch (#15008)
* fix unique ptr usage in sketch

* [pre-commit.ci] auto fixes from pre-commit.com hooks
2024-07-08 10:53:49 -05:00
Chris Hennes
24c7d3ef25 Sketcher: Switch SnapManager from Win-1252 to UTF-8 2024-07-08 17:51:33 +02:00
PaddleStroke
cef87b5642 Sketcher: BSpline DSH: Fix crash: If you create new sketch, start bspline tool and change mode, it would crash. It's because it was doing a abortCommand before the command was opened. So it cancelled the create sketch command. 2024-07-08 10:50:33 -05:00
hlorus
cd84304b67 Measure: Pass last object in subobject list to getTopoShape 2024-07-08 10:42:44 -05:00
PaddleStroke
6a309e889e Sketcher: BSpline: Fix crash when cancelled while only one point with autoconstraint. 2024-07-08 10:41:11 -05:00
wmayer
1eaf89b485 Sketcher: Handle PyException in createGeneratedAutoConstraints
Command::doCommand may throw an exception that isn't handled by the active sketch handler. This may leave it in an inconsistent state and can cause a crash later.

See #14945
2024-07-08 10:40:04 -05:00
PaddleStroke
6640815c4d Assembly: Enable Insert Component taskbox to grow when more items are added. 2024-07-08 10:39:07 -05:00
Chris Hennes
99d63a9693 cMake: Fix extra copy line for printsupport plugins 2024-07-08 08:44:18 -05:00
Chris Hennes
c934a4bd64 cMake: Remove use of Core5Compat from Qt6 2024-07-08 11:59:09 +02:00
mosfet80
8d8ce96f8e [Mod:overlay] clean Overlay.cpp
Deleted dead code.
2024-07-08 11:58:51 +02:00
mosfet80
99983a86b8 [Mod] clean GLGraphicsView.cpp
Removed dead code
2024-07-08 11:58:13 +02:00
mosfet80
dfe0c5d4ee clean [Robot] Command.cpp
removed unnecessary code
2024-07-07 11:27:21 +02:00
wandererfan
4d90e1655a [TD]fix display of spreadsheet cells with no horiz alignment 2024-07-06 18:51:59 -04:00
Jookia
8e1476699f GUI: Work around Shiboken 6 bug for CallTips
Shiboken 6.4.0 to 6.8.0 and newer crash when using getAttr on their
objects. On these versions and newer, use a wrapper function to
call getattr.

Fixes #14101
2024-07-07 04:58:38 +10:00
wandererfan
03db773181 [TD]fix multiselect handling of non-geometry objects 2024-07-06 12:49:18 -04:00
wandererfan
3ddddc375c [TD]fix default for KeepLabel 2024-07-06 12:49:18 -04:00
wandererfan
7d8df6cd55 [TD]fix default line width on empty config 2024-07-06 12:49:18 -04:00
wandererfan
d98aa70d0e [TD]fix camera/front buttons on Proj Group dialog 2024-07-06 12:49:18 -04:00
Max Wilfinger
ef568314fd fix TechDraw .svg autofill and editable tags 2024-07-06 09:42:15 -04:00
FEA-eng
f14498727b FEM: Update exportNastranMesh.py 2024-07-06 14:01:11 +02:00
wmayer
561e521817 MSVC: Fix warning C4005: 'NOMINMAX': macro redefinition 2024-07-05 17:04:43 +02:00
Shai Seger
bf0b0cdf11 Merge branch 'FreeCAD:main' into Fix-Python-getElement 2024-07-05 16:45:36 +03:00
wmayer
dd71f4d5db PD: Remove dead code from workbench class 2024-07-05 15:32:52 +02:00
wmayer
7ab2b92fc8 Gui: Don't show Python console by default
Fixes #15201
2024-07-05 14:56:37 +02:00
FEA-eng
a77d6b8a38 PD: Update Workbench.cpp 2024-07-05 12:09:04 +02:00
hlorus
33802f48c4 MeasureGui: Insert measure command into menu & toolbar 2024-07-05 10:54:38 +02:00
wmayer
7a9fd501c3 PD: Reformat TaskThicknessParameters 2024-07-04 22:24:15 +02:00
wmayer
610e1d67ad PD: Refactor TaskThicknessParameters 2024-07-04 22:24:15 +02:00
wmayer
7c0ecac580 PD: Fix linter warnings in TaskThicknessParameters 2024-07-04 22:24:15 +02:00
wmayer
0af1ec2cf3 PD: Do not set hard-coded maximum for thickness parameter
Fixes #15140: Thickness value Task panel issue
2024-07-04 22:24:15 +02:00
wmayer
aac8bdd7bc Fixes #14772: Random color problem 2024-07-04 22:23:10 +02:00
wmayer
3666215f8b Mesh: Do one import per line for the recorded macro 2024-07-04 22:22:28 +02:00
wmayer
535faeb297 Mesh: Use a lower threshold for the MeshPart_SectionByPlane command
See forum: https://forum.freecad.org/viewtopic.php?t=88734
2024-07-04 22:22:28 +02:00
wmayer
876e88f405 Gui: Fix crash in QuarterWidgetP::removeFromCacheContext
Fixes #https://github.com/FreeCAD/FreeCAD/issues/14988
2024-07-04 22:21:44 +02:00
wmayer
f5a87bc620 Spreadsheet: Fix SheetPython::getViewProviderName() to return the correct type name
For more details see: https://forum.freecad.org/viewtopic.php?t=88642
2024-07-04 22:21:03 +02:00
wmayer
30d8a74ce7 Gui: Fix crash when trying to calibrate image after document is closed 2024-07-04 22:19:42 +02:00
wmayer
0e8752448b Start: Make the Start Page a passive view
Do not attach the Start Page to an existing document as otherwise weird behaviour can be observed:
1. Start FreeCAD
2. Open a project file or data file
3. Open the Start Page
4. Make a change to the document
5. Close the document. You won't be asked to save your change
6. In the tree view the document is still shown because the Start Page is attached to the document
7. Close the Start Page. Now you will be asked to save your change
2024-07-04 22:18:42 +02:00
wmayer
858e59fabf Sketcher: Fix format string in ExternalGeometryFacade::initExtensions()
The format string of the warnings were incorrect and caused an fmt::format_error exception
2024-07-04 22:05:22 +02:00
shai
2d1edacaa9 Add fixes suggested by @bgbsww 2024-07-04 19:53:09 +03:00
David Carter
e04d29b950 Reduce Linter warnings 2024-07-04 11:49:45 -04:00
wmayer
a8bbeac68e Core: In dialog to add property only list types that can be instantiated
Fixes #15159: Dialog for adding properties allows property types that give exceptions
2024-07-04 15:54:19 +02:00
hlorus
8ab537863a [MeasureGui] Move measure cmd and task into measure module
...to avoid core depending on modules
2024-07-04 14:56:49 +02:00
shai
df002c1c7d Merge branch 'Fix-Python-getElement' of https://github.com/shaise/FreeCAD into Fix-Python-getElement 2024-07-04 11:49:45 +03:00
shai
b08714116c Fix python shape setElement function. Partially fixes #15095 2024-07-04 11:48:44 +03:00
PaddleStroke
82f7749042 TechDraw: add DlgPrefsTechDrawDimensionsImp::resetSettingsToDefaults to reset correctly some settings. 2024-07-04 09:36:33 +02:00
Roy-043
a3cc73ce15 Draft: fix Draft_Shape2DView warnings
Fixes #15144.
2024-07-04 09:11:10 +02:00
PaddleStroke
09209436d2 Sketcher: add SketcherSettings::resetSettingsToDefaults to reset correctly some settings. 2024-07-03 18:33:57 +02:00
wmayer
fdfffbcc9e TD: Fix DrawViewCollection::unsetupObject()
Assigning a null pointer to a std::string causes a failure
2024-07-03 09:07:17 -04:00
PaddleStroke
d92742f9c6 Sketcher: Dimension: Prevent the use of Undo from crashing. 2024-07-02 15:48:47 +02:00
Jookia
04cc890fd0 StartView: Escape file paths when loading 2024-07-02 08:31:59 -05:00