Commit Graph

35937 Commits

Author SHA1 Message Date
JULIEN MASNADA
2fb74cac0f Fixed invalid vector in distance calculation (#12364)
* Fixed invalid vector in distance calculation
2024-02-13 10:11:22 -06:00
howetuft
99364d313b Release GIL while meshing in MeshPart.meshFromShape
This commit releases the Global Interpreter Lock around mesher call and
should enable multithreading use when exporting large quantities of
objects (for instance for external rendering).
2024-02-13 11:15:52 +01:00
Mark Peres
e6e196b29f add subvolume property 2024-02-13 10:18:12 +01:00
Mark Peres
60189536a0 refactor getSubVolume method -> use early exit 2024-02-13 10:18:12 +01:00
Roy-043
30f6e61004 Arch: Arch_Window round values in getSolidSignature
Values in getSolidSignature must be rounded, else matching solids are often not found.
2024-02-13 10:16:23 +01:00
Chris Hennes
38451a0d3c Merge pull request #11267 from Ondsel-Development/pw_translate
[Sketcher] Translate DSH : replacement for rectangular array / move / copy / clone
2024-02-12 13:24:08 -06:00
Adrián Insaurralde Avalos
592b31eb7b Base: escape quotes in Quantity::getSafeUserString
fix #12204 and fix #12206
2024-02-12 12:09:30 -06:00
mosfet80
fe1ee63f2f Clean SetupQt.cmake (#12335)
* Update SetupQt.cmake
2024-02-12 12:08:09 -06:00
mosfet80
b102c5968f Clean CompilerChecksAndSetups.cmake
CMAKE_CXX_COMPILER_VERSION are always greater than  3.9
2024-02-12 12:05:11 -06:00
wmayer
e6bbc7f049 Part: use of ShapeMapHasher for code simplification 2024-02-12 12:02:17 -06:00
wmayer
ab88b8cb2f Part: add helper class ShapeMapHasher to reduce conditional inclusions 2024-02-12 12:02:17 -06:00
wmayer
a4600528bd Mod: remove leftovers of includes of Standard_math.hxx 2024-02-12 12:02:17 -06:00
wmayer
19db9bdaeb Gui: check dialog width after language change 2024-02-12 12:00:11 -06:00
wmayer
fe94ff6dac Gui: set minimum width of preferences dialog to avoid to truncate or hide controls 2024-02-12 12:00:11 -06:00
Yorik van Havre
ae0f162a41 Crowdin translations (#12313)
* updated ts files

* merged crowdin translations

* [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-02-12 11:59:08 -06:00
wmayer
4debb66b43 Base: fix IsNormal() and IsParallel()
Fix the IsNormal() and IsParallel() methods to pass the unit tests
2024-02-12 11:58:45 -06:00
wmayer
53427edc2c Tests: add unit tests for IsNormal() and IsParallel() 2024-02-12 11:58:45 -06:00
sliptonic
1d346f619c Merge pull request #12247 from bgbsww/bgbswwFixTestArtifacts
Stop tests from leaving files around after execution
2024-02-12 18:56:21 +01:00
LemonBoy
8c21ae6ffe Clear projected shape when changing extrude height
When the height is zero no solid is produced, the code was thus showing
the result of the previously selected projection height.

Closes #12113
2024-02-12 11:54:48 -06:00
LemonBoy
72db315043 Fix icon order in constraint menu
Closes #12264
2024-02-12 11:50:41 -06:00
wmayer
74121ea127 Gui: fixes #12043: Treeview doesn't work if not in combo view mode 2024-02-12 18:46:29 +01:00
wmayer
ca03d18355 Py3.12: initialize field 'tp_watched' 2024-02-12 11:41:49 -06:00
wmayer
0158b6fd2a Py3.12: harmonize with upstream of PyCXX 2024-02-12 11:41:49 -06:00
wmayer
70b8e7a07b Gui: Give property editors an object name
This allows it to easily find the widgets with Qt's findChild() method
2024-02-12 11:41:09 -06:00
wmayer
c425e675ba Mesh: fixes #11985: 3MF export to Prusa with clone = open edge warnings on clone
See https://forum.freecad.org/viewtopic.php?p=738731#p738731
2024-02-12 11:40:45 -06:00
wmayer
5eabeff94e Mod: fix several compiler warnings:
* fix -Wsometimes-uninitialized
* fix -Wunused-parameter
* fix -Wunused-variable
* fix -Winconsistent-missing-override
* fix -Wsign-compare
* fix -Wreorder-ctor
* fix -Wtautological-overlap-compare
2024-02-12 11:39:32 -06:00
LemonBoy
395797d018 Avoid overriding ImagePlane size during import
When copying&pasting an ImagePlane whose ImageFile property is a
PropertyFile we'd get two updateData notifications, one when the
property value is restored (which doesn't do much as the file doesn't
exist yet) and another when the RestoreDocFile method is invoked.

The solution is simple, do not set Xsize and Ysize when importing the
object as we expect the properties to already have the correct values.

Closes #11036
2024-02-12 11:38:18 -06:00
mosfet80
562aa28883 removed unused code (#12276)
* removed unused code

* [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-02-12 11:36:57 -06:00
marioalexis
05916fcbd3 Fem: Enable "Stop CalculiX" button - fixes #11448 2024-02-12 11:35:59 -06:00
André
4fb4288905 Resolve #12248: Remove redundant and non-functional selection checkbox preference (#12263)
Remove the selection checkbox preference from Display->UI.
The same preference exists under General->Selection.

When changing the preference and then applying the settings, it reverts
back to the value under General->Selection and thus is not usable.
2024-02-12 14:34:28 -03:00
Roy-043
2bd0a06991 Draft: fix wrong selection after commands
Fixes #10469

The code of the `end_all_events()` function is by Chris Hennes (chennes).
See https://forum.freecadweb.org/viewtopic.php?p=656362#p656362.
2024-02-12 11:32:58 -06:00
Andrei Pozolotin
3b6dda2d70 Resolve #12235: labels in Mod/Part/Gui/TaskAttacher.ui 2024-02-12 11:29:51 -06:00
marioalexis84
de13c4cb09 Fem: Prevent selection of partially attached object - fixes #12163 (#12220)
* Fem: Use of wrong class name in macro
* Fem: Prevent selection of partially attached object - fixes #12163
2024-02-12 11:22:44 -06:00
Florian Foinant-Willig
45e6e3561e Part & PartDesign Cone: allow equal radii (#12219)
* PartDesign_Cone: allow equal radii

* fix R2 < R1

* Part_Cone: allow equal radii
2024-02-12 14:21:53 -03:00
Zolko-123
59107aab26 Update Mod/PartDesign/Gui/ViewProviderDatumCS.cpp
This is a small harmless visual improvement of the LCS representation in the 3D window: it leaves a small empty gap at the origin of the LCS which allows to select the point/vertex on which the LCS is attached
2024-02-12 11:20:20 -06:00
PaddleStroke
dc942368db Sketcher: CommandConstraint.cpp : modernize for loops and use some auto 2024-02-12 11:14:22 -06:00
PaddleStroke
4f508067ed Sketcher: Parallel: Ignore selected points instead of throwing an error. 2024-02-12 11:14:22 -06:00
mos
561803455e removed unused example 2024-02-12 11:12:25 -06:00
LemonBoy
8fc02829f1 Dim the Navigation Cube when not active
Implement the InactiveOpacity option, allowing the user to dim the
navigation cube when not focused by making it transparent.
2024-02-12 18:10:12 +01:00
Kacper Donat
bb52790710 Gui: Add ability to set coordinate system axis letter color
Fixes: #12172
2024-02-12 18:07:02 +01:00
Chris Hennes
32fe5564b9 Merge pull request #12171 from Rexbas/tux-remove-duplicate-icons
Tux: Remove duplicate icons
2024-02-12 11:05:24 -06:00
Max Wilfinger
4b71f44414 Improvements to contextual right click menu in Sketcher.
Consider preselection, external geo and copy/cut/paste commands.
2024-02-12 11:04:06 -06:00
Chris Hennes
516a7dd2af Merge pull request #12104 from Rexbas/navigation-fixes
Gui: Mouse navigation fixes
2024-02-12 10:56:35 -06:00
Florian Foinant-Willig
056b90cce3 Set Suppressed false if no shape 2024-02-12 17:55:51 +01:00
Florian Foinant-Willig
f4763109c3 [PD] Add a Suppressed property to disable a feature 2024-02-12 17:55:51 +01:00
PaddleStroke
fc1e978fc0 Sketcher: change DSH framework so that tab cycle through OVP and widget parameters. 2024-02-12 17:48:35 +01:00
PaddleStroke
f56bd4ea5a Sketcher: DSH: add two shortcuts for DSH to use. Fix a small syntax error in polygon/rotate. 2024-02-12 17:48:29 +01:00
Paddle
010d6573d8 Remove Copy/clone/move and RectangularArray from the toolbar/menu. But does not remove the code of these. 2024-02-12 17:48:29 +01:00
Paddle
6293a2b357 Translate DSH : A replacement for rectangular array. 2024-02-12 17:48:22 +01:00
Adrian Insaurralde Avalos
ffb3fabd21 Fix warning in DlgMacroExecute.ui 2024-02-12 10:48:08 -06:00