Campbell Barton
ec2bbc90e7
Merge branch 'master' into blender2.8
2017-10-18 17:09:41 +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
Campbell Barton
14af3e485f
Merge branch 'master' into blender2.8
2017-10-16 14:31:19 +11: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
37b457221e
Cleanup: remove Py3.5 compatible code
2017-10-07 15:14:36 +11:00
Campbell Barton
ea606a7847
Merge branch 'master' into blender28
2017-10-06 21:25:33 +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
Sergey Sharybin
63c472b4f9
Merge branch 'master' into blender2.8
2017-10-04 22:18:05 +05: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
Sergey Sharybin
98ba302f70
Merge branch 'master' into blender2.8
2017-09-25 18:57:43 +05: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
7d7741d25f
Merge branch 'master' into blender2.8
2017-09-11 16:52:53 +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
a133b74709
Merge branch 'master' into blender2.8
2017-09-08 03:18:39 +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
572b1a644f
Merge branch 'master' into blender2.8
2017-09-05 22:56:03 +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
c843e84892
Merge branch 'master' into blender2.8
2017-09-01 02:30:48 +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
58a4c767a1
Merge branch 'master' into blender2.8
2017-08-23 16:10:45 +10:00
Campbell Barton
f09dee5aed
Fix error in PointerProperty argument list
...
Regression in a7b3047
2017-08-23 02:14:33 +10:00
Campbell Barton
f4fe405da9
Manipulator: Add API target_get/set/range wrappers
...
Allows Python manipulators access the values of target properties
needed for Python to make use of the general target property interface.
2017-08-22 18:57:38 +10:00
Campbell Barton
bd935b5aed
Merge branch 'master' into blender2.8
2017-08-22 18:21:05 +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
Campbell Barton
adabc315e9
PyAPI: add gpu.select (initial module)
...
This only exposes load_id, it's needed for Python manipulator drawing.
2017-08-20 23:13:42 +10:00
Campbell Barton
2530ae6c74
Merge branch 'master' into blender2.8
2017-08-20 21:22:00 +10:00
Campbell Barton
cb03cc6600
PyAPI: gpu.matrix.push_pop context manager
...
Avoid un-balanced push/pop usage (which can interfere with Blender's
internal state) using a context manager.
2017-08-20 19:42:31 +10:00
Campbell Barton
f6825d333b
Fix bpy library load: invalid function signature
2017-08-20 19:04:16 +10:00
Campbell Barton
8037f3602f
PyAPI: Add exceptions to stack push/pop
...
Raise exception when stack limits are reached.
2017-08-20 17:26:51 +10:00
Campbell Barton
7497488149
Merge branch 'master' into blender2.8
2017-08-20 15:50:15 +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
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
64c7cf2036
PyAPI: correct int range checking
2017-08-20 10:34:21 +10:00
Campbell Barton
4e4e872478
PyAPI: Add gpu.matrix API
2017-08-20 00:01:19 +10:00
Campbell Barton
2332051419
Merge branch 'master' into blender2.8
2017-08-19 21:54:05 +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
Campbell Barton
cb67873ac5
PyAPI: Iniital gawain API for Python
...
Wraps vertex-format, vertex-buffer and batch's (enough for drawing).
Doesn't yet expose index-buffers or shaders.
2017-08-18 08:45:41 +10:00
Campbell Barton
73df38a879
RNA: don't register manipulator properties by name
...
Matching behavior for operators.
2017-08-18 07:50:31 +10:00
Campbell Barton
9567529b8f
Merge branch 'master' into blender2.8
2017-08-12 00:23:49 +10: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
5709021f52
Correct previous commit, instance should be cleared
...
Clear instance in case creating creating new instance fails.
In practice this shouldn't happen,
but better not cause further errors if it does.
2017-08-01 17:17:38 +10:00
Campbell Barton
5ac9e587d4
PyRNA: Ensure changed types creates a new instance
...
Changing lamp type for eg needs to create a new instance.
2017-08-01 17:14:09 +10:00
Campbell Barton
0e26707bce
Merge branch 'master' into blender2.8
2017-07-29 06:44:04 +10: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
48e8a1a167
Fix crash in recent changes to instancing
...
Registrable classes already handled their own instancing,
changes to enable instancing everywhere conflicted.
2017-07-27 03:27:14 +10:00