Chris Hennes
c5491d64e2
Arch: LGTM - don't catch BaseException
2021-09-19 14:36:12 -05:00
Chris Hennes
9cc9e0d3ab
Merge pull request #5044 from chennes/lgtmAppDeclHidesParam
...
[App] Fix LGTM warning decl hides param
2021-09-19 13:46:42 -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
Chris Hennes
373246858e
[App] Fix LGTM warning decl hides param
2021-09-19 12:31:24 -05:00
wmayer
44272480f4
App: handle empty, . or .. as parent directory
2021-09-19 18:06:47 +02:00
wmayer
b067a13a91
Tools: port example of embedding to Py3
2021-09-19 18:01:24 +02:00
Chris Hennes
839952c1a2
Merge pull request #5043 from chennes/lgtmLinkDeclHidesParam
...
[App] LGTM fix - rename loop variable
2021-09-18 23:21:11 -05:00
Chris Hennes
ff29bb1453
[App] LGTM fix - rename loop variable
...
LGTM complains that the use of "obj" as the loop variable here hides the
parameter "obj". To silence the warning, rename the loop variable.
2021-09-18 23:18:51 -05: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
860f46ac6c
Merge pull request #4792 from heewa/abort-quit-on-failed-save
...
[Gui] Fix app quitting despite failing to save project
2021-09-17 19:46:01 -05: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
Preslav
fb0e670d8a
Added spring boundary condition
2021-09-17 11:08:08 +02:00
Preslav
354987b45d
Ammending stiffness units
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
Yorik van Havre
7a1f16774d
Merge pull request #5038 from mwganson/macros
...
[Macros Dialog] begin searching for unique name for duplicate functio…
2021-09-17 11:02:31 +02:00
wmayer
9a23ffb35a
Gui: fix typos
2021-09-17 08:28:34 +02:00
mwganson
a5076e316d
[Macros Dialog] begin searching for unique name for duplicate function with current numbers rather than from 001
2021-09-17 00:22:39 -05: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
Ajinkya Dahale
c123bc2bf8
[Core] (Partially?) Fix data loss on dir rename ( #4996 )
...
* Fix lost filename in err msg
In some circumstances, FileExceptions are constructed empty, then have a
filename assigned to them, but the error message in these scenarios is
left as the default "unknown" one, which is sometimes shown to users.
This change fixes that case to be consistent with instances that are
constructed with the filename.
The exception can happen when trying to save the file in a location that does
not exist, or when the user does not have permission to write there. If it
comes when saving after closing the document, all previous changes can be lost.
Partially fixes issue #4098 .
Co-authored-by: Heewa Barfchin <heewa.b@gmail.com >
2021-09-16 12:06:29 -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
Roy-043
85a84a7176
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
909030859d
PD: Fix typo in function getContiniusEdges->getContinuousEdges
...
Related to PR #5029
2021-09-15 10:11:37 -04:00
wmayer
fff27ee78b
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
2af9c5038e
PD: move handling of changed properties of Transformed to handleChangedPropertyType
2021-09-15 15:20:40 +02:00
wmayer
ba2ad05983
PD: move handling of changed properties of the Chamfer/Fillet to handleChangedPropertyType
2021-09-15 15:14:14 +02:00
wmayer
44eeae7286
Part: move handling of changed properties of the Primitive class to handleChangedPropertyName and handleChangedPropertyType
2021-09-15 14:45:50 +02:00
wmayer
fa86b0216e
Mod: make sure to call the base class' handleChangedPropertyType
2021-09-15 14:07:32 +02:00
wmayer
2295c4b9a3
Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes
2021-09-14 23:01:29 +02:00
wmayer
9ce79bf3c7
Mod: fix warning [-Wmacro-redefined]
2021-09-14 22:57:17 +02:00
wmayer
ed003cdc59
Merge branch 'master' of github.com:FreeCAD/FreeCAD
2021-09-14 16:42:43 +02:00
wmayer
ba2341de33
Gui: fix compiler warnings: [-Wunused-parameter]
2021-09-14 16:42:30 +02:00
wmayer
a40d37a980
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
Chris Hennes
c970509256
Merge pull request #4771 from Syres916/patch-16
...
[Gui] Preferences - Selection Fix Bug for new...
2021-09-14 09:39:49 -05:00
Chris Hennes
2abe1611f7
Merge pull request #4791 from heewa/fix-lost-err-msg
...
[Base] Fix lost filename in err msg
2021-09-14 09:23:03 -05:00
Yorik van Havre
6acf83b2b0
Merge pull request #5027 from 0penBrain/rotation
...
[Core] Rotation : fix gimbal lock handling
2021-09-14 14:49:38 +02:00
0penBrain
cdbf7acc80
[Core] Rotation : fix gimbal lock handling
...
+ fix Euler representation on GUI
2021-09-13 18:34:58 +02:00
Yorik van Havre
022bb81754
Tools: Updated crowdin script after PR #5021
2021-09-13 15:40:36 +02:00
Yorik van Havre
c2f72ee8de
Merge pull request #5021 from chennes/translatorImprovements
...
[GUI] Add prefs for translators
2021-09-13 15:38:23 +02:00
Yorik van Havre
163a24feef
Merge pull request #5020 from 0penBrain/placement
...
[Gui] Edit/Placement not active when no object selected
2021-09-13 14:30:04 +02:00
Yorik van Havre
3565fbaab5
Merge pull request #5022 from Megidd/fix-infinite-loop
...
Mesh: Infinite loop when repairing mesh facet indices
2021-09-13 11:36:21 +02:00