e8da6131fd
License headers: use SPDX-FileCopyrightText for all addons
...
Move copyright text to SPDX-FileCopyrightText or set to the
Blender Foundation so "make check_licenses" now runs without warnings.
2023-06-15 16:54:05 +10:00
99576a8478
Cleanup: fix typos in blender addons
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D15646
2022-08-09 19:24:13 +02:00
016430de4b
Cleanup: remove <pep8 compliant> comment
...
This is no longer necessary, see: T98554.
2022-06-03 11:50:32 +10:00
7941036785
Fix error in STL importer due to API change
...
when facet normals option is ticked in importer file dialog, it would trigger an error.
Sharp edge draw option is now a settings from View3D Overlay.
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D15001
2022-05-23 14:17:32 +02:00
b8d86ccc0a
File headers: use SPDX license identifiers
...
See T95597
2022-02-11 16:05:07 +11:00
29bbe142ea
Merge remote-tracking branch 'origin/blender-v2.81-release'
...
This was neglected during the 2.81 development cycle.
2020-01-13 13:25:36 +01:00
14420434d2
Revert "STL: fix T72145 crash exporting object without data"
...
This reverts commit 2f425cc128
.
The crash has since been fixed in the API.
2019-12-09 20:17:00 +11:00
2d192b4005
STL: fix T72145 crash exporting object without data
2019-12-04 12:01:36 +01:00
2f425cc128
STL: fix T72145 crash exporting object without data
2019-12-04 08:46:23 +04:00
0260327cff
STL: cleanup and PEP8
...
Unused imports, move rare imports inside functions, correct description.
2019-10-15 14:09:44 +04:00
6f0585fa4a
Fix T68135: Empty curve object crashes export (STL exporter part).
2019-08-02 18:23:57 +02:00
901868a4b2
Update for Depsgraph API changes
...
Addresses new behavior of object.to_mesh().
This is corresponding part for D4875.
Reviewers: brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D4876
2019-05-16 16:43:14 +02:00
e5c3ae3118
Addons: Adopt for Dependency Graph API changes
...
Mainly search-and-replace approach.
Tested the enabled-by-default export/import addons. Seems to work with
an exception of X3D which is still referencing Blender Internal material
properties.
Reviewers: brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D4866
2019-05-16 10:34:11 +02:00
70df942d31
Update for changes in Blender's API
2018-11-08 09:06:57 +11:00
487778f677
Fix T57660: Export of STL format causes an exception.
...
Raising StopIteration was never a good idea to abort a generator
function, and since 3.6 it's converted to a regular RuntimeError
exception!
Proper way to do that is just to use return statement (as long as there
is a yield statement somewhere in the function code, it is a generator,
and return statement has proper special handling in that case).
2018-11-06 21:56:54 +01:00
227fafdfcf
Update for removal of tessfaces.
...
This ports the already working addons. The disabled x3d, psk, lwo, 3ds,
raw, dxf addons still need to be converted.
2018-10-10 17:25:48 +02:00
08f39b75b9
Port 'STL format' addon to Blender 2.8
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3730
2018-09-26 11:04:40 +02:00
0024e89eee
Fix STL exporter for 2.8
2018-05-24 13:51:54 +02:00
0f2f0e4951
Fix T47490: STL: faces not normalized correctly when exporting multiple meshes.
...
Using new `mesh.flip_normals()` when the mesh is transformed with a negative matrix (mirror along one axis e.g.).
2016-02-28 16:48:08 +01:00
e75551f706
Fix T44536: Add (limited!) normal import for STL.
...
Limited, because STL only stores face normals, so we can only fake this by setting
all clnors of a same face to that face normal... Guess use case are rather limited,
but does not hurt to have it either.
2015-05-03 12:00:49 +02:00
355f86ca08
Meeeh, cleanup (sorry for the noise :/ ).
2014-10-07 16:26:58 +02:00
755af06fd3
STL import: Better to transform whole mesh at once, rather than each point in py.
...
Thanks Campbell for the headup.
2014-10-07 16:25:55 +02:00
e6b174a3b6
Fix T42000: STL export scale incorrect.
...
Not a bug, in fact, more like a feature request.
Added an option to take into account scene's scale on both export and import time.
Also added scaling/axis conversion to importer.
2014-10-07 16:15:53 +02:00
e88ccb06cc
option to apply scale on export. also add global scale options for exporters. OBJ/X3D/VRML/PLY/STL
2013-04-15 17:21:17 +00:00
86b21848fb
Fix stl addon (hope it's the right one! :p )
2013-03-26 08:21:39 +00:00
80793a9d08
fix [ #34682 ] STL importer ValueError exception
2013-03-26 04:06:46 +00:00
c75f170adb
use object.update_from_editmode() for scripts which read object data.
2013-03-21 14:55:28 +00:00
9e11509b70
make option for applying modifiers consistent
2013-02-07 04:25:53 +00:00
2dc06f6d50
Style edit (mostly), use """ for docstrings (not ''').
2012-07-03 09:01:43 +00:00
e63e95789e
update addons enabled by default to use 'faces -> tessfaces' also grease pencil scatter and quake map export.
2012-03-23 01:18:52 +00:00
eafdd14144
reverse stl export vector rotation order,
...
also clear temp meshes after export.
2011-07-25 03:02:01 +00:00
1113b9f137
fix [ #26895 ] STL import in Win 7 64bit
2011-05-05 08:27:07 +00:00
374c7c2a7b
update for changes in rna api
2011-03-14 01:38:56 +00:00
e942288a9c
correct exception
2011-03-04 05:26:48 +00:00
a2f135e7d7
use mesh.validate() to ensure all meshes of imported data is ok and wont crash blender.
2011-02-11 12:09:15 +00:00
c05f4813b6
incorrectly switched mesh.update() --> mesh.update_tag(),
...
update_tag() tags for depsgraph update only, update() executes normal recalculation and creates edge data.
2011-02-08 21:36:44 +00:00
fe45d789d8
rename id.update() to update_tag()
2011-02-07 08:16:01 +00:00
d746994e15
add GPL2 header
2011-01-21 09:54:16 +00:00
5722bc15cd
bugfix [ #25635 ] STL export results in error
...
also made some pep8 corrections
2011-01-14 19:31:42 +00:00
03ade77ddc
Fix for matrix * vector api cleanup
2010-11-26 12:19:41 +00:00
3f2f9e4d62
better use of blender api
2010-09-08 12:46:40 +00:00
3ef73cf78c
Fix #23394 : STL export script did not check if objects could be
...
converted to meshes, making export fail with empties and armatures.
2010-08-20 10:13:04 +00:00
5027ccba53
updates for changes in blenders api
2010-08-18 03:42:53 +00:00
38bf4b71cc
Fix #22907 : STL export did not take object transformation into account.
2010-07-28 11:53:04 +00:00
09095f9e62
Import original io_mesh_stl from Guillaum HG
2010-04-17 12:28:49 +00:00