ec8c09f2aa
Cleanup: fix compiler warnings
2021-02-17 16:26:24 +01:00
67c8d97db3
Cleanup: spelling
2021-02-14 20:58:04 +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
21a2b975b8
Cleanup: Remove using-directive from freestyle headers
...
The header files in freestyle utilize the using-directive at the global
file scope. This is a bad practice as it pollutes the global name space
causing possible ambiguous reference compilation errors. In particular,
the DNA files that are included by freestyle will cause those ambiguous
reference errors when the developers adds a DNA member with a type name
that also exist in the Freestyle name space, such as Curve and possibly
others.
This patch does the minimal work needed to resolve that by moving the
using-directives from the headers into the corresponding translation
units.
Reviewed By: Brecht
Differential Revision: https://developer.blender.org/D10351
2021-02-08 17:29:42 +02:00
luzpaz
a4a9d14ba7
UI: Fix Typos in Comments and Docs
...
Approximately 91 spelling corrections, almost all in comments.
Differential Revision: https://developer.blender.org/D10288
Reviewed by Harley Acheson
2021-02-05 19:08:14 -08:00
17e1e2bfd8
Cleanup: correct spelling in comments
2021-02-05 16:23:34 +11:00
d0aa7d5562
Merge branch 'blender-v2.92-release'
2021-02-02 16:47:21 +01:00
f8359b5f52
Fix freestyle render pass not being created when there are no strokes
...
It could lead to missing images when outputing the pass to an image
sequence.
2021-02-02 16:45:23 +01:00
9ad181a5d0
Cleanup: email address formatting
...
Match git style email addresses, ignored by the spell checker.
2021-01-24 16:08:17 +11:00
90bcd5e724
Cleanup: remove unused render camera code
2021-01-22 19:30:17 +01:00
84702bd3d8
Fix T84242: freestyle animated camera shift lags behind in animation render
2021-01-21 14:21:49 +01:00
c93f826661
Cleanup: various clang tidy fixes
2020-12-09 16:29:11 +01:00
7f2d356a67
Cleanup: Clang-Tidy, modernize-use-using
...
Replace `typedef` with `using` in C++ code.
In the case of `typedef struct SomeName { ... } SomeName;` I removed the
`typedef` altogether, as this is unnecessary in C++. Such cases have been
rewritten to `struct SomeName { ... };`
No functional changes.
2020-12-04 12:46:43 +01:00
168909d974
Cleanup: Clang-Tidy, modernize-use-override
...
No functional changes.
2020-12-04 12:02:52 +01:00
958df2ed1b
Cleanup: Clang-Tidy, modernize-deprecated-headers
...
No functional changes.
2020-12-04 11:28:09 +01:00
Ankit Meel
88de58fd1a
Clang-tidy, fix bugprone-exception-escape.
...
Remove redundant call to `ofstream::close()` from `~PSStrokeRenderer`
and `~TextStrokeRenderer`. ofstream will be destructed automatically.
- For `~Depsgraph`, `std::function`'s constructor can throw.
- Passing throwing statements in the lambda will not be detected by
clang-tidy.
Fix these issues by using lambda as function argument.
Reviewed By: sergey, sybren
Differential Revision: https://developer.blender.org/D9497
2020-11-17 17:33:25 +05:30
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
b5d310b569
Cleanup: clang-format
2020-11-10 09:42:03 +11:00
efd71aad4f
Cleanup: clang-tidy suppress warnings for PyTypeObject.tp_print
...
Clang-tidy behavior changes from Python 3.7 to 3.8+ so it's simplest
to suppress the warning in this instance.
2020-11-10 09:40:20 +11:00
e118426e46
Fix T82520: error building freestyle with Python3.8
...
Caused by 16732def37 ,
This is a 'Py_ssize_t' in Python 3.8,
replace with zero as this works in both 3.7 and 3.8.
2020-11-09 16:08:29 +11:00
8c846cccd6
Cleanup: clang-format
2020-11-09 15:47:08 +11:00
9cd9ea591f
Cleanup: NULL to nullptr.
2020-11-07 21:52:53 +05:30
40d4a4cb1a
Cleanup: Clang-format.
2020-11-07 18:48:13 +05:30
4525049aa0
Cleanup: Clang-tidy, modernize-concat-nested-namespaces
2020-11-07 18:48:13 +05:30
16732def37
Cleanup: Clang-Tidy modernize-use-nullptr
...
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
2020-11-06 18:08:25 +01:00
3cb4c51308
Cleanup: Clang-Tidy, modernize-make-unique
2020-11-06 16:47:16 +01:00
580ff2cb93
Cleanup: Render Module: combine intern/ source & include
2020-11-06 10:37:40 -05:00
e15076b22f
Cleanup: Render Module: move header files to main directory
...
Move headers files from `render/extern/` to `render/`
Part of T73586
2020-11-06 10:10:41 -05:00
af35ada2f3
Cleanup: Clang-Tidy, modernize-use-bool-literals
2020-11-06 14:32:51 +01:00
8d5073345d
Cleanup: Clang-Tidy, modernize-use-emplace
2020-11-06 14:06:52 +01:00
a331d5c992
Cleanup: Clang-Tidy, modernize-redundant-void-arg
2020-11-06 13:40:46 +01:00
190170d4cc
Cleanup: Clang-Tidy, readability-redundant-member-init
2020-11-06 11:54:53 +01:00
605425c006
Cleanup: doxygen comments
2020-11-06 14:35:38 +11:00
aa3a4973a3
Cleanup: use ELEM macro
2020-11-06 12:32:54 +11:00
7cb20d841d
Cleanup: follow our code style for float literals
2020-11-06 12:32:54 +11:00
569b7c2821
Cleanup: remove unused Blender Internal render stats code
2020-10-29 14:23:06 +01:00
Aaron Carlisle
baa24f1c91
Pydoc: Fix sphinx compile warnings about freestyle
...
Sphinx expects functions and methods with the same name and different
parameters to be written using one directive. See:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#basic-markup
Unfortunately this makes giving different descriptions for each harder.
This was already a request for better support for this in sphinx, see:
https://github.com/sphinx-doc/sphinx/issues/7787
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D9170
2020-10-22 17:22:05 -04:00
Valentin
5ac4778056
Cleanup: convert gforge task ID's to phabricator format
...
Cleanup old tracker task format to the new. e.g: [#34039 ] to T34039
Ref D8718
2020-09-30 20:11:06 +10:00
14b2a35c8b
Cleanup: use parenthesis for if statements in macros
2020-09-19 16:28:17 +10:00
23f1dea440
Cleanup: spelling
2020-09-09 13:30:05 +10:00
c350d1eb13
Cleanup: remove redundant scene argument in BKE_object_add
2020-09-07 14:09:50 +10:00
ffec86bb62
Cleanup: clang-format
2020-09-06 02:21:27 +10:00
2115232a16
Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fix
...
No functional changes
2020-09-04 21:04:16 +02:00
ce67a9d39f
Cleanup: Clang-Tidy bugprone-copy-constructor-init fix
...
No expected functional changes.
2020-09-04 17:17:57 +02:00
fb5e2f5610
Cleanup: Clang-Tidy bugprone-incorrect-roundings fixes
...
Should cause no noticeable difference.
2020-09-04 16:23:08 +02:00
8057ab10db
Cleanup: Clang-Tidy readability-const-return-type fixes
...
No functional changes.
2020-09-04 12:04:47 +02:00
6a4f5e6a8c
Depsgraph: simplify build API
...
Reviewers: sergey, sybren
Differential Revision: https://developer.blender.org/D8611
2020-08-18 15:51:32 +02:00
d9f7cbb8af
Cleanup: remove bmain argument from BKE_scene_graph_update_for_newframe
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8613
2020-08-18 15:45:58 +02:00
0967935b42
Cleanup: split BPY_run_string_ex into two functions
...
Using a boolean to select between eval/exec behavior wasn't very
readable.
2020-08-17 18:32:20 +10:00