4d43683899
PyAPI: ImBuf.copy now copies the underlying imbuf
...
Without this, copy wasn't useful.
2021-04-08 20:19:26 +10:00
d5c6485372
Cleanup: clang format
2021-04-01 11:18:26 +11:00
3f47df577d
Cleanup: use new BLI_assert_unreachable macro
2021-03-24 12:38:08 +11:00
c47990f41c
PyAPI: expose imbuf.types.ImBuf, include in API docs
...
Without this, the ImBuf type wasn't part of documentation.
2021-02-25 12:04:23 +11:00
dae445d94a
Fix T85573: Building with Python 3.10a5 fails
...
Replace deprecated _PyUnicode_AsString{AndSize} usage.
T83626 still needs to be resolved before 3.10 is usable.
2021-02-13 23:09:55 +11:00
d21f445469
PyAPI: remove Python 3.7x compatibility code
...
This removes Python version checks needed to build with 3.8+ and 3.7x.
Ref D10381
2021-02-12 08:08:15 +11:00
b8e536f381
Fix imbuf.new & resize allowing zero & negative dimensions
2021-01-04 20:05:32 +11:00
a6285339ba
Cleanup: remove unused optional argument to imbuf.new
...
While this didn't cause any problems, it was incorrect.
2021-01-04 20:00:27 +11:00
c4d8f6a4a8
Cleanup: clang-format
2020-11-11 09:11:43 +11:00
cd9acfed4f
Cleanup: use preprocessor version check for PyTypeObject declaration
...
While `tp_print` was deprecated, Python 3.8+ uses this for
'tp_vectorcall_offset' which wasn't stated in the comment from
efd71aad4f
.
Instead of suppressing clang-tidy, use preprocessor a check since
this properly represents the difference between Python versions.
2020-11-11 09:11:21 +11:00
efa7aaa97f
Cleanup: use const variables where possible in the Python API
2020-08-20 16:10:13 +10:00
3d48d99647
Cleanup: Python, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/python` module.
No functional changes.
2020-08-07 13:38:07 +02:00
2d1cce8331
Cleanup: make format
after SortedIncludes change
2020-03-19 09:33:58 +01:00
9a9f39e466
Cleanup: remove redundant 'char *' casts
2019-12-20 10:42:57 +11:00
36b6fb5cd6
Cleanup: warnings building with Python 3.8
2019-10-16 14:44:36 +11:00
Colin Basnett
f0f189de76
Fix ImBuf.load failure showing filename as garbage bytes
...
Differential Revision: https://developer.blender.org/D5879
2019-10-01 20:10:46 +02:00
aba6fc8208
ImBuf Py API: implement resize method argument
2019-10-01 05:18:30 +10:00
73a6fcfa80
ImBuf: add planes, channels attributes
...
D5857 by @cmbasnett
2019-09-23 09:56:46 +10:00
6cb1e38c87
ImBuf Py API: add filepath access
...
D5804 by @cmbasnett with setter support added.
2019-09-16 10:39:24 +10:00
367ce71b47
ImBuf Py API: rename filename to filepath
...
Match RNA image naming.
2019-09-16 10:31:08 +10:00
2ee257e2c3
ImBuf Py API: add crop method
2019-07-04 22:18:30 +10:00
b2e3f23bec
Cleanup: remove redundant cast
2019-07-04 21:14:12 +10:00
41a63556cf
Revert "Cleanup: add semicolon after PyObject_VAR_HEAD"
...
This reverts commit a01bcfa636
.
This causes MSVC2019 build to fail with error C2059
Unfortunately this means we have to put up with bad formatting
in Python structs.
2019-05-03 18:09:52 +10:00
a01bcfa636
Cleanup: add semicolon after PyObject_VAR_HEAD
...
clang-format doesn't expand macros,
add semicolon to prevent misleading formatting.
2019-05-03 12:43:18 +10:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
df237b964b
PyAPI: add ImBuf.copy
...
DD348 by @kilon w/ edits.
2018-06-26 09:31:57 +02:00
409cfba1a3
Python API: Initial 'imbuf' API
...
Support only basic operations new/load/write & resize.
Add now so we can extend as needed & more easily accept patches.
2018-06-07 08:00:13 +02:00