Commit Graph

37672 Commits

Author SHA1 Message Date
FEA-eng
f5486bca3e Part: Add Sketcher_NewSketch to Part toolbar (#14318)
* Update Workbench.cpp

* Part: Update InitGui.py
2024-06-10 10:36:39 -05:00
Emmanuel Obrien
a7e1760bfb Speedup sketcher item selection
Selecting lots of elements in the sketcher slows down quadratically because we were redrawing the entire element list widget for each element.
2024-06-10 10:35:32 -05:00
PaddleStroke
ba0ff0db5e Techdraw: area dimension: fix scale issue. 2024-06-10 08:28:36 -04:00
Syres916
3b4598ce04 [AddonManager] Fix Error on Existing Python Additional Packages Folder (#14522)
* [AddonManager] Fix Error on Existing Python Additional Packages Folder

...this is more likely to occur since the BIM workbench integration and new users installing ifcOpenShell by pip before running AddonManager.

* [AddonManager] Correct boolean
2024-06-07 14:30:42 -05:00
bdieterm
ea68c5e88c Core: fix import of FreeCAD in a Python 3.12 interpreter
Importing FreeCAD as a module in a normal Python interpreter (e.g. /usr/bin/python3) stopped working with Python 3.12 (but works normally with Python 3.11). When executing "import FreeCAD as App", the interpreter crashes with "Fatal Python error: PyImport_AppendInittab: PyImport_AppendInittab() may not be called after Py_Initialize()".
The check that causes the error message and abortion was introduced in Python 3.12 via
7f3a4b967c
(and a typo in the error message fixed via)
35dd55005e
2024-06-07 12:19:45 -05:00
wandererfan
5ca6eab922 [TD]fix incorrect section lines with expression link 2024-06-07 10:19:13 -04:00
wandererfan
c5981b07b6 [TD]Change template svg_namespace to www.freecad.org
- was www.freecadweb.org
2024-06-07 10:18:42 -04:00
Kacper Donat
62463fa0bd Gui: Add QtStyle user parameter
This allows theme developers to set proper Qt style.
2024-06-06 22:26:21 -05:00
hlorus
433dcec0be MeasureGui: Don't resolve selection objects in TaskMeasure
Fixes #14332
2024-06-06 22:24:30 -05:00
Jonas Bähr
4f3f692fca App: add readline-based tab-completion
When executing FreeCAD in interactive console-mode, the init-script tries
to load readline for a better input experience and enables tab-completion.
This code is neither executed when running in GUI mode, nor when the
console is not itneractive, e.g. when reading a script from stdin.

Note that readline is not available on Windows, so we ignore import errors
for now. With pyreadline3 there may be an alternative for Windows, but I
cannot verify this on my setup.
2024-06-06 21:56:18 -05:00
Max Wilfinger
6acf3ca401 Updated icons according to DWG feedback 2024-06-06 21:41:50 -05:00
Roy-043
7496eb94f8 Draft: Fix two Layer warnings (#14506)
There are two unnecessary Layer warnings:
1. A 'might break' warning when deleting an object nested in a layer.
2. An 'out of scope' warning for objects also nested in f.e. a Std_Part.

To avoid them the Group property type was changed to `App::PropertyLinkListHidden`.
2024-06-06 15:53:49 +02:00
Syres916
7dbebbbb08 [BIM] Add fallback installation for Python 3.10, 3.11 & 3.12 systems 2024-06-06 14:47:17 +02:00
Roy-043
3ef99e8b83 BIM: Update WP commands
Update the BIM WP commands to use the new Draft code. This ensures correct GUI behavior.

This also fixes the BIM_SetWPSide command which would align to the left side instead of the right side. The right side matches the behavior of Draft_SelectPlane and also the icon of the command.
2024-06-06 14:08:21 +02:00
Roy-043
5935cba69a BIM: Fix BimImagePlane.py imports 2024-06-06 14:07:39 +02:00
paullee
bc46d4fc39 [ArchWall] Add switch 'ArchSketchData' to use ArchSketch Data or not 2024-06-06 14:04:14 +02:00
paullee
b3ac1d9c85 [ArchWall] Disable Input (ReadyOny) if Base (ArchSketch) Provided
To avoid confusion, attributes e.g. Align, Width, Offset, Override (Align/ Width/ Offset)
would be disabled, if Base object is ArchSketch which provided the above information

FC Forum Discussion :  https://forum.freecad.org/viewtopic.php?t=87721&start=30#p763761
2024-06-06 14:04:14 +02:00
Chris Hennes
de9be04249 Merge pull request #14491 from marioalexis84/fem-test_file_license
Fem: Set compatible license in test files - fixes #8894
2024-06-04 19:15:12 -05:00
wmayer
36a7fd9be4 StartGui: Fix crash in GeneralSettingsWidget::onNavigationStyleChanged
It's not allowed to store the C string of a tmp. byte array as the pointer will become dangling and causes undefined behaviour
2024-06-04 20:24:01 +02:00
wmayer
9456df5a4b Fix compiler warnings 2024-06-04 20:23:19 +02:00
wmayer
d12632f2ca Fix compiler warnings 2024-06-04 17:36:10 +02:00
marioalexis
e3648061fd Fem: Set license for Python generated examples 2024-06-04 11:38:29 -03:00
marioalexis
609da5cf04 Fem: Set compatible license in test files - fixes #8894 2024-06-04 04:30:03 -03:00
Chris Hennes
681e8c9d2f Merge pull request #14485 from bgbsww/bgbsww-toponamingFixDressUpShadowSubs
Toponaming fix dress up shadow subs
2024-06-03 21:01:22 -05:00
bgbsww
20bcd7c8f4 Toponaming: defend against uninitialized elementMap in getElementHistory 2024-06-03 20:59:36 -05:00
bgbsww
96aa878b7e Toponaming: reformat code 2024-06-03 19:29:01 -04:00
Shai Seger
fc714933a7 CAM: Simulator: A fix for Issue #14369: Wrong drill operation simulation (#14401)
* remove redundant code

* Fix G8x drill sequence bug.  issue #14369

* fix bad simulation artifacts under Linux and QT. Issue #14369
2024-06-03 11:31:35 -05:00
wmayer
d4325a6bd8 Part: Add FaceMakerMode of type PropertyEnumeration
This is added to conveniently change the face maker type of an extrusion object.

Hint: A new property is used to avoid to break project files when opening it with an older version.
2024-06-03 11:29:01 -05:00
Kacper Donat
b840e1c992 Gui: Fix document tree background rendering with overlay (Qt6)
This aims to fix rendering of tree view items in Qt6. While I don't
belive that this is a good way to fix this, I am worried that it is the
only way to do ir.

BC BREAK: This change introduces artificial QTreeView widget that can be
targeted using QSS and can be used in the delegate for painting background of
items. `QTreeView::item` would now be used to render background for the
whole row, while each cell can be targeted using `#DocumentTreeItems`
selector.

More details on implementation:
https://stackoverflow.com/questions/78414383/qt6-disable-drawing-of-default-background-for-qtreeview-items/78421604#78421604

Fixes: #13760
2024-06-03 11:28:02 -05:00
Kacper Donat
10ec35abeb Gui: Fix rendering order of transorm gizmo
Transform gizmo (dragger) used SoAnnotation which disables GL_DEPTH_TEST
resulting in rendering elements in wrong order. This PR introduces new
coin node: So3DAnnotation that delays rendering and clears depth buffer before
drawing which results in proper order of elements. As this destroys
information in the depth buffer it is crucial to run this action after
the scene is rendered.
2024-06-03 11:27:22 -05:00
Florian Foinant-Willig
309dd6e30d PD Extrude up to multiple faces or shape 2024-06-03 11:26:19 -05:00
wmayer
04cf749a4a Part: Add AttacherEngine of type PropertyEnumeration
This is added to conveniently change the attacher type of a Part object.

Hint: A new property is used to avoid to break project files when opening it with an older version.

See also forum thread: https://forum.freecad.org/viewtopic.php?t=87891
2024-06-03 11:24:09 -05:00
David Carter
5bb5c2a9cf Materials: Inheritance API
API changes to inherit a material
2024-06-03 11:18:29 -05:00
VM4Dim
2df0f3631d Part: Not needed translation for STEP (file format name) 2024-06-03 11:16:26 -05:00
Kacper Donat
8def94e6f8 Gui: Update sketcher colors after file load
This commit introduces AutoColor property for sketches that when
enabled ensures that sketches are updated with the color of user
preference. It ensures that sketches from different users will be
still visible on different themes.

To ensure backward compatiblity migration strategy is to compute default
value for this property based on the color. If it is non-white (the
default value in FreeCAD) we assume that the change was inentional and
that it should be kept as-is turning automatic coloring off. In other
cases it is enabled by default.

Fixes: FreeCAD#13980
2024-06-03 11:15:36 -05:00
André Althaus
3d217feaa8 Fix visibility icon for link elements
The visibility of link elements must be set with setElementVisible.
This will first try to use that API otherwise it falls back to setting
the Visibility property.
2024-06-03 11:12:57 -05:00
Chris Hennes
de599a9acb Merge pull request #14383 from Ondsel-Development/asm_invalid_limits
Assembly: Fix bad limits automatically
2024-06-03 11:06:50 -05:00
Chris Hennes
696196d8f0 Update translations 2024-06-03 11:04:42 -05:00
Yorik van Havre
c5a350ce57 Tux: Detect and fix BIM addon (#14391)
* Tux: Detect and fix BIM addon - fixes #14072

* [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-06-03 11:03:11 -05:00
Max Wilfinger
92c1141147 Change transform tool task box icon and heading 2024-06-03 11:01:35 -05:00
PaddleStroke
10531f998a TechDraw: Snapping: Fix bug where distanceX dimensions would wrongly compare to all dimensions. 2024-06-03 11:58:58 -04:00
PaddleStroke
6082ef521d TechDraw: Dimension Snapping : Enable different types of dimensions to snap together. 2024-06-03 11:58:58 -04:00
PaddleStroke
298deb7199 TechDraw: Dimension: fix centering snapping. 2024-06-03 11:58:58 -04:00
PaddleStroke
8acc6c534a TechDraw: Smart dimension, fix initial selection by disabling Auto::Transaction 2024-06-03 11:57:33 -04:00
PaddleStroke
25172e42d9 TechDraw: QGVPage: remove copy paste useless leftover. 2024-06-03 11:57:33 -04:00
PaddleStroke
65b6f349bb TechDraw: Smart dimension: fix D shortcut that was wrongly assigned to radius. 2024-06-03 11:57:33 -04:00
PaddleStroke
61712c8a6b TechDraw: Smart dimension : fix radius/diameter command names 2024-06-03 11:57:33 -04:00
PaddleStroke
ae3139e9f3 TechDraw: Smart Dimension: Fix cannot pan with middle mouse click. Fixes #14326 2024-06-03 11:54:37 -04:00
David Carter
6c149cdf95 Materials: Tree Widget selection change
Remove notification when a foldder is selected
rather than a material
2024-06-03 10:52:54 -05:00
Chris Hennes
e11bafc715 Merge pull request #14337 from wwmayer/refactor_sketch_analysis
Sketch: Refactor SketchAnalysis
2024-06-03 10:49:30 -05:00