Age | Commit message (Collapse) | Author |
|
|
|
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
|
|
D3473 by @JacquesLucke
|
|
We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.
|
|
|
|
DD348 by @kilon w/ edits.
|
|
|
|
Essentially 'validating' them as G_MAIN, and adding some asserts in
dubious places, that handled IDs are actually in G_MAIN.
|
|
Support only basic operations new/load/write & resize.
Add now so we can extend as needed & more easily accept patches.
|
|
|
|
Was using Python which wasn't very efficient (even for logging).
|
|
Match dict.pop behavior.
|
|
Useful for logging properties passed to operators.
|
|
|
|
Adds categories "bpy.context" & "bpy.rna"
|
|
Move function error printing utility into py_capi_utils.
|
|
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.
|
|
|
|
|
|
No functional changes.
|
|
|
|
with more string formats
Only basic types of character codes were being used
|
|
|
|
Differential Revision: https://developer.blender.org/D2857
|
|
This allows to have different macro headers without them sharing
similar names to regular C modules.
|
|
Was already used in two other headers, remove underscore prefix.
|
|
So we can use in headers without pulling in many other defines.
|
|
Would cause problems if args included function calls.
|
|
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.
|
|
|
|
Recent inclusion caused build error with the BGE.
|
|
Avoids setting exceptions inline,
also use Matrix_ParseAny for bmesh.ops.
Some inline exceptions are kept because they show useful details.
|
|
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.
|
|
Allows compiling with newer Python versions.
Also add missing decref when compiling as a py-module.
|
|
The absence of datablock properties "will certainly be resolved soon as the need for them is becoming obvious" said the [[http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.67/Python_Nodes|Python Nodes release notes]]. So this patch allows Python scripts to create ID Properties which reference datablocks.
This functionality is implemented for `PointerProperty` and now such properties can be created with Python.
In addition to the standard update callback, `PointerProperty` can have a `poll` callback (standard RNA) which is useful for search menus. For details see the test included in this patch.
Original author: @artfunkel
Alexander (Blend4Web Team)
Reviewers: brecht, artfunkel, mont29, campbellbarton
Reviewed By: mont29, campbellbarton
Subscribers: jta, sergey, campbellbarton, wisaac, poseidon4o, mont29, homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov, fjuhec, sharlybg, cardboard, duarteframos, blueprintrandom, a.romanov, BYOB, disnel, aditiapratama, bliblubli, dfelinto, lukastoenne
Maniphest Tasks: T37754
Differential Revision: https://developer.blender.org/D113
|
|
Support Python's buffer protocol for ID-properties.
|
|
Utility to execute a string and get the resulting string,
matching BPY_execute_string_as_number.
Not used just yet but generally useful function.
|
|
|
|
Pass size when its known.
|
|
|
|
Read the string length from Python directly when assigning id-properties
|
|
|
|
|
|
Thanks to Kévin Dietrich for spotting driver leak,
checked other uses of PyDict_SetItem and found more.
|
|
No need to re-convert from C strings to PyUnicode.
|
|
A GL_INT buffer was reported as GL_BYTE.
|
|
|
|
|
|
|
|
Use BPY_execute_* prefix for all Python execution commands
|