Commit Graph

35202 Commits

Author SHA1 Message Date
PaddleStroke
fa11eb93f4 Assembly: Insert link, clear selection on deactivation. 2024-05-06 18:32:00 +02:00
PaddleStroke
10e75e2752 Assembly: Change 'Insert Link' name to 'Insert Component' Fixes #12165 2024-05-06 18:32:00 +02:00
PaddleStroke
23dbcea22f Assembly: InsertLink : Open File does partial opening. So no tab opens. 2024-05-06 18:32:00 +02:00
PaddleStroke
e7477f727f Assembly: Fix Object disappears when dragging with slider #12449 2024-05-06 18:32:00 +02:00
PaddleStroke
d436138b8d Assembly: Insert: fix non-ascii names issue #12164 2024-05-06 18:32:00 +02:00
PaddleStroke
eafed89837 Assembly: Fix JCS not drawing correctly when removing selection. 2024-05-06 18:32:00 +02:00
PaddleStroke
812e34899f Assembly : Fix : In Joint taskbox, deleting an element in the list should unselect it #10750 2024-05-06 18:32:00 +02:00
PaddleStroke
1fd34ab124 Assembly : Typos 2024-05-06 18:32:00 +02:00
PaddleStroke
a4fc08087a Assembly: Deactivate other tools when insert part is active. Fixes #12551 2024-05-06 18:32:00 +02:00
PaddleStroke
b608324448 Assembly : Replace 'Insert as part' by 'Show only parts' 2024-05-06 18:32:00 +02:00
PaddleStroke
1c4d68670a Assembly: Fixed joint should not be active if no part is grounded. Fixes #12544 2024-05-06 18:32:00 +02:00
PaddleStroke
c47ee0c492 Assembly: Fix : Reversing Distance Joint Moves Grounded Part #12457 2024-05-06 18:32:00 +02:00
PaddleStroke
51e7d54739 Assembly: Disable pre-solve for distance joints. 2024-05-06 18:32:00 +02:00
PaddleStroke
1018162528 Assembly: Add drag mode for planar distances. 2024-05-06 18:32:00 +02:00
PaddleStroke
2fad087aac Assembly: Add DistanceType enum and getDistanceType function. 2024-05-06 18:32:00 +02:00
PaddleStroke
89b14c9c0a Assembly : Fix Fixed joint shortcut. Improve distance joint tooltip. 2024-05-06 18:32:00 +02:00
PaddleStroke
08705ecb85 Sketcher: fix OVP placement issue #13827 2024-05-06 12:30:43 -04:00
Kacper Donat
330c7f4eaa Gui: Remove redundant overlay header
Fixes: #13349
2024-05-06 18:26:05 +02:00
wmayer
a2037c9dc4 Gui: Replace TreeRank property with a simple int
This fixes that copied & pasted objects are not added at the end of the tree view.
See https://forum.freecad.org/viewtopic.php?p=755532#p755532
2024-05-06 18:24:20 +02:00
wmayer
7eeb3a43cc Gui: Do not reset placement when reordering top-level objects
This fixes #13690: Reordering top level objects destroys the Placement
2024-05-06 18:24:20 +02:00
wmayer
d37fb29b36 Gui: fix some linter warnings 2024-05-06 18:24:20 +02:00
marioalexis84
dbc541f0a0 Fem: Reset field color bar - fixes #13695 (#13820)
* Fem: Reset field color bar - fixes #13695

* Fem: Hide input filter if new filer is created
2024-05-06 11:23:08 -05:00
Chris Hennes
c8534de9ec Start: Fix selection and ordering of language (#13823)
Fixes #13814.
2024-05-06 11:22:19 -05:00
Chris Hennes
a5d8aaa21c Update translations
Also removes Web from translation scripts.
2024-05-06 18:17:53 +02:00
Max Wilfinger
a934421906 Change default UMF colors (#13781) 2024-05-06 11:16:48 -05:00
PaddleStroke
7192cc3a01 Measure: QuickMeasure: deactivate solids measures of volume/area because it's slowing down selection. 2024-05-06 18:12:14 +02:00
PaddleStroke
818e122420 Core / Measure: Introduce QuickMeasure 2024-05-06 18:12:14 +02:00
Yorik van Havre
085ce0c54e Help: Removes use of WebGui (#13812)
* Help: Removes use of WebGui - fixes #13788

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-06 11:09:25 -05:00
LarryWoestman
44636e0446 CAM: Added tests for A, B, and C parameters to the linuxcnc post (#13702)
Also added code to keep A, B, C parameters from changing with --inches

Co-authored-by: LarryWoestman <LarryWoestman@users.noreply.github.com>
2024-05-06 11:08:43 -05:00
Florian Foinant-Willig
31a4915012 Fix 12755 (#13802) 2024-05-06 11:06:27 -05:00
Max Wilfinger
06174f4693 Sketcher / UI: Update Sketcher Toolbars (#13763)
* Update Sketcher toolbar UIs.
Group all create tools for arcs, conics.
Group toggle driving/active constraints.
Update arrangement of icons.

* Change default to unified coincidence tool.
2024-05-06 18:05:56 +02:00
wmayer
0611f3fc99 Gui: simplify MainWindow::showDocumentation()
The Help module is now part of FreeCAD. So, there is no need any more to run the addon manager
2024-05-06 18:04:13 +02:00
Max Wilfinger
36218444b4 Add Std_Measure command to tool menu. (#13777) 2024-05-06 11:02:50 -05:00
Martin Rodriguez Reboredo
51987dc1ab Fixups with Qt6 enums (#13611)
* Python PySide enums to C++ converter

* Python IntFlags to C++ int in getStandardButtons

* Remove int conversion in mods Python sources
2024-05-06 18:02:18 +02:00
Zheng Lei
b00a4384bf Gui: support toolbar drag and drop to status bar and menu bar (#13571)
* Gui: support toolbar drag and drop to status bar and menu bar

Closes FreeCAD/FreeCAD#12979

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Gui: improve toolbar handling in status and menu bar

* Gui: fix workbench tab bar orientation in status or menu bar

* Gui: remove workbench toolbar position settings

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-06 17:59:16 +02:00
farley
8f7424820c Update Tree.cpp
- Disable document activation when right-clicking
2024-05-06 17:57:15 +02:00
wmayer
65dbd776fb Core: Fix crash when loading a file with v0.21 that was created with v0.22
In v0.22 a version number -1 is added to the material files to distinguish between old and new project file.
But v0.21 doesn't know about this version number and interprets it as number of elements instead.
Because this value is assigned to an unsigned type the value becomes 2**32 - 1. Now trying to create a container of this size requires > 280 GB
of RAM. On most systems FreeCAD new handler will jump in and raises a memory exception to stop the allocation. But an other systems with
plenty of RAM it's tried to allocate the memory and then may crash at some point.

This PR fixes this regression. It puts the version number to the MaterialList XML element as an optional attribute.
With this change FreeCAD v0.22 is still able to load projects that have been created prior to this change.
Additionally FreeCAD v0.21 can again load project files without crashing.

For more details see: https://forum.freecad.org/viewtopic.php?t=87268
2024-05-06 17:56:25 +02:00
marioalexis84
1e4ed56010 Fem: Rescaling and transparency fix for heat constraint symbols (#13723) 2024-05-06 10:54:57 -05:00
marioalexis
0cee0e9f50 Fem: Save and restore custom colors of elements in mesh - fixes #6131 2024-05-06 17:53:39 +02:00
PaddleStroke
4442fa709e Sketcher: Dimension tool : add arc length 2024-05-06 17:50:17 +02:00
wmayer
44af4555c0 Part: Create CompSolid/Compound/Shell if null before adding a sub-shape
Creating a shape with Part.CompSolid(), Part.Compound() or Part.Shell() is a null shape. In order to allow to append sub-shapes with the add()
method a valid shape must be created beforehand.

This fixes #13208
2024-05-06 17:45:58 +02:00
Bas Ruigrok
98320cc839 Gui: Improve lookAtPoint (#13556)
* Gui: Rename NavigationStyle::pan to setupPanningPlane

* Gui: Replace duplicate code with NavigationStyle::setupPanningPlane

* Gui: Use panning plane when hit point not found in lookAtPoint

Also enables navigation animations when pressing MMB while the mouse is not over an object

* Gui: Remove unused methods
2024-05-06 10:45:14 -05:00
sliptonic
f3590de466 Merge pull request #13529 from davesrocketshop/hardness_units_pr
Materials: Update Material Models
2024-05-06 10:43:32 -05:00
bgbsww
4022e4151e Ensure we set up a valid sketch even with invalid external references 2024-05-06 17:42:38 +02:00
wmayer
34837d7e9f PD: Fix crash when adding sketch to loft via tree view
The underlying problem is the method DocumentItem::updateItemSelection() where
the selection is altered. This may cause the destruction and recreation of the
DocumentObjectItems so that the passed pointer can become dangling.

The issue is fixed in two steps:
1. Add the method 'DocumentObjectItem *findItem(App::DocumentObject* obj, const std::string& subname) const'
   to safely re-access the item.
2. Add a boolean flag 'dirtyFlag' and the methods insertItem() and removeItem() to DocumentObjectData.
   This is needed to check when the iterator over the container becomes invalid.
2024-05-06 17:38:59 +02:00
sliptonic
f4a961e8f0 Merge pull request #13668 from Ondsel-Development/RefactorPostCommand
Refactor post command
2024-05-06 09:49:28 -05:00
sliptonic
b39d29ac9d Merge pull request #13667 from Ondsel-Development/refactorsanity
refactor Sanity
2024-05-06 09:48:59 -05:00
WandererFan
32f0581536 Merge pull request #13842 from WandererFan/fixDimRotation3
[TD]fix dimension autocorrect
2024-05-06 08:44:03 -04:00
Furgo
96e5c52909 Revert missed change on the last commit 2024-05-06 11:32:10 +02:00
Furgo
7cf6e58ba3 Look up materials with full path. Revert changes to the Material namespace 2024-05-06 11:32:10 +02:00