mano-wii
9fb9604c19
gpu.shader module: Do not free builtin shaders.
2018-09-20 15:21:59 -03:00
mano-wii
9c2dc808ce
gpu.shader.builtin module: Add GPU_SHADER_2D_IMAGE.
2018-09-20 13:55:43 -03:00
Campbell Barton
e4c53d9163
Missing from last commit
2018-09-20 14:57:01 +10:00
Campbell Barton
e228574417
PyAPI: correct term for class property warning
2018-09-20 14:55:07 +10:00
Brecht Van Lommel
6b433f4eb3
Merge branch 'master' into blender2.8
2018-09-19 18:20:50 +02:00
Brecht Van Lommel
a4f2ebc78d
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3700
2018-09-19 18:18:05 +02:00
Campbell Barton
bb3ec3ebaf
BLI_utildefines: rename pointer conversion macros
...
Terms get/set don't make much sense when casting values.
Name macros so the conversion is obvious,
use common prefix for easier completion.
- GET_INT_FROM_POINTER -> POINTER_AS_INT
- SET_INT_IN_POINTER -> POINTER_FROM_INT
- GET_UINT_FROM_POINTER -> POINTER_AS_UINT
- SET_UINT_IN_POINTER -> POINTER_FROM_UINT
2018-09-19 12:12:21 +10:00
Campbell Barton
f35e9f047a
Merge branch 'master' into blender2.8
2018-09-19 12:14:36 +10:00
Alexander Gavrilov
8c87e681a5
Fix driver expression bytecode validation crash if parsing fails.
...
Another NULL pointer access: nothing to validate if it already failed.
2018-09-16 10:46:28 +03:00
Alexander Gavrilov
9901679ce8
Fix a crash when a driver expression evaluates to NaN.
...
The debug logging statement was accessing a NULL pointer.
Also happens in 2.79.
2018-09-16 09:06:57 +03:00
Campbell Barton
83d4328ce7
PyDoc: add gpu.shader
...
Also some syntax corrections.
2018-09-15 10:35:03 +10:00
mano-wii
1287965089
GPU module: Initial implementation of the gpu.shader submodule.
...
Differential Revision: https://developer.blender.org/D3688
2018-09-14 09:46:19 -03:00
Campbell Barton
09aa446100
Merge branch 'master' into blender2.8
2018-09-13 20:15:18 +10:00
Campbell Barton
254067106e
PyAPI: remove operator methods that leak memory
2018-09-13 20:10:56 +10:00
Campbell Barton
aacdd28edd
PyDoc: add bpy.app.icons to docs
2018-09-13 19:21:08 +10:00
Campbell Barton
af1cf00003
Merge branch 'master' into blender2.8
2018-09-13 18:19:24 +10:00
Campbell Barton
a6fc718029
PyAPI: add API call to get an operators type
...
Getting the instance leaks memory and was only meant to be used for
generating docs.
2018-09-13 18:16:06 +10:00
Campbell Barton
d538de90a7
Merge branch 'master' into blender2.8
2018-09-13 17:56:32 +10:00
Campbell Barton
9900addf11
Cleanup: _bpy.ops utility to lookup an operator
2018-09-13 17:47:56 +10:00
Campbell Barton
c197c210e4
PyAPI: add bpy.app.icons to sys.modules
2018-09-13 17:20:27 +10:00
Campbell Barton
76d67b4db4
Merge branch 'master' into blender2.8
2018-09-13 17:08:58 +10:00
Campbell Barton
44f719b632
Cleanup: use PyImport_GetModuleDict
...
Replace direct access using PyThreadState_GET
2018-09-13 17:06:07 +10:00
Campbell Barton
8d3a39ff56
Cleanup: use float name in property range function
2018-09-13 08:17:16 +10:00
mano-wii
cde66d7916
GPUVertBuf.fill: support for objects with buffer interface.
...
Differential Revision: https://developer.blender.org/D3684
2018-09-11 10:03:53 -03:00
mano-wii
9eb1c3f70c
gpu module: close quotation marks in descriptions
2018-09-06 04:43:08 -03:00
mano-wii
5ad36c975f
gpu module: retouching the description of the types.
2018-09-06 04:39:39 -03:00
Campbell Barton
fa6ed6259c
Cleanup: style
2018-09-06 10:47:46 +10:00
Campbell Barton
539c140b3e
Correct build errors
2018-09-06 10:47:46 +10:00
mano-wii
6d04e48539
Join the python modules gpu and _gpu into one.
...
Maybe it's still early to set the new drawing api for python.
But joining these two modules is an initial step.
```
>>> gpu.
matrix
select
types
```
```
>>> gpu.types.GPU
Batch(
OffScreen(
VertBuf(
VertFormat(
```
The creation of a new offscreen object is now done by the `GPUOffscreen.__new__` method.
Reviewers: campbellbarton, dfelinto
Reviewed By: campbellbarton, dfelinto
Tags: #bf_blender_2.8
Differential Revision: https://developer.blender.org/D3667
2018-09-05 21:15:44 -03:00
Dalai Felinto
e8dc73a0c9
Fix GPU.offscreen to use depsgraph and updated API
2018-09-05 12:50:33 -03:00
Bastien Montagne
a43ebc63fa
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/collision.c
2018-09-03 17:44:36 +02:00
Brecht Van Lommel
4da2acae3a
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3668
2018-09-03 16:55:01 +02:00
Campbell Barton
88a893a838
Merge branch 'master' into blender2.8
2018-09-03 12:48:51 +10:00
Campbell Barton
7ff1750218
PyAPI: add optional imports to expression eval API
...
Avoids having to use `__import__` to access modules.
2018-09-03 12:43:43 +10:00
Campbell Barton
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
Campbell Barton
ae57383648
Cleanup: comment blocks
2018-09-02 18:28:27 +10:00
Sergey Sharybin
7f36fb458c
Merge branch 'master' into blender2.8
2018-08-31 17:08:29 +02:00
Monique Dewanchand
d9b9a46aa3
Python: Enable MASS unit in FloatProperty
...
MASS unit was already implemented for the C api. Only making sure it is
accessible in the python api. Also added 'CAMERA' to the documentation as a valid option.
2018-08-31 15:00:38 +02:00
Campbell Barton
ac9e1e692c
Merge branch 'master' into blender2.8
2018-08-31 14:53:34 +10:00
Campbell Barton
976f14fbcf
PyAPI: replace checks for invalid input w/ assert
...
Was returning -1 as a bool argument,
in this case the caller needs to ensure non-null args.
2018-08-31 14:51:59 +10:00
Campbell Barton
39ee0f01e3
Merge branch 'master' into blender2.8
2018-08-31 14:25:42 +10:00
Campbell Barton
98800aa4e0
C/Python API: Add PyC_RunString_AsIntPtr
...
Utility to get an int or pointer from a Python expression.
2018-08-31 14:21:32 +10:00
Campbell Barton
039b11f349
PyRNA: all optional args now must be keyword args
...
In some cases the RNA API should be updated to make arguments use the
'required' flag, instead of adjusting Python scripts.
See T47811
2018-08-28 13:55:11 +10:00
Campbell Barton
60b24f2415
Cleanup: indentation
2018-08-28 11:01:29 +10:00
Andrew Hale
1e6a5eb087
Implement BMesh Operator string enumerators and docs generation.
...
Partial implementation of T56496 for review.
Reviewers: campbellbarton
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3635
2018-08-27 16:15:54 +02:00
Campbell Barton
0cf12dfc14
Cleanup: indentation, style
2018-08-24 10:32:57 +10:00
Andrew Hale
dade2b7548
Python: Cleanup Noise Module
...
Implements the changes detailed in T56281
Reviewers: campbellbarton
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3590
2018-08-22 15:34:10 +02:00
Campbell Barton
7eaf00bfb0
Cleanup: style
2018-08-22 10:10:12 +10:00
Brecht Van Lommel
596c3368f4
Merge branch 'master' into blender2.8
2018-08-21 19:08:23 +02:00
Kenneth Perry
5dd64b3c88
Python API: expose missing LAYER_MEMBER property type registration.
...
Differential Revision: https://developer.blender.org/D3628
2018-08-21 13:03:25 +02:00