Commit Graph

24190 Commits

Author SHA1 Message Date
Russell Johnson
b3cfb29038 Path: Fix range() input type per gcc-7 build 2021-02-20 12:32:25 -06:00
Russell Johnson
0718afa5e1 Path: Fix feature selection and handling
Fix error when working with selections containing edges and faces.  This fix effectively processes edges and only passes faces on to next processing step.  This simplifies the code a bit and changes some `obj.Base` references to `otherBase` to improve readability.
Path: Improve `obj.Base` reading and processing

`obj.Base` is first read in `self._processEdges()`.  All edges are identified and processed there.  Remaining features are saved in `remainingObjBaseFeatures` to be processed in the next section of the Profile code.
Path: Change `if` to `elif`
2021-02-20 12:32:25 -06:00
Russell Johnson
b86104b01e Path: Fix error for undefined profileshape variable 2021-02-20 12:32:25 -06:00
Russell Johnson
cda4d12ad2 Path: Fix open-edge profiling for micro bit usage 2021-02-20 12:32:25 -06:00
Russell Johnson
f1f584af2d Path: Change HandleMultipleFeatures default value to Collectively
This fixes error when attempting to profile loop of vertical faces, thus maintaining original Profile Faces behavior by default for vertical looped face set.
2021-02-20 12:32:25 -06:00
Russell Johnson
edab3c6ecc Path: Apply LazyLoader for DraftGeomUtils module 2021-02-20 12:32:25 -06:00
sliptonic
7d4ca77f1a Merge pull request #4454 from lag-linaro/master
PathToolBitLibraryGui: Fix LinuxCNC tool table format
2021-02-20 11:54:51 -06:00
sliptonic
a7d62d0cf1 Merge pull request #4477 from sliptonic/bug/miscellaneous
[PATH]  Bug fixes for several minor issues, lgtm flags and input sanitizing.
2021-02-20 10:35:16 -06:00
donovaly
2d8ce4bcd0 [FEM] correct sorting order
all other menu items are sorted and we also keep the sorting in the Wiki
2021-02-20 16:40:04 +01:00
wmayer
0adfa17d0d Import: [skip ci] fixes #0003988: the function Import.readDXF doesn't import Bsplines 2021-02-20 16:37:02 +01:00
wmayer
7c4ff63079 PD: [skip ci] fixes #0004540: When manual size of DatumPlane is selected its Length property is not saved to the file and consequently not restored on opening 2021-02-20 13:33:54 +01:00
wmayer
c996988a9d Gui: [skip ci] fixes #0004569: Part Design Workbench - New Bodies selection issues 2021-02-20 02:06:27 +01:00
sliptonic
586b2e6aa7 add back translation string 2021-02-19 17:50:56 -06:00
wmayer
fab2a0d1fa PD: [skip ci] do not pop-up dialog when creating a body while another body is selected 2021-02-19 21:44:48 +01:00
David Osterberg
0e8e5c8d49 PartDesign: Fix helix for OCC versions < 7.5.0 2021-02-19 20:02:11 +01:00
wmayer
5cc3dde57b App: [skip ci] replace plain C API with PyCXX to avoid memory leaks 2021-02-19 17:26:33 +01:00
vosk
9ad15a0a3d [App] [skip ci] - Fix python new references leaking 2021-02-19 17:25:25 +01:00
vosk
08c2179a4f [GUI] - Fix leaking QObject 2021-02-19 16:52:25 +01:00
vosk
100a7ade4c [TD] - Fix geometry object leaking on every exec 2021-02-19 16:50:56 +01:00
vosk
21e5fb66c4 [APP] - Fix leaking QGraphicsScene in QuarterWidget 2021-02-19 16:44:16 +01:00
Yorik van Havre
2352474ede Tools: Updated offline wiki fetching script 2021-02-19 16:41:46 +01:00
Yorik van Havre
d873ace412 Updated splashscreen 2021-02-19 16:41:23 +01:00
bitacovir
ad1c767baa [UI] Add tools to Mesh WB toolbar 2021-02-19 16:28:42 +01:00
Benjamin Nauck
8fb44c3aa6 Gui: Minor cleanup
Cleans up code which was touched in previous commit.

* Don't call popup() twice when not needed
* use nullptr instead of 0 for pointers
2021-02-19 16:22:41 +01:00
Benjamin Nauck
eb400fe249 Spreadsheet: Don't autocomplete when writing strings
After pull request https://github.com/FreeCAD/FreeCAD/pull/4215 it
doesn't make much sense helping the user to write expressions without
leading '=', as that content will be parsed as a string.

This change adjusts the behaviour in SpreadsheetGui's LineEdit to avoid
popping up the ExpressionCompleter when no leading equal sign is used.
2021-02-19 16:22:41 +01:00
Benjamin Nauck
6eb89fe038 Spreadsheet: Fix coverity warning
There are no reason to check the return values for these functions
as the string passed as an argument will be set to an empty string
if it false. An empty string is a valid option in these instances.

Coverity warnings fixed:

CID 316520 (1 of 1): Unchecked return value (CHECKED_RETURN)
3. check_return: Calling getAlias without checking return value (as is done elsewhere 8 out of 10 times).

CID 316557 (1 of 1): Unchecked return value (CHECKED_RETURN)
8. check_return: Calling getAlias without checking return value (as is done elsewhere 8 out of 10 times).
2021-02-19 15:47:27 +01:00
donovaly
3fdce54be7 [PD] fix dressup feature display when broken
As discussed in https://forum.freecadweb.org/viewtopic.php?p=479647#p479377
the user can end up without either seeing nothing or an inexisting dressup feature.

This PR fixes this.
2021-02-19 14:51:52 +01:00
David Osterberg
1b07835aa5 PartDesign: Check closedness in AddSub refine function 2021-02-19 14:33:56 +01:00
bitacovir
72e33c44c1 [UI] 0.19 Replace FEM WB icons 2021-02-19 14:25:01 +01:00
Chris Hennes
5e170ae332 [GUI] Modify behavior of VectorListEditor
VectorListEditor allows row-by-row creation of a list of three-component
vector values. Values are manipulated using spinboxes. The previous behavior
was that the spinboxes only affected the existing rows: when creating a row
the contents of the spinboxes were ignored. This commit modifies that behavior
so that a new row gets the contents of the spinboxes. In addition, in the original
code the "Accept" button was enabled even when there was no row to edit, making
it unclear whether a user needed to click the add row button or the accept
button. Clicking the accept button did nothing if there was no existing row,
and if compiled in debug mode, an assertion was raised.
2021-02-19 14:23:19 +01:00
wmayer
55cdfefce1 PD: [skip ci] recompute document when canceling task dialog, fix also possible crash 2021-02-19 11:33:58 +01:00
wmayer
da90fa3ba7 PD: [skip ci] drop some superfluous static_cast 2021-02-18 22:51:15 +01:00
Chris Hennes
da7c6d9172 [PD] Fix isFeatureMovable() to check null status of property
As reported by @donovaly, if you try to move a pipe that does not have
an auxilliary spine, the code segfaults. This commit adds a check to ensure
that not only does the property exist (which in this case it always does), but
also that it does not contain a null. That is a valid value for the property
to have, but cannot be itself interrogated for moveability by the isFeatureMovable
recursive call. This fix is also applied to the other similar conditions in that
function to ensure they never yield the same segmentation fault.

Forums topic: https://forum.freecadweb.org/viewtopic.php?p=479388#p479388
2021-02-18 22:44:13 +01:00
David Osterberg
fc6b98e4d7 PartDesign: Mild code cleanup of Helix 2021-02-18 21:51:44 +01:00
wmayer
2aca60be85 Gui: [skip ci] fix crash on macOS in editor of vector list property 2021-02-18 21:43:53 +01:00
Abdullah Tahiri
de7ae73915 Sketcher: Improved ViewProvider visualisation for non-rational Bsplines with non-unitary weight constraints
===========================================================================================================

OCCT forces weights of non-rationa Bsplines to be 1.0

In the presence of non-unitary weight constraints, the weight representation (constraint) has a different radius
than the circle.

This commit fixes this behaviour, by forcing the circle to match the weight constraint.

The information layer still reports OCCT weights being 1.0, but the visual artifact is fixed.
2021-02-18 17:28:38 +01:00
Abdullah Tahiri
6d0c845208 Part: Geometry - BSpline - fix weight assignment
================================================

If during assignment of weights (during the for loop iteratively setting the poles) all weights
become (temporarily) equal even though weights does not have equal values
OCCT will convert all the weights (the already assigned and those not yet assigned)
to 1.0 (nonrational b-splines have 1.0 weights). This may lead to the assignment of wrong
of weight values.

The work-around is to temporarily set the last weight to be assigned to a value different from
the current value and the to-be-assigned value for the weight at position last-to-be-assign but one.

Fixes:
https://forum.freecadweb.org/viewtopic.php?p=478701#p478702
2021-02-18 17:28:38 +01:00
Yorik van Havre
3122859464 Merge pull request #4456 from donovaly/TD-balloon-drag
[0.19] [TD] fix dragging of balloons
2021-02-18 15:48:58 +01:00
Yorik van Havre
00b0f740ea Merge pull request #4470 from mnesarco/master
Icons for Marz, ExtMan, MnesarcoUtils Workbenches
2021-02-18 15:47:47 +01:00
Yorik van Havre
b2cb259ef5 Merge pull request #4479 from Roy-043/ArchRoof-compatibility-fix-2
[Arch] ArchRoof: Improved compatibility fix
2021-02-18 15:46:52 +01:00
wmayer
8a855f67d9 Base: [skip ci] take care of case-sensitivity of header file 2021-02-18 10:17:03 +01:00
donovaly
966540aa3a QGIViewBalloon.cpp: a fix as suggested 2021-02-18 01:41:23 +01:00
sliptonic
63f0e7aad4 Fix unit test with property name sanitize. 2021-02-17 18:39:15 -06:00
sliptonic
9ab32df926 Fixes #4555 2021-02-17 17:21:50 -06:00
sliptonic
257159fc1b fix lgtm error 2021-02-17 17:21:50 -06:00
sliptonic
0dfa611503 fix typos 2021-02-17 17:20:19 -06:00
sliptonic
42c769d635 fix #4572 2021-02-17 17:20:19 -06:00
sliptonic
29e714da02 remove deprecated preference setting 2021-02-17 17:20:19 -06:00
Roy-043
f9d93749bc [Arch] ArchStructure.py wrongly used Part.Line (endless line) to close a wire. 2021-02-17 23:29:01 +01:00
Roy-043
fbe7178cdb [Arch] ArchRoof: Improved compatibility fix
The check if a relative profile in turn references a relative profile has been improved. Added: run or angle of profilRel must be zero.
2021-02-17 21:35:51 +01:00