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
Campbell Barton
37cfa44222
Cleanup: move variadic defines to their own header
...
So we can use in headers without pulling in many other defines.
2017-08-23 20:16:17 +10:00
Campbell Barton
55861cb234
PyAPI: avoid instantiating args twice in macro
...
Would cause problems if args included function calls.
2017-08-23 18:48:32 +10:00
Campbell Barton
f09dee5aed
Fix error in PointerProperty argument list
...
Regression in a7b3047
2017-08-23 02:14:33 +10:00
Campbell Barton
691ed21842
PyAPI: replace PyC_FromArray with typed functions
...
This was meant to be generic but introduced possible type errors
and unnecessary complication.
Replace with typed PyC_Tuple_PackArray_* functions.
Also add PyC_Tuple_Pack_* macro which replaces some uses of
Py_BuildValue, with the advantage of not having to parse a string.
2017-08-22 18:10:57 +10:00
Brecht Van Lommel
81a76469ca
Fix for recent fix in fc890cd, cstdint is c++11 only so don't use it yet.
2017-08-21 19:05:17 +02:00
Campbell Barton
e27a59d411
Replace BLI_INLINE w/ Py_LOCAL_INLINE for Python
...
Recent inclusion caused build error with the BGE.
2017-08-20 21:14:33 +10:00
Campbell Barton
f6825d333b
Fix bpy library load: invalid function signature
2017-08-20 19:04:16 +10:00
Campbell Barton
46cf33bf01
PyAPI: Make use of PyC_LongAs... API
...
Avoids setting exceptions inline,
also use Matrix_ParseAny for bmesh.ops.
Some inline exceptions are kept because they show useful details.
2017-08-20 15:49:10 +10:00
Campbell Barton
a10a7f42de
PyAPI: Integer conversion functions
...
Python's C-API doesn't provide functions to get
int's at specific integer sizes.
Leaving the caller to check for overflow,
which ended up being ignored in practice.
Add API functions that convert int/uint 8/16/32/64, also bool.
Raising overflow exception for unsupported ranges.
2017-08-20 15:39:08 +10:00
Campbell Barton
2ff9c8a3bc
PyAPI: avoid redundant PyLong_AsLong call
...
Assigning to an RNA array converted from Python to C twice.
2017-08-20 15:30:14 +10:00
Campbell Barton
1cc4033df8
PyAPI: expose matrix parsing function
2017-08-19 21:36:50 +10:00
Campbell Barton
4e468ceb71
PyAPI: Fix memory leak w/ empty, allocated enums
2017-08-18 18:29:27 +10:00
Bastien Montagne
c034193821
Cleanup: remove useless DM_ensure_looptri().
...
That one was doing exactly same thing as `dm->getLoopTriArray()`, no
point in having twice the same code here...
2017-08-11 17:08:41 +02:00
Campbell Barton
daa834bc11
RNA: Operators were excluded from struct map
...
Recent changes meant structs that were registered without a name
wouldn't get added to the map.
Now assigning identifiers manages the struct-map.
2017-08-11 20:11:01 +10:00
Sybren A. Stüvel
01ee88563b
Fix T46329: scene_update_{pre,post} doc needs clarification
...
The documentation for the bpy.app.handlers.scene_update_{pre,post}
handlers states that they're called "on updating the scenes data".
However, they're called even when the data hasn't changed. Of course
such handlers are useful, but the documentation should reflect the
current behaviour.
Reviewers: mont29, sergey
Subscribers: Blendify
Maniphest Tasks: T46329
Differential Revision: https://developer.blender.org/D1535
2017-08-08 15:16:51 +02:00
Campbell Barton
87d5e34453
Fix T52213: Enum drivers no longer work
...
Regression in D1812: PyDriver variables as Objects
Taking the Python representation is nice in general
but for enums it would convert them into strings,
breaking some existing drivers.
2017-07-29 02:39:16 +10:00
Campbell Barton
edc6bec9d6
PyAPI: Skip user scripts w/ factory-startup
...
Adds bpy.app.factory_startup,
used to check if user scripts should be loaded.
2017-07-25 20:52:08 +10:00
Brecht Van Lommel
d268cad06a
Fix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG.
2017-07-17 18:31:19 +02:00
Campbell Barton
3d1e5bca88
PyAPI: don't use deprecated PyModule_GetFilename
...
Allows compiling with newer Python versions.
Also add missing decref when compiling as a py-module.
2017-07-17 12:53:55 +10:00
Campbell Barton
c822b1612f
Docs: correct doc-strings
2017-06-26 07:36:29 +10:00
Campbell Barton
72c9141a7a
Cleanup: doxygen comments
...
Also remove duplicate & mismatching comments from grease-pencil header.
Keep comments close to implementation to avoid getting out of sync.
2017-06-19 10:04:30 +10:00
Aaron Carlisle
ed6d88f06a
PyAPI: Fix warning about indent
2017-06-16 12:30:18 -04:00
Aaron Carlisle
44fd84bcc3
PyAPI: Proper Solution to bpy.app
2017-06-15 00:54:41 -04:00
Aaron Carlisle
df7c609fda
PYAPI: Fix mathutils doc structure
2017-06-14 16:47:43 -04:00
Campbell Barton
00c4f49a6d
Cleanup: indentation, long lines
2017-06-12 13:38:21 +10:00
Campbell Barton
8a757bf34a
RNA: remove static strings from registration
...
* Static strings aren't needed anymore, use stack memory.
* Fix obscure leak on failed macro registration.
* Use prefix for wrappers exported from bpy module.
2017-06-09 07:20:25 +10:00