Sybren A. Stüvel
7b3e441bcf
Improved docstring of mathutils.Matrix.lerp()
2018-01-18 09:58:14 +01:00
Sybren A. Stüvel
9811150952
Improve docstring for mathutils.Matrix.decompose()
2018-01-18 09:38:01 +01:00
Campbell Barton
e428ea3e00
Cleanup: indentation
2018-01-16 11:40:43 +11:00
Campbell Barton
ec52e64a5d
RNA: Add RNA_property_string_set_bytes
...
This is needed to set values that contain zero bytes
(where the length isn't fixed).
2018-01-15 15:59:10 +11:00
Campbell Barton
a33a5880f7
Fix bmesh.utils.face_join arg parsing
2018-01-12 14:51:15 +11:00
Campbell Barton
dd4e0cd3e3
DNA/RNA: add 'py_instance' for ID types
...
Avoid creating new Python instances
every time a scene, object, mesh .. etc are accessed.
Also resolves crashes T28724, T53530
although it's only valid for ID types, not modifiers vertices etc.
Back-ported from blender2.8 branch.
2017-12-11 18:37:54 +11:00
Campbell Barton
d47d263b4b
Cleanup: style
2017-12-04 16:37:31 +11:00
Campbell Barton
e32cfb0743
Cleanup: rename bpy_util -> bpy_capi_utils
...
This is for internal CAPI use only, avoid confusion w/ bpy.utils module.
2017-11-29 21:11:29 +11:00
Campbell Barton
c17c6557b4
PyAPI: add function to check any mathutils type
...
Also add CheckExact versions of type checking macros.
2017-11-29 16:13:26 +11:00
Julian Eisel
ad625acda8
RNA: Allow structs to define tags for their properties
...
Adds support for defining a number of tags as part of the rna-struct
definition, which its properties can set similar to property-flags.
BPY supports setting these tags when defining custom properties too.
* To define tags for a struct (which its properties can use then), define the tags in an `EnumPropertyItem` array, and assign them to the struct using `RNA_def_struct_property_tags(...)`.
* To set tags for an RNA-property in C, use the new `RNA_def_property_tags(...)`.
* To set tags for an RNA-property in Python, use the newly added tags parameter. E.g. `bpy.props.FloatProperty(name="Some Float", tags={'SOME_TAG', 'ANOTHER_TAG'})`.
2017-11-29 13:53:34 +11:00
Campbell Barton
0b325ba201
PyAPI: PyC_Err_PrintWithFunc utility function
...
Move function error printing utility into py_capi_utils.
2017-11-29 13:41:10 +11:00
Campbell Barton
7adc698eed
Cleanup: order BLI before BKE headers
...
This was done nearly everywhere already
2017-11-14 17:23:40 +11:00
Campbell Barton
aae8e21100
BMesh Py API: Expose color alpha
2017-11-12 15:48:24 +11:00
Campbell Barton
1d409defbf
Docs: clarify return value for BVH API
2017-10-27 16:14:24 +11:00
Campbell Barton
8661ab12a6
Fix BMesh PyAPI internal flag clearing logic
...
Would leave the flag set on raising an exception.
2017-10-24 16:52:54 +11:00
Campbell Barton
1aa5b63661
Docs: improve bmesh exception message
...
Suggested in T53131
2017-10-23 21:57:32 +11:00
Campbell Barton
959a58da9e
Cleanup: redundant casts
2017-10-20 14:03:22 +11:00
Campbell Barton
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
Germano
0a435d49ba
Fix T53074: Use the pybuffer->itemsize to get the corresponding GLtype
...
It seems that `typestr` does not always define the final size of the element. And it varies by operating system.
Then use the `typestr` only to know the itemtype is `float` type or not.
2017-10-17 12:06:52 -02:00
Bastien Montagne
383df45af9
Fix bad 'poll' prop callback API doc.
...
This was added to all prop types, when it is only available for Pointer ones.
2017-10-15 20:38:29 +02:00
Campbell Barton
b29e37ed81
Docs: add note for bmesh face_split_edgenet
2017-10-12 23:36:42 +11:00
Campbell Barton
c454d816a9
Cleanup: style
2017-10-06 16:56:41 +11:00
Campbell Barton
96477be3b6
PyAPI: fast keyword parsing for bpy modules
...
No functional changes.
2017-10-05 10:52:18 +11:00
Campbell Barton
ffb190244c
Fix setting the operator name in Py operator API
2017-10-05 10:50:51 +11:00
Campbell Barton
08f728a3e9
Cleanup: redundant casts
2017-10-04 16:52:55 +11:00
Campbell Barton
92272f56e6
PyAPI: fast keyword parsing for __import__
...
No functional changes.
2017-10-04 15:54:41 +11:00
Campbell Barton
728cffa9ce
PyAPI: fast keyword parsing for bpy.props
...
No functional changes.
2017-10-04 15:13:52 +11:00
Campbell Barton
cbe07d980c
Python: bump minimum version to 3.6
2017-10-03 23:50:34 +11:00
Campbell Barton
1f18523edf
Cleanup: switch fall-through warning
2017-09-28 13:41:54 +10:00
Germano
5c6e3ff497
bgl module: extend gl_buffer_type_from_py_format_char function to work with more string formats
...
Only basic types of character codes were being used
2017-09-27 16:07:06 -03:00
Campbell Barton
6c98859b77
Cleanup: warning
2017-09-28 02:04:58 +10:00
Germano
2de5e14f53
bgl module: Interpret a buffer as a bgl.Buffer
...
Differential Revision: https://developer.blender.org/D2857
2017-09-27 11:20:00 -03:00
Aaron Carlisle
efd5e3c254
Remove quicktime support
...
It has been deprecated since at least macOS 10.9 and fully removed in 10.12.
I am unsure if we should remove it only in 2.8. But you cannot build blender with it supported when using a modern xcode version anyway so I would tend towards just removing it also for 2.79 if that ever happens.
Reviewers: mont29, dfelinto, juicyfruit, brecht
Reviewed By: mont29, brecht
Subscribers: Blendify, brecht
Maniphest Tasks: T52807
Differential Revision: https://developer.blender.org/D2333
2017-09-22 16:40:05 -04:00
Campbell Barton
0c82a6fec8
Cleanup: unused define
2017-09-22 07:23:03 +10:00
Campbell Barton
60956397ca
Cleanup: BLI_utildefines prefix for header-only libs
...
This allows to have different macro headers without them sharing
similar names to regular C modules.
2017-09-19 20:16:05 +10:00
Campbell Barton
11a9434c2d
Resolve T52687: Add node label shows as 'Unknown'
...
Add type access method, need to extend to other types
for now just get node UI working properly again.
2017-09-09 22:56:58 +10:00
Campbell Barton
3c3d0898b0
PyAPI: Fix mathutils freeze allowing owned data
2017-09-09 11:08:38 +10:00
Campbell Barton
30d8829780
Docs: mathutils docstrings
2017-09-09 11:02:26 +10:00
Campbell Barton
90eb93791f
Cleanup: mathutils vector comments
...
Use doxy markup & correct outdated info.
2017-09-09 10:50:40 +10:00
Campbell Barton
3930e46e37
Correct last commit
2017-09-09 10:15:16 +10:00
Campbell Barton
002cc6aef3
Cleanup: Simplify SWIZZLE macro
...
- Use indices instead of character args.
- Use numbered macros instead of variadic args.
Parsing using rtags used over 11gb of memory. While this should be
resolved upstream (report as #1053 ), the extra complexity didn't give
any real advantage.
2017-09-09 10:10:05 +10:00
Campbell Barton
60020f57d7
Correct function name in argument parsing
2017-09-08 00:59:27 +10:00
Campbell Barton
e44bf43f6c
PyAPI: add function to get an RNA subclass
...
This is inconvenient in regular Python, add a class-method
to perform the operation, eg:
bpy.types.Node.bl_rna_find_subclass("CustomNodeType")
2017-09-08 00:02:09 +10:00
Campbell Barton
f4fb329808
RNA/PyAPI: Expose Py classes in bpy.types
...
Operators and their properties are two different types
Previously both operators and their properties are added
causing C operators to access the properties, Python the classes.
Favor consistency in this case so only Python classes are added.
2017-09-04 14:49:27 +10:00
Campbell Barton
85d53620aa
Cleanup: avoid confusing assignment
2017-09-04 14:35:35 +10:00
Campbell Barton
32e36a1782
Correct own error simplifying matrix checks
2017-09-03 00:05:11 +10:00
Campbell Barton
636baa598a
RNA: Limit which classes struct-map contains
...
Only add subclasses of: Menu, Panel, Header, UIList, Operator
This helps avoid unnecessary naming collisions,
See T52599 for details
2017-08-31 23:49:50 +10:00
Campbell Barton
cb7f1f8160
Docs: BMesh.from_mesh behavior w/ multiple calls
2017-08-28 12:40:36 +10:00
Campbell Barton
738d942d29
Correct error in recent use of PyC_Long_*
...
Regression in 46cf33bf0
2017-08-25 02:09:23 +10:00
Campbell Barton
b9513706cb
Cleanup: mark VA_NARGS_COUNT as public
...
Was already used in two other headers, remove underscore prefix.
2017-08-23 20:16:17 +10:00