Commit Graph

11517 Commits

Author SHA1 Message Date
WandererFan
89b29504dd Fix Symbol fail to paint
- calls ViewProviderDocumentObject, but should call
  ViewProviderViewPart in order to receive repaint
  signals.
2017-09-17 18:50:07 +02:00
WandererFan
e61d2b5d13 Fix crash due to QGraphicsScene update while View.isDeleting() 2017-09-17 18:50:07 +02:00
WandererFan
9ca4b72f1d Make View backgrounds transparent
- makes it easier to stack views
2017-09-17 18:50:07 +02:00
WandererFan
00edf63be8 Fix Symbol based View positioning 2017-09-17 18:50:07 +02:00
WandererFan
8431ec0fc1 Add debug utils for QRectF/QPointF 2017-09-17 18:50:07 +02:00
Markus Lampert
c6fb629d15 Reduced log level. 2017-09-17 18:46:00 +02:00
Markus Lampert
7febd40788 Fixed pocket final depth calculation and hide it from user modifications. 2017-09-17 18:46:00 +02:00
Itai Nahshon
ab2a01c92f PartDesign: Multi Transform Linear Pattern fix. 2017-09-16 01:25:14 +03:00
wmayer
d5824d325e fix override warnings 2017-09-15 21:55:30 +02:00
wmayer
f1b9e751c8 make computation of the length of an edge consistent to the computation of a (limited) curve 2017-09-15 19:29:44 +02:00
wmayer
c08f2efb63 fix possible memory leak in Robot module 2017-09-15 12:15:02 +02:00
wmayer
fde42545ba fix various coverity issues 2017-09-15 11:48:38 +02:00
luzpaz
a3953e95df misc typos
misc-typos
2017-09-15 09:54:14 +02:00
wmayer
7c366eae50 fix override warnings 2017-09-15 08:26:48 +02:00
wmayer
506ce6b5f5 fix override warnings 2017-09-15 01:49:12 +02:00
wmayer
729a6d755b disable testIssue2985 2017-09-15 01:03:33 +02:00
wmayer
c68112977e fix override warnings 2017-09-15 00:58:21 +02:00
wmayer
80bc518981 use code from issue 0002985 for unit test 2017-09-14 16:48:05 +02:00
wmayer
d5077eae1e expose FeatureAddSub to Python, fixes #0000955 2017-09-14 15:09:53 +02:00
wmayer
712966ff50 rename method from remObject to removeObject to be more readable 2017-09-13 18:57:38 +02:00
wmayer
52ef3a5d19 avoid permanently throwing exception by attach engine 2017-09-13 18:42:33 +02:00
wmayer
9d83bf8c12 mark document objects with Destroy flag before deleting them and handle this in the link properties 2017-09-13 16:14:19 +02:00
wmayer
ca77c54d10 rename status bit 'Delete' to 'Remove' as it fits better for its purpose, add new bit 'Destroy' 2017-09-13 15:47:48 +02:00
wmayer
071763d464 fix access of dangling pointer (in case undo/redo is off)
use unique_ptr to delete object before leaving remoObject
2017-09-13 15:11:29 +02:00
wmayer
0983c7e9ac fix cyclic dependency if body is created when creating a shape binder 2017-09-13 12:20:16 +02:00
wmayer
f52b54e4f3 add method to remove elements from PropertyLinkSubList 2017-09-13 12:19:09 +02:00
Markus Lampert
9354a28659 Replace Base property type with LinkSubListGlobal in order to keep Path ops working. 2017-09-13 09:46:59 +02:00
Markus Lampert
14e3d29dee Removed debug logging. 2017-09-13 09:35:27 +02:00
Markus Lampert
715f136a8a Fixed Job cancellation - to cleanup job again. 2017-09-13 09:35:27 +02:00
Markus Lampert
1f0f02de7b Moved task panel cleanup into preCleanup to avoid accessing already deleted objects in case of cancel. 2017-09-13 09:35:27 +02:00
Markus Lampert
a9652ea214 Fixed job removal for non-path base objects 2017-09-13 09:35:27 +02:00
looooo
fd9de86ec0 Fem: fix one import statement for python3 2017-09-13 08:01:29 +02:00
Markus Lampert
1c26a26548 Run recompute() after creating a Draft.clone. 2017-09-12 12:13:07 -07:00
wmayer
9024ad34d0 fix inconsistency between context-menu and default edit mode PD primitives 2017-09-12 19:49:07 +02:00
wmayer
6eb26c06e0 set invalid bounding box if no arguments passed 2017-09-12 17:23:39 +02:00
wmayer
72c2ea5e6a add missing return 2017-09-12 16:42:46 +02:00
wmayer
f59db97ac2 when accessing view provider of object make sure the object hasn't been removed from the document, raise an exception otherwise 2017-09-12 16:28:31 +02:00
wmayer
58e9f7477d create shape of sketch on project load in case it has been saved without a recompute beforehand 2017-09-12 15:55:35 +02:00
wmayer
8e21d98a9a do some security checks to avoid accessing invalid data 2017-09-12 15:21:07 +02:00
Zheng, Lei
15994d7287 OriginGroupExtension: fix wrong static_cast 2017-09-12 13:51:47 +02:00
wmayer
b9c2b58bd5 don't reverse orientation after converting mesh to shape 2017-09-12 07:59:31 +02:00
wmayer
161c820939 add example code to selection classes 2017-09-11 19:13:48 +02:00
Bernd Hahnebach
098ec55b58 FEM: py3, set prints in brackets 2017-09-11 10:21:01 +02:00
Bernd Hahnebach
07a7b1b055 FEM: unit test, make it simpler to add new directories to the python module import test and add some comments 2017-09-11 10:21:01 +02:00
DeepSOIC
8bf409eb74 fix warning 2017-09-10 18:32:06 +02:00
DeepSOIC
a22c1206d1 Part: Attacher3D: new modes - align axes
New attachment modes:
"Align O-Z-X"
"Align O-Z-Y"
"Align O-X-Y"
"Align O-X-Z"
"Align O-Y-Z"
"Align O-Y-X"
They allow to attach a sketch by picking origin point and sketch axes
directions.
2017-09-10 18:31:54 +02:00
DeepSOIC
62b0d35270 Base: new Rotation constructor - on vectors
The new constructor accepts wanted directions of x,y,z axes of rotated
frame, and a priority string that affects how the vectors are made
perpendicular to each other.

Example - construct placement for sketch on XZ plane:

v = App.Vector
App.Rotation(v(1,0,0),v(0,0,1),v())
2017-09-10 18:31:40 +02:00
DeepSOIC
8284e60401 Part: Attacher1D: new attachment mode "Normal to face"
addresses #3175
https://freecadweb.org/tracker/view.php?id=3175

Also, renames Datum Line's "Normal" attachment mode to "Normal to edge"
in Gui, for the name to be specific.
2017-09-10 18:31:25 +02:00
DeepSOIC
4277c83b20 Part: Attacher: fix normal-to-path vertex usage, #3175
Modes affected:
* NormalToEdge ("Z tangent to edge", "Normal to edge"),
* Tangent

In these attachment modes, if vertex is linked first, the origin was
supposed to be placed on the vertex, but it was placed on the edge
instead, due to a bug. This commit fixes the bug.

Projects will be broken, which use above mentioned attachment modes, and
link Vertex as first reference, and the vertex does not lie on the edge.
To repair a project, edit the corresponding attachments, and swap the
order of references.
2017-09-10 18:31:11 +02:00
wmayer
6dba95c7f0 add security check for data validation in FEM fluid boundary panel 2017-09-10 17:52:11 +02:00