Commit Graph

1249 Commits

Author SHA1 Message Date
Yorik van Havre
981b158228 Draft: Fixed nearest snap not snapping to the working plane when required 2018-12-14 13:22:32 -02:00
Yorik van Havre
144fee0915 Draft: updated minimal version of dxf library to include py3 fixes 2018-12-13 22:50:25 -02:00
sdaau
3290c36d28 Draft: preserving face colors and names when downgrading/upgrading (splitFaces and makeShell only) 2018-12-11 09:15:30 -03:00
Yorik van Havre
5633bd14d2 Arch/Draft: Misc small fixes
* Properly handle offset2D and arch objects in Draft Stretch
* Allow the WP of Arch BuildingParts to stay weak
* Fixed Draft Edit making Wires not plane anymore
* Dont change the WP if already perpendicular to current view
* Fixed DXF import of Polyfaces
2018-12-10 10:21:17 -02:00
wandererfan
f76f19732c Use Global Scope for PathArray Links 2018-12-08 11:29:45 -03:00
wandererfan
bf3a1fdaa8 Test for binormal == Z sb binormal parallel Z 2018-12-08 11:29:45 -03:00
looooo
1476caf281 py3: iteritems -> items, iterkeys -> keys 2018-12-08 11:27:22 -03:00
DeepSOIC
e48254d98e Draft: allow cross-CS links for Clone
fixes drag-drop issues
https://forum.freecadweb.org/viewtopic.php?f=3&t=32677&p=272896#p272896
2018-12-08 11:23:53 -03:00
wandererfan
eb9aa5c54d Remove custom translation code
- go back to letting loadUi do the translating.
2018-12-06 08:54:46 -03:00
Yorik van Havre
8483d8d5c2 Draft: Fixed dangling temp snap points 2018-12-05 16:38:34 -02:00
Yorik van Havre
7159d38e82 Draft: Solved duplication problem - Fixed #2304 2018-12-05 11:05:40 -02:00
Yorik van Havre
b12bcc44a8 Draft: py3 bugfix 2018-12-03 18:39:57 -02:00
Yorik van Havre
6199c95fd7 Draft/Arch: minor fixes 2018-12-01 18:56:05 -02:00
Yorik van Havre
34cad5b81f Draft: Better fix to buggy Move/rotate of Arch BuilfingParts 2018-12-01 12:12:22 -02:00
Yorik van Havre
0e3cab0874 Draft: Fixed snapping to sectionPlanes 2018-12-01 12:11:10 -02:00
wandererfan
bdbdf8c6b7 FR1973 Draft ShapeString Ui
- load new ui from Resource file
- minor updates to translate for Py3
2018-12-01 11:08:37 -03:00
Yorik van Havre
03e7083dd5 Draft: Fixed wrong moving of BuildingParts 2018-11-28 16:51:02 -02:00
Yorik van Havre
c0567a5990 Draft: Fixed DXF import of texts 2018-11-27 16:10:42 -02:00
Yorik van Havre
54dd7c621d Draft: Fixed buggy ghost tracker 2018-11-21 18:37:39 -02:00
Yorik van Havre
024540dbbe Fixed coverity issues
169009 Bad use of null-like value
169005 Bad use of null-like value
169003 Bad use of null-like value
169000 Bad use of null-like value
168998 Bad use of null-like value
168996 Structurally dead code
2018-11-20 12:37:32 -02:00
Yorik van Havre
3799b2a306 Fixed coverity issues
184348 Bad use of null-like value
175794 Copy-paste error
172913 Copy-paste error
169506 Structurally dead code
169504 Bad use of null-like value
169013 Copy-paste error
2018-11-19 19:36:50 -02:00
Yorik van Havre
fc5b6288c6 Draft: re-added missing arcFrom2Pts function in DraftGeomUtils 2018-11-16 18:28:01 -02:00
wmayer
a7094210f8 Fix scan coverity issues:
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
Yorik van Havre
490b76f405 Arch: Fixed py3 errors in IFC export 2018-11-08 17:23:06 -02:00
Yorik van Havre
1d72ee4343 Draft: Export of Arch Axes to DXF 2018-11-07 12:38:07 -02:00
easyw
3408e5908c minor Py3 issue fixed
https://forum.freecadweb.org/viewtopic.php?f=10&t=30624&p=265892#p265892
fixing as suggested here:
https://hynek.me/articles/hasattr/
2018-11-06 12:03:33 -03:00
Yorik van Havre
ff5d67b66c Draft: fixed snapping to WPProxies 2018-11-05 19:28:20 -02:00
apeltauer
d03a11ead9 Change the name of the Wire object
After changing the name from DWire to Wire the test fails, because an element with the name DWire does not exists.
The name change came in with commit "684b4ab03a27231e0cc603ca815bf9ea367fd0b9"
in file "src\Mod\Draft\Draft.py"
2018-11-05 19:24:02 +01:00
Yorik van Havre
fcdcb5d858 Arch/Draft: Fixed py3 bugs in text rendering 2018-11-05 11:47:54 -02:00
Yorik van Havre
90a1f4ad1c Draft: Fixed py3 bug in getSVG 2018-11-04 15:36:07 -02:00
Yorik van Havre
684b4ab03a Draft: Fixed wrong Placement of Draft Wire - fixes #3558 2018-11-01 14:42:52 -03:00
George Shuklin
7ec3984cbe Add support for dLabel.ViewObject.Line
If it's false, do not draw line (and arrow), text only
2018-10-26 19:25:44 -03:00
George Shuklin
9543d54647 Add arrows to dLabel getSVG, minor style cleanup 2018-10-26 19:25:44 -03:00
George Shuklin
3a85a1fd41 Add line for annotation (no arrow yet) 2018-10-26 19:25:44 -03:00
George Shuklin
3391a5ea4b Initial work, only text (no lines) 2018-10-26 19:25:44 -03:00
triplus
10cd4cc7af Hide Draft tray toolbar
Forum discussion:

https://forum.freecadweb.org/viewtopic.php?f=3&t=31720
2018-10-26 04:26:20 +02:00
Yorik van Havre
46b152669b Draft: fixed bug in delay system when passing a function with False as argument 2018-10-24 14:22:11 -03:00
Yorik van Havre
3969400a11 Draft: Don't show the Draft tray bar automatically 2018-10-24 12:23:20 -03:00
Amritpal Singh
74a6bb4253 Updated Draft Dimension object. 2018-10-24 11:06:17 -03:00
Yorik van Havre
c78ebdec42 Draft: Set normal direction of dimensions to (0,0,1) by default 2018-10-23 22:18:26 -03:00
looooo
44c2f19e38 py3: Draft: use proper way to test if property is available
if the attribute is not available py3 raises: `<class 'AssertionError'>: The enum is empty`. For py2 hasattr simple returns False. Similar changes should be applied also to other places.
2018-10-22 15:25:00 -03:00
Amritpal Singh
ff05101b68 Fixed FreeCAD crashes. 2018-10-10 10:45:57 -03:00
Mark Ganson TheMarkster
41102edf67 fix bug in draft path array
put lnodes.normalize() inside try/except block
replace hard-coded 1e-6 with Vector3d::epsilon() in VectorPy::normalize()
2018-09-11 11:11:39 +02:00
luz.paz
36faeb247a Cosmetically change mentions of Teigha to ODA
Ref:  https://forum.freecadweb.org/viewtopic.php?p=255339#p255339
This PR is superficial as it doesn't actually change the path to the newly named executable.
2018-09-11 07:29:18 +02:00
Yorik van Havre
ef0fe57328 Draft: Allow to switch the line of Draft Labels on/off 2018-09-03 16:03:10 -03:00
Yorik van Havre
5f025587a0 Draft: Fixed bug in WorkingPlaneProxy color 2018-08-30 17:11:40 -03:00
Yorik van Havre
682650b0b2 Draft: Fixed adding points in Wires 2018-08-29 21:49:56 -03:00
Yorik van Havre
b469c237b5 Arch: cache svg calculations in section planes/techdraw views for better performance 2018-08-28 21:03:25 -03:00
wmayer
404b42d0a6 unit tests of Arch and Draft require GUI, improve output of units tests 2018-08-28 19:39:34 +02:00
wmayer
67b5ee0931 now each module registers its unit tests itself 2018-08-28 13:14:16 +02:00