25ec4b437f
Cleanup: style, use braces for the Python API
2019-03-30 07:14:28 +11:00
85915ae1aa
Python API: allow passing None to some BGL functions instead of bgl.Buffer
...
Many OpenGL functions take NULL pointers, passing those was quite complicated
with some addons even using ctypes to manipulate internal bgl.Buffer pointers.
2019-03-26 19:56:43 +01:00
8f817de0cb
Cleanup: use plural names for Main lists
...
Convention was not to but after discussion on 918941483f we agree its
best to change the convention.
Names now mostly follow RNA.
Some exceptions:
- Use 'nodetrees' instead of 'nodegroups'
since the struct is called NodeTree.
- Use 'gpencils' instead of 'grease_pencil'
since 'gpencil' is a common abbreviation in the C code.
Other exceptions:
- Leave 'wm' as it's a list of one.
- Leave 'ipo' as is for versioning.
2019-03-08 09:50:00 +11: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
ab5e69e660
Cleanup: remove contributors for CMake files
...
Following removal from C source code.
See: 8c68ed6df1
2019-02-05 09:10:32 +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
c0f88ed8a8
Cleanup: sort forward declarations of enum & struct
...
Done using:
source/tools/utils_maintenance/c_sort_blocks.py
2019-01-28 21:17:58 +11:00
f20dbc293f
Cleanup: blank lines over doxy headers
2019-01-26 21:43:24 +11:00
1e4aab36c2
Cleanup: remove redundant BKE/BLI/BIF headers
2019-01-26 21:20:25 +11:00
8a61ea7296
Cleanup: add trailing commas
...
Prevents clang-format merging into a single line.
2019-01-19 13:58:35 +11:00
9bfc9d799e
PyAPI: Avoid redundant prefix for PyC_Err_Format_Prefix
...
Only show the exception value type when it's not a string.
2019-01-17 08:43:57 +11:00
debb68024e
PyAPI: add PyC_Err_SetString_Prefix for internal use
2019-01-17 08:38:59 +11:00
0373ff5e9c
Cleanup: end bgl macros w/ semicolon
...
Needed for clang-format.
2019-01-10 12:38:11 +11:00
64ec05b64d
Cleanup: remove some useless BKE_library and BKE_main includes.
...
Makes it simpler to make some changes...
Also fix order of some includes (use alphabetical please).
2018-11-07 20:58:54 +01:00
4b2110fc86
Cleanup: Remove 'BKE_library.h' include from 'BKE_main.h'
...
That kind of implicit includes should really only be done when totally,
absolutely necessary, and ideally only with rather simple 'second-level'
headers.
Otherwise not being explicit with includes always end up biting in
unexpected ways...
2018-11-07 20:58:53 +01:00
c49142dafe
API Docs: remove 'level' from blf.color arguments
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3819
2018-10-22 14:55:18 +02:00
66738d4aa0
Merge branch 'master' into blender2.8
2018-10-11 09:08:30 +11:00
2083a7e274
Cleanup: style (pointers)
2018-10-11 09:03:39 +11:00
cf03658adb
Fix misuse of Py_INCREF in module creation.
...
Differential Revision: https://developer.blender.org/D3697
2018-10-08 20:01:55 -03:00
d022794cad
Cleanup: rename checks for Python struct strings
...
Using 'format' prefix made this read as if t was for string formatting.
Use 'PyC_StructFmt' prefix instead since these values are compatible
with formatting from Python's 'struct' module.
2018-10-08 08:37:32 +11:00
1fd1735df0
CPython: use format char utilities in idprop_py_api
2018-10-07 12:24:47 -03:00
af7967b010
CPython: py_capi_utils: format char utilities do not need to be inline.
2018-10-07 12:22:17 -03:00
91bfea5b05
CPython: py_capi_utils: use more descriptive names for format string utilities.
2018-10-07 12:21:09 -03:00
ee2e30683c
Cleanup: style
2018-10-07 17:49:22 +11:00
495a7128cb
Cleanup: use the naming convention in py_capi_utils
...
And use inline functions instead of preprocessor directives.
2018-10-06 01:15:15 -03:00
0f55334413
Cleanup: use new format string utility
2018-10-06 00:13:54 -03:00
98e62d459a
py_capi_utils: add utilities for format string in struct module style syntax.
2018-10-06 00:13:40 -03:00
77b381bd35
Merge branch 'master' into blender2.8
2018-09-26 11:42:38 +10:00
63658ae76d
Cleanup: redundant include
2018-09-26 10:55:22 +10:00
9682e43bf9
BGL: Wrap glBlitFramebuffer
2018-09-24 13:12:50 -03:00
6b433f4eb3
Merge branch 'master' into blender2.8
2018-09-19 18:20:50 +02:00
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
76d67b4db4
Merge branch 'master' into blender2.8
2018-09-13 17:08:58 +10:00
44f719b632
Cleanup: use PyImport_GetModuleDict
...
Replace direct access using PyThreadState_GET
2018-09-13 17:06:07 +10:00
88a893a838
Merge branch 'master' into blender2.8
2018-09-03 12:48:51 +10:00
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
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
ae57383648
Cleanup: comment blocks
2018-09-02 18:28:27 +10:00
39ee0f01e3
Merge branch 'master' into blender2.8
2018-08-31 14:25:42 +10:00
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
12acf1e4f8
Cleanup: Update some links to new wiki
2018-08-13 21:55:30 -04:00
0f449541d2
Merge branch 'master' into blender2.8
2018-08-01 09:01:29 +10:00
6a39d72558
Cleanup: declare vars or make static
2018-08-01 08:57:31 +10:00
5300ba0ba5
Merge branch 'master' into blender2.8
2018-07-31 17:03:28 +10:00
21f61cbe73
BLF: replace global aa pref w/ monochrome flag
...
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
2018-07-31 16:57:05 +10:00
f77f819854
Merge branch 'master' into blender2.8
2018-07-30 16:41:28 +10:00
ff6c6f18c1
Cleanup: id-property creation
...
D3473 by @JacquesLucke
2018-07-30 16:36:07 +10:00
36a9436d80
Merge branch 'master' into blender2.8
2018-07-01 16:22:06 +02:00