Commit Graph

25086 Commits

Author SHA1 Message Date
Chris Hennes
7c7b30e79d [Spreadsheet] Fix missing header context menu 2021-10-31 23:38:11 -05:00
Chris Hennes
8aa06d30b2 Merge pull request #5130 from Roy-043/Draft-Fix-merge-layers
Draft: Fix merge layers
2021-10-31 16:15:10 -05:00
Chris Hennes
9accfca831 Merge pull request #5133 from Roy-043/Draft-Fix-angle-dimension-issue
Draft: Fix angle dimension issue
2021-10-31 15:45:10 -05:00
Chris Hennes
3cdfe38978 Merge pull request #4952 from realthunder/FixDocumentRestore
Fix external document loading
2021-10-31 10:36:12 -05:00
wmayer
ad458c423a PD: [skip ci] if no active body exists then by default pre-select the first option to create a new body 2021-10-31 12:33:48 +01:00
Chris Hennes
6427afbe6c Merge pull request #5132 from luzpaz/Draft-whitespace
Draft: Fix superfluous whitespace in translations + misc. typos
2021-10-30 22:10:27 -05:00
wmayer
e4851a11b4 Part: fixes #0004774: Datum plane or line is not available in sketch in another body via binder 2021-10-30 22:28:57 +02:00
luzpaz
95a0c9c008 Add requested revision by @chennes
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2021-10-30 15:20:28 -04:00
luzpaz
005a5d8cd7 Add requested revision by @chennes
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2021-10-30 15:20:28 -04:00
luz paz
b90fefa1ca Refined code formatting for uniformity 2021-10-30 15:20:28 -04:00
luzpaz
fa7ea019f8 Add requested revision by @chennes
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2021-10-30 15:20:28 -04:00
luz paz
8aab47fb06 Draft: Fix superfluous whitespace in translations + misc. typos 2021-10-30 15:20:28 -04:00
wmayer
42174a7b13 Part: in ViewProviderSpline use the ViewProviderSplineExtension to avoid code duplication 2021-10-30 17:57:52 +02:00
wmayer
4d7f2ef6e5 Part: [skip ci] include PartGlobal.h in ViewProviderExt.h 2021-10-30 17:57:11 +02:00
wmayer
91aa308cba Part: [skip ci] add PartGlobal.h with export/import macros 2021-10-30 17:29:11 +02:00
wmayer
0672b879c6 dist-git: make script working again for Py3 and Linux 2021-10-30 14:50:00 +02:00
Zheng, Lei
c349e78f45 Minor code change according to suggestions 2021-10-30 12:30:45 +08:00
Zheng, Lei
ba4c992eaa App: use enum in API Application::getDocumentByPath() 2021-10-30 11:03:55 +08:00
Zheng, Lei
ad9ad30c00 App: fix external document loading
The problem happens when partial loading is enabled. If document A
contains a link to some object in document B, it will load B as partial
document with only that object and its necessary dependencies. But if
document A contains another link to some object in document C which also
has a link to some object in document B, the link in document C may not
be restored, because document B is partially loaded without the linked
object. This patch will check for this case and reload document B for
more objects.

See an example reported in
https://forum.freecadweb.org/viewtopic.php?p=495078#p495078
2021-10-30 11:03:52 +08:00
Zheng, Lei
39e2381f29 Part: fix unnecessary document 'modified' status 2021-10-30 11:02:39 +08:00
Zheng, Lei
c067e0d7db Gui: fix document 'modified' status on view property change 2021-10-30 11:02:39 +08:00
Uwe
188b138545 Merge branch 'master' into PDEdit 2021-10-30 00:30:14 +02:00
wmayer
5583a42c07 Unit test: [skip ci] gimbal lock 2021-10-29 20:02:09 +02:00
0penBrain
ffa6b3ce5e [PartDesign] Remove useless function overriding
Double-click is already handled by PartDesign::ViewProvider::doubleClicked()
 Overridings in Loft & Pipe brings no specific behavior
 By removing overridings, behavioral consistency is improved both in ...
 ... undo commands & body activation management when PartDesign items ...
 ... are double-clicked
2021-10-29 17:30:06 +02:00
wmayer
8f08fea670 Gui: add class RotationHelper to reduce code duplication of PropertyRotationItem and PropertyPlacementItem 2021-10-29 15:59:55 +02:00
wmayer
2e5b29d180 Gui: implement editor for PropertyRotation 2021-10-29 12:41:03 +02:00
wmayer
c74d2b8dd5 App: add class PropertyRotation 2021-10-29 12:40:32 +02:00
Roy-043
84c517e333 Draft: Fix angle dimension issue
If the end points of the selected edges for an angular dimension were (almost) coincident with their intersection, random angles could be calculated. In essence a floating point inaccuracy issue.
2021-10-28 19:29:59 +02:00
wmayer
b3bdf5967b Sketcher: [skip ci] handle coincident points when trying to create arc/circle 2021-10-28 17:03:11 +02:00
Bernd Hahnebach
67a7f038bf Arch: import IFC, Materials, make merge materials working on duplicate label setting 2021-10-28 16:02:06 +02:00
Bernd Hahnebach
b679c15164 Arch: import IFC, Material, small improvement, no changes 2021-10-28 15:45:15 +02:00
Bernd Hahnebach
5be99d7469 Arch: import IFC, Materials, small code improvements, no changes 2021-10-28 15:43:35 +02:00
Bernd Hahnebach
5f8422e7ea Arch: import IFC, use doc identifier instead of FreeCAD.ActiveDocument 2021-10-28 09:49:51 +02:00
Bernd Hahnebach
636be32ec0 Arch: IFC export and import, some code formating (only very clearly ones) 2021-10-27 23:10:01 +02:00
wmayer
c3f10e8e62 Base: [skip ci] C++11: modernize use nullptr (replaces NULL or 0) 2021-10-27 19:26:26 +02:00
wmayer
b803d987b9 Base: [skip ci] handle gimbal lock when computing Euler angles 2021-10-27 17:02:07 +02:00
wmayer
16c08ec96f Base: [skip ci] in Rotation class allow to set angle in radian
App.Rotation(axis, angle) still defines the angle in degree
App.Rotation(axis, Degree=angle) does the same as above
App.Rotation(axis, Radian=angle) defines the angle in radian
2021-10-27 10:59:34 +02:00
wmayer
e424faa131 Base: harmonize Python API of Rotation class 2021-10-27 10:40:35 +02:00
Roy-043
d019e28c08 Draft: Fix merge layers
The "Merge layer duplicates" Tree view context menu option for LayerContainers did not work.

Additionally:
- Using `openTransaction` and `commitTransaction` is required for the `merge_by_name` function but also for the `add_layer` function. Otherwise undo-redo does not work properly.
- Have replaced `translate("Draft", ...)` with `_tr(...)`.
2021-10-27 08:32:10 +02:00
Bernd Hahnebach
6d6559e99c Arch: import IFC, replace project, comment debug print 2021-10-27 08:17:48 +02:00
Roy-043
37e58de64f Std: Fix URLs in CommandStd.cpp
Updated all URLs to the new freecad.org domain.
2021-10-27 08:08:39 +02:00
wmayer
497c1895e8 Base: [skip ci] expose Rotation.fromEuler() to Python 2021-10-27 00:34:36 +02:00
luz paz
e780af1184 Arch: add missing paranthesis to strings
Found while approving translations in crowdin
2021-10-26 22:24:38 +02:00
Bernd Hahnebach
c581a5b3dc Arch: import IFC, fix import if replace project and only one building or one storey 2021-10-26 22:18:37 +02:00
wmayer
3c825565eb Gui: [skip ci] fix regression not to allow to have selected several objects when opening the placement dialog 2021-10-26 21:55:15 +02:00
wmayer
f275893f5f Spreadsheet: [skip ci] update translation 2021-10-26 17:40:48 +02:00
wmayer
82d147b0a3 Spreadsheet: [skip ci] add sub-menu text for translation 2021-10-26 17:40:21 +02:00
wmayer
3f6986c881 Base: implement a way to test translator for testing purposes 2021-10-26 16:58:42 +02:00
Bernd Hahnebach
6ac93003ee Arch: import IFC, Layers, do not overwrite the imported object color and line color with the default layer values 2021-10-26 16:42:07 +02:00
Bernd Hahnebach
8c3c9d4a1c Arch: import IFC, fix new preference for not importing Layer 2021-10-26 14:02:58 +02:00