Commit Graph

23918 Commits

Author SHA1 Message Date
Yorik van Havre
3d3f93470b Merge pull request #4789 from chennes/fixOpenSCADMissingHide
[OpenSCAD] Fix missing hide() on linear extrude
2021-05-18 16:28:50 +02:00
Yorik van Havre
02017f039e Merge pull request #4793 from donovaly/TD-centerline-fixes
[TD] fix centerline crashes and bugs
2021-05-18 16:28:31 +02:00
Yorik van Havre
5161d99b48 Merge pull request #4795 from luzpaz/Crowdin-Draft-whitespace
Crowdin: remove superfluous whitespace from translation
2021-05-18 16:24:42 +02:00
Heewa Barfchin
2f49d4ee56 Path: check for empty before using - fixes #4645
In a few locations, python objects are used without checking if they
exist and are non-null, which throws missing attribute exceptions. The
fix is to simply check first.
2021-05-17 18:45:11 -04:00
luz paz
71faff2a0a Crowdin: remove superfluous whitespace from translation
ref: https://crowdin.com/translate/freecad/548/en-en?filter=basic&value=2#6587168
2021-05-17 10:51:05 -04:00
luz paz
7f4ac1d4f8 Crowdin: fix mistake in Draft Preferences text [skip ci]
ref: https://crowdin.com/translate/freecad/548/en-en?filter=basic&value=13#6577122
2021-05-17 10:28:43 -04:00
Bernd Hahnebach
a378b6b66f Arch, import IFC, fix in materials 2021-05-16 06:34:02 +02:00
donovaly
b981f9056c [TD] fix centerline crashes and bugs
the PR fixes the following things:
- change the way centerlines between 2 lines are calculated. The current implementation leads to many bugs and even crashes (e.g. when the 2 selected lines are parallel ones of a square). There are different forum threads from the last 1.5 years.
The new endpoint line sorting is the one described here: https://forum.freecadweb.org/viewtopic.php?f=35&start=20&t=44255&sid=989a668890f954c13ef81e4a04ee6912#p501179

- as consequence the erroneous and misleading line end flipping can go and is removed (only used internally)

- when creating a new centerline, you see it immediately

- when creating a new or editing an existing centerline and press Cancel, the creation/editing is aborted

- fix crash when the 2 selected lines are bot horizontal and one tries to create a vertical centerline

- fix crash when changing the orientation  of an existing centerline and the result would be invalid

- cleanup the code a bit
2021-05-15 05:21:29 +02:00
Chris Hennes
99f9c3405c [OpenSCAD] Fix missing hide() on linear extrude 2021-05-13 10:27:49 -05:00
0penBrain
03855f793f [Sketcher] Visibility automation : add option to force orthographic view when entering edit mode 2021-05-13 14:10:44 +02:00
flachyjoe
6f0662c716 format Selection API doc 2021-05-13 13:10:40 +02:00
flachyjoe
9a3faf7722 improve TaskDialog API doc 2021-05-13 13:10:40 +02:00
flachyjoe
de80c5dd22 format ViewProvider API doc 2021-05-13 13:10:40 +02:00
flachyjoe
283a554402 format SelectionObject API doc 2021-05-13 13:10:40 +02:00
flachyjoe
e5c144566f Documents CommandPy.xml and DocumentPy.xml 2021-05-13 13:10:40 +02:00
wmayer
91b0409c48 Part: [skip ci] workaround for OCCT 7.5.2 2021-05-12 17:35:42 +02:00
Yorik van Havre
7b0a6358b1 Merged crwodin translations 2021-05-12 16:36:31 +02:00
Yorik van Havre
c7fb3ff829 Tools: cosmetic tweaks to updatecrowdin script 2021-05-12 16:36:15 +02:00
Yorik van Havre
1175f2a38d Merge pull request #4779 from bitacovir/TD_Tree_Icons
[TD] Name uniformity for TechDraw_Tree Icons
2021-05-12 15:38:14 +02:00
Yorik van Havre
7132d7cc87 Merge pull request #4784 from UR-0/origin/Draft_harmonize_digits_of_dxfScaling
[Draft] harmonize no of digits of dxfScaling between Edit->Preference…
2021-05-12 15:36:47 +02:00
Roy-043
64071fdee8 AddonManager: Fix Macros URL 2021-05-12 14:53:16 +02:00
Yorik van Havre
2f3bb4050e Draft: Added 'apply to texts/dims' button to SetStyle dialog 2021-05-11 16:24:06 +02:00
UR-0
61c67cf3b8 [Draft] harmonize no of digits of dxfScaling between Edit->Preferences and Tools->Edit Parameters 2021-05-11 16:14:18 +02:00
Yorik van Havre
28c51d4a43 Draft: Allow to use dimension tool with predefined direction 2021-05-11 13:27:41 +02:00
Yorik van Havre
81a44fcccb Updated ts files 2021-05-11 13:05:20 +02:00
Yorik van Havre
f626e1e2b7 Merge pull request #4770 from mpu-creare/master
Mod Part [doc]: Adding documentation to Part.BSplineCurve of Python API
2021-05-11 12:15:59 +02:00
Yorik van Havre
4b4087e18f Merge pull request #4773 from steelman/techdraw-svg-layer
[TD] Make the root SVG group a layer for Inkscape
2021-05-11 12:15:14 +02:00
Yorik van Havre
3a4621bda9 Merge pull request #4780 from matthijskooijman/fix-flat-groups-section-view
Arch: Fix section view duplicate rendering of items in groups with only flat objects
2021-05-11 12:13:09 +02:00
Yorik van Havre
cfb030930f Merge pull request #4782 from heewa/fix-startpage-dir-bug
Start: fix bug when custom folder doesn't exist
2021-05-11 12:10:59 +02:00
donovaly
dcfd17adb7 [Addons] fix an icon
I got a warning from Git that the SVG has a missing linebreak at the end. Fixed by saving the file as plain SVG using Inkscape
2021-05-11 02:11:10 +02:00
Heewa Barfchin
8cefceaf99 Start: fix bug when custom dir missing 2021-05-10 13:24:17 -04:00
kinagaki
cb2edd1bd0 Addon Manager: Added FEM_FrontISTR Workbench icon 2021-05-10 00:55:35 +02:00
Bernd Hahnebach
582621b3bc FEM: pep8 2021-05-09 23:42:32 +02:00
Matthijs Kooijman
82d0d3007d Draft: Improve docs for get_group_contents spaces parameter
The documentation suggested subtly different semantics from what the
code implements.
2021-05-09 17:33:46 +02:00
Matthijs Kooijman
f0c99c16f6 Arch: Do not draw draft-like groups twice in section view
When drawing a section view, first a list of objects to draw is made.
Starting with the objects selected by the section plane, any groups or
group-like objects are recursively expanded. The resulting list contains
all contained objects, but also the expanded groups themselves (due to
Draft.get_group_contents with addgroups set).

This list of objects is then further categorized and processed. In this
categorization, there was already an exception for DocumentObjectGroup
instances, which were omitted from the resulting `nonspaces` list
(presumably since there is no point in drawing the groups themselves
when their contents are already in the list).

However, any groups that only contain flat objects would be caught by
`looksLikeDraf()` and added to the `drafts` list, before this exception
could ignore them.

This causes these groups to be processed by Draft.get_svg, which does so
by calling itself recursively on the group contents. Effectively, this
means that the contents of such groups is drawn on the section view
twice. Even more, since Draft.get_svg does not do a visibility check
like Arch.getSVG does, this causes invisible objects to show up when not
intended.

This commit fixes this by moving the DocumentObjectGroup exception a bit
further up, so all these objects should be dropped.

An alternative fix might be to pass addgroups=False to
Draft.get_group_contents (in getSectionData), but that also prevents
group-like objects (Building, BuildingPart, Space, Site) from being
returned, but those likely need to be returned so they can be sectioned
if needed (though if just spaces are needed, then
Draft.get_group_contents also have a spaces argument to return just
those).
2021-05-09 17:19:05 +02:00
wmayer
0cfea3fee3 Make smesh compile with vtk9 2021-05-09 10:53:13 +02:00
bitacovir
9502501f61 Update TechDraw_TreePageTemplate.svg 2021-05-08 08:26:04 -04:00
bitacovir
20f0084b81 Update TechDraw_TreeView.svg
metadata name updated
2021-05-07 16:34:35 -04:00
bitacovir
9e902124a0 Update TechDraw_TreeSymbol.svg
metadata name updated
2021-05-07 16:33:29 -04:00
bitacovir
7d7b9ba5d0 Update TechDraw_TreeSpreadsheet.svg
metadata name updated
2021-05-07 16:31:49 -04:00
bitacovir
5bb3f9d3f1 Update TechDraw_TreeSection.svg
metadata name updated
2021-05-07 16:30:07 -04:00
bitacovir
1eae45bd77 Update TechDraw_TreeProjGroup.svg
metadata names updated
2021-05-07 16:28:43 -04:00
bitacovir
4a2ac428b8 Update TechDraw_TreePageTemplate.svg
metadata names updated
2021-05-07 16:24:58 -04:00
bitacovir
9f98889fc6 Update TechDraw_TreePage.svg
metadata names updated
2021-05-07 16:00:36 -04:00
bitacovir
ac8b47e5ca Update TechDraw_TreeMulti.svg
metadata names updated
2021-05-07 15:58:53 -04:00
bitacovir
158e51398e Update TechDraw_TreeHatch.svg
metadata names updated
2021-05-07 15:57:31 -04:00
bitacovir
468af0e714 [TD] Name uniformity for Tree Icons 2021-05-07 12:07:35 -04:00
Bernd Waibel
20e756306d [Fem] fix femtest failure with yaml.load
Solves an issue with using an outdated call to yaml.load
as described in
https://forum.freecadweb.org/viewtopic.php?f=10&t=57617

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2021-05-06 19:52:20 +02:00
UR-0
9a5eefaec8 [FEM] patch LGTM alerts 2021-05-06 19:51:27 +02:00
Yorik van Havre
72e249a106 Draft: Fixed last commit (stroke endcap -> stroke-linecap) 2021-05-06 18:49:55 +02:00