Commit Graph

1232 Commits

Author SHA1 Message Date
Yorik van Havre
f0f99138a7 Draft: Fixed DXF import of texts 2018-11-27 16:10:42 -02:00
Yorik van Havre
eead77a897 Draft: Fixed buggy ghost tracker 2018-11-21 18:37:39 -02:00
Yorik van Havre
88f47ee725 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
63bb7db4a6 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
75b939eb21 Draft: re-added missing arcFrom2Pts function in DraftGeomUtils 2018-11-16 18:28:01 -02:00
wmayer
31963f16c1 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
61bc405586 Arch: Fixed py3 errors in IFC export 2018-11-08 17:23:06 -02:00
Yorik van Havre
d2089999e0 Draft: Export of Arch Axes to DXF 2018-11-07 12:38:07 -02:00
easyw
dd8b8b6297 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
cdf9625af1 Draft: fixed snapping to WPProxies 2018-11-05 19:28:20 -02:00
apeltauer
abf4d4ddf2 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 "917b5a505e8d5798a05c3c05cc7b4e052b2d05d5"
in file "src\Mod\Draft\Draft.py"
2018-11-05 19:24:02 +01:00
Yorik van Havre
d32502d414 Arch/Draft: Fixed py3 bugs in text rendering 2018-11-05 11:47:54 -02:00
Yorik van Havre
fc4ad4b28b Draft: Fixed py3 bug in getSVG 2018-11-04 15:36:07 -02:00
Yorik van Havre
80c6100dd8 Draft: Fixed wrong Placement of Draft Wire - fixes #3558 2018-11-01 14:42:52 -03:00
George Shuklin
fb1b60a825 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
15f4ae54f4 Add arrows to dLabel getSVG, minor style cleanup 2018-10-26 19:25:44 -03:00
George Shuklin
97aa6930a5 Add line for annotation (no arrow yet) 2018-10-26 19:25:44 -03:00
George Shuklin
ec1e837871 Initial work, only text (no lines) 2018-10-26 19:25:44 -03:00
triplus
8150d39a25 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
fe067060d4 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
14c70ce8cd Draft: Don't show the Draft tray bar automatically 2018-10-24 12:23:20 -03:00
Amritpal Singh
b593f59dee Updated Draft Dimension object. 2018-10-24 11:06:17 -03:00
Yorik van Havre
e60c5b0a7b Draft: Set normal direction of dimensions to (0,0,1) by default 2018-10-23 22:18:26 -03:00
looooo
c05666dd1c 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
8ab3a13d33 Fixed FreeCAD crashes. 2018-10-10 10:45:57 -03:00
Mark Ganson TheMarkster
e21f64caf9 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
b4568bd754 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
e79cadb6c0 Draft: Allow to switch the line of Draft Labels on/off 2018-09-03 16:03:10 -03:00
Yorik van Havre
4caca90737 Draft: Fixed bug in WorkingPlaneProxy color 2018-08-30 17:11:40 -03:00
Yorik van Havre
e012edae73 Draft: Fixed adding points in Wires 2018-08-29 21:49:56 -03:00
Yorik van Havre
0a61c78543 Arch: cache svg calculations in section planes/techdraw views for better performance 2018-08-28 21:03:25 -03:00
wmayer
844165c062 unit tests of Arch and Draft require GUI, improve output of units tests 2018-08-28 19:39:34 +02:00
wmayer
1d11f742ca now each module registers its unit tests itself 2018-08-28 13:14:16 +02:00
Yorik van Havre
3c772fbf2c Draft: Fixed DXF support for new Draft texts 2018-08-27 12:11:38 -03:00
Yorik van Havre
144f753703 Arch: Using transparent style during walls and structs draw 2018-08-24 15:23:00 -03:00
Yorik van Havre
12df04e4b8 Draft: Fixed leftover scene callbacks in snapping 2018-08-24 15:16:35 -03:00
Yorik van Havre
6478e7bdbf Draft: Ability to set working plane from PartDesign datum planes 2018-08-20 21:56:08 -03:00
wmayer
8088aa159f CMake 2.8.12 and lower allowed the SOURCE signature in add_custom_command
In CMake 3.0 the policy CMP0050 was introduced where it could be set to OLD to keep this behaviour while for NEW an error was raised.
Since CMake 3.5.2 a warning comes up when using the OLD behaviour and that it will be removed in a future version.

In FreeCAD we switched to the new behaviour now and removed the SOURCE signature from add_custom_command which affects the macros
fc_copy_sources, fc_target_copy_resource and fc_target_copy_resource_flat and their usage.
It's not possible any more to add files to a target by using the macros. Now a file must be added to the target before using the macros.

This commit fixes it for Arch, Draft, OpenSCAD, Material, Plot and Ship
2018-08-20 11:47:39 +02:00
luz.paz
9c2e9884e2 More typos 2018-08-18 21:48:43 +02:00
luz.paz
60bd74aaad Trailing whitespace fixes 2018-08-18 21:48:42 +02:00
luz.paz
fab9cad50f Misc. typos
Found via `codespell`
Trivial typos

Found via `codespell`
2018-08-18 21:48:42 +02:00
luz.paz
424cd49398 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
Yorik van Havre
02868667dc Draft: Allow to turn off Draft verbose output in preferences 2018-08-03 19:07:59 -03:00
Yorik van Havre
f68f3140af Draft: better tooltip for copy mode option 2018-08-01 21:50:44 -03:00
Benjamin Alterauge
4b2d48a6f8 Update Draft.py 2018-08-01 19:22:45 -03:00
Yorik van Havre
6ca4d89cce Arch: bugfixes in IFC exporter 2018-07-26 19:23:48 -03:00
Yorik van Havre
90a047b5e8 Draft: Snap to BuildingPart base points 2018-07-25 20:25:11 -03:00
Yorik van Havre
2d0432d711 Draft: Added variable to be able to start Move command in copy mode 2018-07-25 12:55:55 -03:00
Yorik van Havre
42384e1a58 Arch: Added preference option for screen helpers color (axes, grids, etc...) 2018-07-25 10:56:12 -03:00
Yorik van Havre
a1bc8dbc9a Draft: Minor bugfix 2018-07-24 17:10:18 -03:00