Commit Graph

20207 Commits

Author SHA1 Message Date
Yorik van Havre
117328250e Merge pull request #5055 from Roy-043/Draft_fix_wpproxy_view_prop_group
Draft: fix wpproxy view properties group
2021-09-23 16:41:14 +02:00
Roy-043
cfd4704024 Draft: fix wrong type for layer transparency
Also fixed a typo.
2021-09-23 16:25:40 +02:00
wmayer
bef80f31fa Web: BrowserView::setWindowIcon must be declared as slot 2021-09-23 14:28:36 +02:00
Roy-043
e2e16e60dc Draft: fix wpproxy view properties group
View properties of a WP proxy should not appear in the Arch group.
2021-09-23 12:44:17 +02:00
wmayer
21ba35adab Gui: move PythonWrapper class to its own source file 2021-09-22 23:30:03 +02:00
Abdullah Tahiri
6b9545fb0a Sketcher: Fix hide/show operations on Constraint Widget taking too long
=======================================================================

Fixes delay reported here:
https://forum.freecadweb.org/viewtopic.php?f=17&t=60569#p519685
2021-09-22 18:30:03 +02:00
Abdullah Tahiri
a7dc075790 Sketcher: Show All and Hide All buttons on Constraint Widget 2021-09-22 18:29:41 +02:00
Abdullah Tahiri
4cb0e4125b Sketcher: Constraint hiding/showing not working properly for combined constraint icons
======================================================================================

Hiden constraint icons should not be grouped into combined icons. This may also improve selection of combined (stacked) icons.

fixes #4590
2021-09-22 18:29:21 +02:00
Abdullah Tahiri
0facbfc140 Sketcher: Tracking of constraint visibility via contraint widget filter
=======================================================================

Add new option so that the 3D view constraint visibility track the constraint widget filter selection.

It maintains internally two mutually exclusive virtual spaces and the ability to select one as visible (the other remaining hiden).
2021-09-22 18:29:10 +02:00
Abdullah Tahiri
113b78c1d8 Sketcher: Constraint Widget extended filter
===========================================

- Remove "Normal" as it did exactly the same as "All".
- Add "Geometric" to filter only Geometric (non datum) constraints
- Add all individual constraint types to filter.

As per request:
https://forum.freecadweb.org/viewtopic.php?p=534176#p534176
2021-09-22 18:28:59 +02:00
Chris Hennes
519caa51b5 Merge pull request #5047 from chennes/lgtmMeshEmptyBlocks
[Mesh] Implement high-precision NASTRAN GRID* element
2021-09-22 09:22:48 -05:00
wmayer
a6ae1d9c56 port to MSYS2/clang: suppress 'undefined-var-template' warnings 2021-09-22 14:09:07 +02:00
Bernd Hahnebach
61d95e9c5e Test: remove not needed u before py3 unicode string 2021-09-22 08:07:47 +02:00
Przemo Firszt
5bba8795b8 [UnitTest] Fix UnitTests - use utf-8
On some systems there is a problem with utf-8 during testing. This
commit is trying to address it. Tested only on ubuntu 20.04

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2021-09-22 08:07:38 +02:00
Chris Hennes
7e2e7f625c Web: Fix MSVC compile error in BrowserView (part 2) 2021-09-21 13:08:29 -05:00
Chris Hennes
5959a3b17d Web: Fix MSVC compile error in BrowserView 2021-09-21 12:56:34 -05:00
Yorik van Havre
fc82a54b97 Web: Extended openBrowserHTML to allow custom icon 2021-09-21 15:45:32 +02:00
Yorik van Havre
d5ce545531 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2021-09-21 15:43:15 +02:00
Przemo Firszt
f950cfab7b [UnitTest] Replace deg symbol with deg
unittest cannot handle the symbol on some systems. deg is a safe
solution.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2021-09-21 15:16:13 +02:00
Yorik van Havre
08d8c97c76 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2021-09-21 13:11:52 +02:00
wmayer
47fe2babac port to MSYS2/clang 2021-09-20 18:15:44 +02:00
Chris Hennes
5ccc07eee0 Merge pull request #5030 from mwganson/spreadsheet
[Spreadsheet] Prevent infinite loop when copy/paste of non-rectangular selection.
2021-09-20 11:05:11 -05:00
Chris Hennes
9b57a7867a [Mesh] Implement GRID* input in NASTRAN
LGTM complained about two empty blocks in the Mesh NASTRAN reader: those
blocks related to the code skipping the input of the high-precision GRID
element. This commit adds support for that element.
2021-09-20 10:32:10 -05:00
Roy-043
65a60fa639 Draft: Fix annotation scale to label issue.
The scale_to_label function did not handle scale 5:1, 10:1 or 20:1 properly.
2021-09-20 11:01:59 +02:00
Chris Hennes
28127c5f2d Merge pull request #5046 from carlopav/Draft_fixSnapGrid
Draft: fix Snapper GridSnap not working over a face
2021-09-19 16:36:38 -05:00
Chris Hennes
105dd61e84 Template: LGTM - don't catch BaseException 2021-09-19 14:37:47 -05:00
Chris Hennes
ccaa439d1a PD: LGTM - don't catch BaseException 2021-09-19 14:37:23 -05:00
Chris Hennes
38eb31e01d Path: LGTM - don't catch BaseException 2021-09-19 14:37:11 -05:00
Chris Hennes
985438f2b2 Plot: LGTM - don't catch BaseException 2021-09-19 14:36:51 -05:00
Chris Hennes
f99059e371 Draft: LGTM - don't catch BaseException 2021-09-19 14:36:38 -05:00
Chris Hennes
c5491d64e2 Arch: LGTM - don't catch BaseException 2021-09-19 14:36:12 -05:00
Chris Hennes
6c532c2fda PD: Silence LGTM warning about empty block 2021-09-19 13:39:49 -05:00
wmayer
8cbd92d874 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
carlopav
967a97e9a8 Draft: fix Snapper GridSnap not working over a face
ref. https://forum.freecadweb.org/viewtopic.php?f=23&t=62274&sid=4c9d07255e4f0db219b661c345768319

If the cursor is over a Face and no SnapCenter is active, the snapToObject method returns the current cursor point instead of None. Doing so the snap() method does not check for extension and grid snaps.
It seems this is a bug since the snap() already contains the deleted code.

One note: the no snaps case was moved before the lastObj setting, since if no snap point was found, it's not right to set it to a non snapped object.
2021-09-19 14:31:44 +02:00
Chris Hennes
1aeefd99c1 Merge pull request #5041 from Syres916/patch-32
[AddonManager] Handle stderr from git status
2021-09-18 11:27:38 -05:00
Chris Hennes
502f02dd9c Merge pull request #5039 from troyp76/PartDesignChamferImprovement
Part Design: Improved chamfer behaviour when faces are selected and non equal chamfer types are used
2021-09-18 09:32:45 -05:00
Syres916
842abfcee4 [AddonManager] stderr remove translate 2021-09-18 13:05:36 +01:00
troyp76
b3dbcd9ff8 Improved chamfer behavior when faces are selected
Improved chamfer behavior when faces are selected and non equal chamfer types are used
2021-09-18 22:03:28 +10:00
Syres916
de3e44a117 [AddonManager] Handle stderr from git status
See discussion https://forum.freecadweb.org/viewtopic.php?f=10&t=62265
2021-09-18 11:19:42 +01:00
Chris Hennes
9afc4503ab [Sketcher] Refactor split code
LGTM complains about using continue statements inside a loop
whose condition is always false. In addition, the C++ core guidelines
recommend against using the do...while construct, and in this case it
was really serving as a goto, just hiding the actual goto keyword.
This commit replaces the loop and continue structure with simple
conditionals.
2021-09-17 23:43:12 +02:00
Yorik van Havre
3ebab330f4 AddonManager: Fixed path of gitlab readme 2021-09-17 15:47:00 +02:00
Preslav
fb0e670d8a Added spring boundary condition 2021-09-17 11:08:08 +02:00
Ajinkya Dahale
0327a09879 [FEM] Add backward compatibility for simple hardening
Prior to a recent commit (or this, if squashed), yield points of a non-linear
material with simple hardening were stored as three different properties. These
changes consolidate them into the new `YieldPoints` property.
2021-09-17 11:07:16 +02:00
Ajinkya Dahale
16a82d1eb7 [FEM] Add tools for more yield points in simple hardening materials
String List instead of String should allow for arbitrarily many entries,
theoretically.

Note the defaults previously in `YieldPoint1` an `YieldPoint2` were arbitrary.
Now the list is kept empty by default.

Fixes issue #4720.
2021-09-17 11:07:16 +02:00
Roy-043
fa2851a7e8 TechDraw housekeeping: TechDraw_LandmarkDimension icon fix (#5033)
TechDraw housekeeping: TechDraw_LandmarkDimension icon fix
2021-09-16 18:42:11 -05:00
Ajinkya Dahale
28d8d808a8 PartDesign: Add new need active body dialog with option to choose body (#4949)
* [PD] Add new need active body dialog

Intended for use wherever an active body is needed but none exists. The dialog
contains a list with the bodies present in the document, with an extra option to
make a new body. Custom text can be provided if needed.

This commit also replaces the warnings used by "new sketch" and "primitive"
command with this new dialog.

Addresses issue #4288.
2021-09-16 12:27:46 -05:00
wmayer
5694f08f15 Mesh: add function section() to Mesh class 2021-09-16 17:31:45 +02:00
wmayer
614e247dff Part: support null shapes in boolean operations 2021-09-16 12:43:32 +02:00
Chris Hennes
cbb682c080 Merge pull request #5031 from luzpaz/PD-typo
PartDesign: Fix typo in function getContiniusEdges->getContinuousEdges
2021-09-15 11:09:33 -05:00
wmayer
703b824526 MeshPart: show a more useful error message if the currently selected object cannot be tessellated 2021-09-15 17:09:54 +02:00