Commit Graph

37100 Commits

Author SHA1 Message Date
Chris Hennes
161b0fb6ee Merge pull request #12982 from bgbsww/bgbsww-toponamingFeatureMirroring
Toponaming/Part feature mirroring and offset
2024-03-20 18:16:36 -05:00
bgbsww
46c32a8c1b Add c++ testing framework for PartDesign, ShapeBinder 2024-03-20 14:45:20 -05:00
wmayer
655d5e4fbd Base: enable user site-packages for Py >= 3.11
For more details see: https://forum.freecad.org/viewtopic.php?p=748296#p748296
2024-03-20 19:24:45 +01:00
wmayer
e63e9981dd Drawing: Fix build failure for MSVC and PCH 2024-03-20 19:23:54 +01:00
Roy-043
fa49577838 Draft: Improve logic of Draft_Label texts
The proposed code fixes the following issues:
1. There is no check if the target object itself has a property that matches the label type.
2. If a subelement is selected that does not have the label type property, the value from the main object is displayed instead.
3. The default text is an empty string.

Example:

Currently If you select a vertex of a wire, and select "Length" as the label type, you will get the length of the wire. With the new code the text will then be "Length not available for (sub)object".

Forum topic (issue #1):
https://forum.freecad.org/viewtopic.php?t=86222
2024-03-20 18:29:01 +01:00
wmayer
41de357e8f Issue #11989: Segfault on "Move Object to Other Body"
The reason of the crash is a static_cast of an unknown type that causes undefined behaviour. The feature AdditiveLoft has the
property Section of type PropertyLinkSubList but the function does a static_cast to PropertyLinkList.

The solution is to use a dynamic_cast that returns null if the cast fails.
2024-03-20 18:06:23 +01:00
wmayer
0ae1ec462d Fixes #13011: Failure of test additionOperators when built with Qt6 2024-03-20 18:05:13 +01:00
wmayer
815458435d Tests: add test for attach extension
Create two plane features and map the second on the first plane with map mode 'FlatFace'
2024-03-20 18:04:10 +01:00
Priit Laes
c2cfc2f8cc fedora: Drop Fedora 34 support
Fedora 34 upstream support stopped 07.06.2022, so no point of having
support for it in our build scripts either.
2024-03-20 15:31:17 +02:00
Priit Laes
16cf0e0689 fedora: Remove unneeded dos2unix dependency
Now that the source of the issue is fixed (previous commit), remove
the workaround.
2024-03-20 15:29:39 +02:00
Priit Laes
166c5d7523 test: Switch unittestgui.py to use unix line endings 2024-03-20 15:25:52 +02:00
Yorik van Havre
70f2f14702 Draft: a bit more contrast to the grid 2024-03-20 13:35:40 +01:00
Yorik van Havre
d0a87573c9 Draft: Allow to change grid color in WP taskpanel 2024-03-20 12:20:31 +01:00
oscarale
e4edf3afa6 Arch: Added longname and description to ArchSpace Text variables 2024-03-20 10:36:31 +01:00
Chris Hennes
cf37713fc6 Merge pull request #12943 from bgbsww/bgbsww-toponamingFeatureChamfer
Toponaming/part features chamfer, fillet; dependencies and test updates
2024-03-19 16:53:30 -05:00
Zheng, Lei
4697de1c2d Toponaming/Part: bring in FeatureExtrusion and dependencies 2024-03-19 17:33:09 -04:00
bgbsww
7a520a4ea6 Toponaming/Part: Clean and add tests for FeatureMirroring and FeatureOffset 2024-03-19 12:44:38 -04:00
bgbsww
28cb508489 Toposhape/Part: Cleanup FeatureFillet, FeatureChamfer and dependencies 2024-03-19 11:10:18 -04:00
Zheng, Lei
4f3d23fe98 Toposhape/Part: Transfer in FeatureFillet, FeatureChamfer and dependencies 2024-03-18 22:05:25 -04:00
Zheng, Lei
b4bb92465f Toponaming/Part: Transfer in FeatureMirroring and FeatureOffset 2024-03-18 19:43:19 -04:00
wmayer
f5baef888c Gui: fix several regressions caused by PR #12035
* fix hard crash in MainWindow::_updateActions() if no MDI view exists
* in MDIView::buildWindowTitle() use the label of the document because this changes when saving it while the name is immutable
* fix const correctness in MDIView::buildWindowTitle()
* do not set the modified flag of the main window in MDIView::buildWindowTitle() but in the calling instance
* move setting the main window title to Application::viewActivated to reduce code duplication
* fix missing application name if FreeCADGui is loaded as Python module
2024-03-18 23:27:51 +01:00
luzpaz
5839134e95 Fix various typos throughout the codebase (#13029)
* Fix various typos throughout the codebase

* [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-03-18 16:54:30 -05:00
Chris Hennes
f94c2051c0 Merge pull request #12957 from bgbsww/bgbsww-toponamingMakeElementOffset
Toponaming/Part make element offset
2024-03-18 16:07:14 -05:00
sliptonic
4570612716 Merge pull request #12909 from FlachyJoe/fix-variablelink
[Link] Fix SIGSEGV with LinkCopyOnChange=Tracking
2024-03-18 11:57:00 -06:00
Yorik van Havre
aa47a7fe6b Draft: Made get_type aware of IFC objects 2024-03-18 18:50:56 +01:00
Yorik van Havre
1b762f5063 Arch: Allow the IFC exporter to append to an existing IFC file 2024-03-18 18:50:28 +01:00
sliptonic
254d8ac7f0 Merge pull request #13006 from maxwxyz/assembly-icons
UI: Assembly - update too similar icons
2024-03-18 11:38:36 -06:00
André Althaus
af0f263179 Fix regression in pattern reference selection
Reference selection in the GUI was accidentially changed to only
allow specific types of objects, preventing e.g. selection of a DatumPlane
for mirroring.

This restores the previous functionality.
2024-03-18 18:31:12 +01:00
sliptonic
f02c2c5441 Merge pull request #12899 from yorikvanhavre/arch-array-ifc
Arch: Fixed IFC export of arrays
2024-03-18 11:25:32 -06:00
Max Wilfinger
4ca8e3b283 add constraint perpendicular to the context menu if a conic and line is selected. 2024-03-18 13:24:16 -04:00
PaddleStroke
b3fe5bba28 Sketcher: Chamfer tool (and fillet refactor) 2024-03-18 13:23:54 -04:00
PaddleStroke
9d43e7fda7 Sketcher : fix error in className of CmdSketcherCompHorizontalVertical 2024-03-18 13:23:54 -04:00
sliptonic
5c81e7bd89 Merge pull request #12878 from maxwxyz/view-command-group
UI/UX: Create a toolbar command group for default views
2024-03-18 11:21:32 -06:00
lyphrowny
6bdff4769e FEA: fix 1d beam cross section orientation (#12833)
* FEA: fix 1d beam cross section orientation

* FEM: revert 1,2-directions to FreeCAD way; fix normal direction for z<0

* FEM: change 1-direction to +y axis

Previous commit changes the 1-direction to -y axis, however originally it was directed at +y axis. This commit makes the 1-direction face +y axis

* FEM: update cantilever tests

* FEM: relax math.isclose by adding abs tolerance
2024-03-18 18:16:10 +01:00
PaddleStroke
555d06e875 Navicube : Add missing 'Fit selection' menu entry. 2024-03-18 17:37:40 +01:00
Max Wilfinger
241ce40b5f use setWindowModified() to indicate modified state and window title 2024-03-18 17:36:20 +01:00
Max Wilfinger
b4ad517ed6 display current active document in main window title 2024-03-18 17:36:20 +01:00
PaddleStroke
65da0c1d6f Sketcher: Rename 'FocusOut' signal to 'TabOrEnterPressed' 2024-03-18 10:02:00 +01:00
wandererfan
b4e11db78d [TD]use weak_ptr as deletion guard
- prevent crash if dimension deleted by Python while dialog
  is open
2024-03-17 13:22:51 -04:00
bgbsww
93e823da30 Toposhape/Part: clean and add tests 2024-03-17 10:24:58 -04:00
Zheng, Lei
b710683ce5 Toposhape/Part: Transfer in makEOffset, makEOffsetFace, makEOffset2d 2024-03-17 10:24:58 -04:00
bgbsww
3bc87a9cf5 Clean and add tests for makeElementSolid 2024-03-17 10:24:58 -04:00
bgbsww
d0562d0c3a Toposhape/Part: Clean GeneralFuse, Fuse, Cut; add tests; tweak other tests 2024-03-17 10:24:58 -04:00
wmayer
2326d52a78 [TD]Refactor LTNP correction code for Dimensions
- additional geometry types

- add method to handle line like bsplines

- handle deleted ref body feature

- add test for empty savedGeometry

- add switch for matcher/LTNP on/off
2024-03-17 08:56:34 -04:00
Max Wilfinger
a6bb16ae78 update assembly icons 2024-03-17 11:21:16 +01:00
PaddleStroke
a7b78530da DrawSketchController: Fix crazy focus behavior in tool widget (see in the translate tool). 2024-03-17 08:15:54 +01:00
edi271
934395913a [TD] AxoLengthDimension: use getScale() instead of Scale 2024-03-16 20:00:27 -04:00
pavltom
8a4f13fb16 [TechDraw] Unify Projection Group parent linking 2024-03-16 19:59:49 -04:00
wmayer
fc8f93d437 Sketch: fixes #12480: Sketcher_CreateBSplineByInterpolation Unhandled unknown C++ exception
The interpolation of a BSpline can fail and then OCC throws an exception. Because this OCC exception isn't handled by the DrawSketchHandler the core system handles it as unknwon C++ exception
2024-03-17 00:47:43 +01:00
luzpaz
0fc8adc7c9 TD: fix whitespace in CommandPositionSectionView.py
Fix header whitespace
2024-03-17 00:46:19 +01:00