Campbell Barton
3d3bc74884
Cleanup: remove redundant const qualifiers for POD types
...
MSVC used to warn about const mismatch for arguments passed by value.
Remove these as newer versions of MSVC no longer show this warning.
2022-01-07 14:16:26 +11:00
Campbell Barton
63f8d18c0f
Cleanup: move public doc-strings into headers for 'python/intern'
...
Ref T92709
2021-12-10 21:40:53 +11:00
Campbell Barton
42a6b2fd06
Cleanup: move public doc-strings into headers for 'python'
2021-12-02 22:53:44 +11:00
Campbell Barton
1730829592
Cleanup: move RNA utility functions into a generic module
...
Avoid having to include bpy_rna.h for enum utility functions,
recently added to idprop_py_ui_api.c.
2021-09-01 16:33:42 +10:00
Campbell Barton
6776b74d0a
Cleanup: remove unused BLANK_PYTHON_TYPE define
2021-04-14 12:19:06 +10:00
Campbell Barton
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
Campbell Barton
5531697f6d
Cleanup: remove duplicate context variable (__py_context)
...
The context was stored both in __py_context & bpy_context_module.
This avoids duplicate functions to update them too.
2020-10-15 19:00:16 +11:00
Jacques Lucke
7283e6fb73
Merge branch 'blender-v2.90-release' into master
2020-08-07 10:04:57 +02:00
Jacques Lucke
91694b9b58
Code Style: use "#pragma once" in source directory
...
This replaces header include guards with `#pragma once`.
A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`),
because they are used in other places.
This patch has been generated by P1561 followed by `make format`.
Differential Revision: https://developer.blender.org/D8466
2020-08-07 09:50:34 +02:00
Jacques Lucke
814ca40c63
Merge branch 'blender-v2.90-release'
2020-07-28 16:37:01 +02:00
Jacques Lucke
b274d18aec
Cleanup: correct usage of extern-C blocks in various places
...
This removes extern-C blocks around other includes and adds
such blocks for some headers that need them.
2020-07-28 16:33:43 +02:00
Campbell Barton
565d7f75cc
UI: improve errors when evaluating a number button fails
...
Showing the Python error without any explanation is often
not enough information and doesn't hint that the error was in the
user input.
The error report from a invalid expression such as '..1' used to be:
('invalid syntax', ('<string>', 1, 1, '..1'))
Now reads:
Error evaluating number, see Info editor for details: invalid syntax
Address issue raised by T78913.
2020-07-27 21:00:50 +10:00
Jacques Lucke
725973485a
Clang Tidy: enable readability-non-const-parameter warning
...
Clang Tidy reported a couple of false positives. I disabled
those `NOLINTNEXTLINE`.
Differential Revision: https://developer.blender.org/D8199
2020-07-13 11:27:09 +02:00
Campbell Barton
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
Campbell Barton
9f2665b526
PyAPI: utility function to print reports
2019-03-27 14:03:40 +11:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
7e358b6181
Python: bump minimum version to 3.7
...
All platforms use 3.7 now, supporting both increases chance some scripts
will fail on older versions.
2019-02-04 22:00:30 +11:00
Campbell Barton
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
Campbell Barton
d47d263b4b
Cleanup: style
2017-12-04 16:37:31 +11:00
Campbell Barton
e32cfb0743
Cleanup: rename bpy_util -> bpy_capi_utils
...
This is for internal CAPI use only, avoid confusion w/ bpy.utils module.
2017-11-29 21:11:29 +11:00