Commit Graph

21089 Commits

Author SHA1 Message Date
Chris Hennes
7a7c7cc77f 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
f9f08f8805 [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
07eced129a 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
donovaly
52436033b8 rebase to master 2021-09-20 01:37:47 +02:00
donovaly
6ce6a8a1e0 small fixes as suggested by @chennes
therefore also in the helix code
2021-09-20 00:59:17 +02:00
donovaly
069e765db0 [PD] add feature to select pad direction via an edge
This was requested by users in the forum and is indeed very valuable for the usability.
2021-09-20 00:59:16 +02:00
Chris Hennes
1761eb8ce0 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
2a75451460 Template: LGTM - don't catch BaseException 2021-09-19 14:37:47 -05:00
Chris Hennes
ff5bf3e0df PD: LGTM - don't catch BaseException 2021-09-19 14:37:23 -05:00
Chris Hennes
be5971ad8e Path: LGTM - don't catch BaseException 2021-09-19 14:37:11 -05:00
Chris Hennes
97cec75e32 Plot: LGTM - don't catch BaseException 2021-09-19 14:36:51 -05:00
Chris Hennes
68a027cf94 Draft: LGTM - don't catch BaseException 2021-09-19 14:36:38 -05:00
Chris Hennes
84e86793f0 Arch: LGTM - don't catch BaseException 2021-09-19 14:36:12 -05:00
Chris Hennes
8b7da3b0eb PD: Silence LGTM warning about empty block 2021-09-19 13:39:49 -05:00
wmayer
e211b89cf8 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
carlopav
31a8fc5c7d 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
75e0ad6396 Merge pull request #5041 from Syres916/patch-32
[AddonManager] Handle stderr from git status
2021-09-18 11:27:38 -05:00
Chris Hennes
874e333d67 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
2c9a4602a1 [AddonManager] stderr remove translate 2021-09-18 13:05:36 +01:00
troyp76
1a3527c06a 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
a7fb567cd5 [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
823ebacbf9 [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
213bef18f4 AddonManager: Fixed path of gitlab readme 2021-09-17 15:47:00 +02:00
Preslav
1ceaa09d17 Added spring boundary condition 2021-09-17 11:08:08 +02:00
Ajinkya Dahale
421ece90b6 [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
5f4b87035b [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
5fd21f80da TechDraw housekeeping: TechDraw_LandmarkDimension icon fix (#5033)
TechDraw housekeeping: TechDraw_LandmarkDimension icon fix
2021-09-16 18:42:11 -05:00
Ajinkya Dahale
e305dbd49c 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
3ab5dadd82 Mesh: add function section() to Mesh class 2021-09-16 17:31:45 +02:00
wmayer
666f67f8d9 Part: support null shapes in boolean operations 2021-09-16 12:43:32 +02:00
Chris Hennes
d3567b9d90 Merge pull request #5031 from luzpaz/PD-typo
PartDesign: Fix typo in function getContiniusEdges->getContinuousEdges
2021-09-15 11:09:33 -05:00
wmayer
89e4f21008 MeshPart: show a more useful error message if the currently selected object cannot be tessellated 2021-09-15 17:09:54 +02:00
Roy-043
08aa7154c1 TechDraw: Changed "TechDraw_Dimension_Link" -> "TechDraw_LinkDimension" (#5032)
* Update and rename TechDraw_Dimension_Link.svg to TechDraw_LinkDimension.svg

Icon name should match the command name.
2021-09-15 10:08:09 -05:00
luz paz
7fb4dd37e4 PD: Fix typo in function getContiniusEdges->getContinuousEdges
Related to PR #5029
2021-09-15 10:11:37 -04:00
wmayer
9fe1f56824 PD: fix ProfileBased::Restore to not affect sub-classes that need to handle changed property types/names 2021-09-15 15:45:24 +02:00
wmayer
e273954135 PD: move handling of changed properties of Transformed to handleChangedPropertyType 2021-09-15 15:20:40 +02:00
wmayer
6176e815e8 PD: move handling of changed properties of the Chamfer/Fillet to handleChangedPropertyType 2021-09-15 15:14:14 +02:00
wmayer
62723f3dfd Part: move handling of changed properties of the Primitive class to handleChangedPropertyName and handleChangedPropertyType 2021-09-15 14:45:50 +02:00
wmayer
4327cd5ccb Mod: make sure to call the base class' handleChangedPropertyType 2021-09-15 14:07:32 +02:00
wmayer
33f3fa6865 Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes 2021-09-14 23:01:29 +02:00
wmayer
ce285ea265 Mod: fix warning [-Wmacro-redefined] 2021-09-14 22:57:17 +02:00
mwganson
d02e708e75 [Spreadsheet] Prevent infinite loop when copy/paste of non-rectangular selection 2021-09-14 15:15:59 -05:00
wmayer
40d2955c66 Base: split export/import macros from FCConfig.h and move them to FCGlobal.h
The FCGlobal.h can be included in a Global.h header file of an extension module.

The reason is that some IDEs (e.g. QtCreator) fails to detect the export/import macros when only defined in the PreCompiled.h files and thus raise a parser warning.
2021-09-14 16:40:30 +02:00
Megidd Git
c3df0db4f7 Mesh: fix infinite loop when repairing mesh facet indices 2021-09-12 09:13:57 +04:30
Yorik van Havre
8a526a9ba4 Merge pull request #4935 from edi271/TechDrawToolsEdi
[TD] added TechDrawTools Commands
2021-09-09 11:39:02 +02:00
Yorik van Havre
9fe0442729 Merge pull request #5018 from luzpaz/sketcher-cstring-fix
Sketcher: fix mislabeled .ui cstring tag
2021-09-09 11:37:39 +02:00
luz paz
391a9e8d23 Draft: whitespace tweak 2021-09-08 10:22:26 -04:00
luz paz
c03d4b1c10 Draft: fix comment typo 2021-09-08 10:22:26 -04:00
luz paz
6642e28826 Path: Fix PathScripts/PathJobGui.py typo bug 2021-09-08 10:22:26 -04:00
luz paz
e72da8babd Sketcher: fix mislabeled .ui cstring tag
Closes https://github.com/FreeCAD/FreeCAD-translations/issues/59  
Thanks @jakub-swierk for the patch!
2021-09-08 10:21:43 -04:00