Campbell Barton
8ce2ac0d9a
Fix non UTF8 paths for Python functions which take path arguments
...
Use PyC_ParseUnicodeAsBytesAndSize parser instead of "s" / "z" type
specifier. This relates to #111033 , resolving Python exceptions which
causes icons not to load (for e.g.).
Now bytes are also supported as path arguments.
2023-08-11 15:02:20 +10:00
Campbell Barton
d2a2d06691
Cleanup: simplify argument parsing for preview load enum
...
Use PyC_StringEnumItems to handle matching a value & raising an error
for invalid arguments.
2023-08-11 12:35:06 +10:00
Jacques Lucke
cc4d5c432c
RNA: move headers to C++
...
Also see #103343 .
Pull Request: https://projects.blender.org/blender/blender/pulls/111022
2023-08-10 22:40:27 +02:00
Campbell Barton
b29a4cdcfc
Cleanup: various non-functional changes for C++ (python, windowmanager)
...
- Remove redundant void, struct.
- Use function style casts.
2023-07-21 10:59:54 +10:00
Jacques Lucke
6fcecb7e46
BPY: move bpy and mathutils to C++
...
Also see #103343 .
Pull Request: https://projects.blender.org/blender/blender/pulls/110299
2023-07-21 02:18:59 +02:00