7341ceb674
Cleanup: move Python script execution into BPY_extern_run.h
...
This commit renames 'execute' to 'run' because:
- This follows Python's "PyRun" which these functions wrap.
- Execution functions can use either exec/eval modes,
making naming awkward (for future API refactoring).
2020-08-17 18:32:20 +10:00
a1d57e3f05
Cleanup: replace sizeof division with ARRAY_SIZE macro
2020-08-08 14:08:37 +10:00
171e77c3c2
Cleanup: use array syntax for sizeof with fixed values
...
Also order sizeof(..) first to promote other values to size_t.
2020-08-08 13:38:00 +10:00
586a308467
Cleanup: remove redundant return parenthesis
2020-08-08 13:37:55 +10:00
e3f369e13f
Cleanup: fix some clang tidy warnings
2020-08-07 19:19:38 +02:00
ad6e63cb96
Cleanup: enable Clang-Tidy bugprone-parent-virtual-call rule
...
I added a single `NOLINT` exception with explanation.
No functional changes.
2020-08-07 17:59:26 +02:00
326e137a8c
Cleanup: Freestyle, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/freestyle` module.
No functional changes.
2020-08-07 13:38:06 +02:00
7283e6fb73
Merge branch 'blender-v2.90-release' into master
2020-08-07 10:04:57 +02:00
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
nutti
c442ff0017
Fix RST syntax for freestyle documentation
2020-08-02 18:12:22 +10:00
901ee66ea1
Cleanup: use term init instead of initialize/initialise
...
The abbreviation 'init' is brief, unambiguous and already used
in thousands of places, also initialize is often accidentally
written with British spelling.
2020-08-01 13:51:05 +10:00
a3c6304a27
Cleanup: quiet possible comma misuse warning in feestyle PyAPI
2020-07-29 11:00:32 +10:00
nutti
55c6cc46b5
Fix RST syntax for freestyle documentation
2020-07-29 09:49:08 +10:00
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
c46663ad66
Cleanup: spelling
2020-07-21 16:02:58 +10:00
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
754c5d6a14
Cleanup: clang-format
2020-07-09 13:29:48 +10:00
4a5389816b
Clang-Tidy: enable readability-named-parameter
2020-07-03 17:07:13 +02:00
f891d4e2ad
Clang-Tidy: Fix readability-delete-null-pointer warnings
...
Also enable it in the configuration.
2020-07-03 16:32:51 +02:00
88d358902f
Clang-Tidy: Enable readability-redundant-string-cstr
2020-07-03 15:55:09 +02:00
19ff145e66
Clang-Tidy: Enable readability-redundant-control-flow
2020-07-03 09:41:55 -04:00
2633683b52
Clang-tidy: enable readability-container-size-empty warning
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8197
2020-07-03 14:59:27 +02:00
fd5c185beb
Cleanup: spelling
2020-06-25 23:14:36 +10:00
716a8241d3
Cleanup: rename 'name' to 'filepath' for DNA types
...
Using 'name' for the full path of a file reads badly,
especially when id.name is used in related code.
2020-06-23 11:29:36 +10:00
3f5b295084
Freestyle: Fix compilation error with C++17
...
AutoPtr class became a sub-class of unique_ptr with some special magic
to mimic behavior of auto_ptr for copy constructor.
The code was already there, but for some reason visual studio did not
set __cplusplus correctly for some reason.
The other change is remove of binary function usage, which is not
needed in the Freestyle code.
2020-06-19 12:02:21 +02:00
3aa1143d57
Cleanup: redundant parenthesis
2020-06-18 14:30:04 +10:00
9bb7d6ed68
BLI: put C++ data structures in "blender" namespace instead of "BLI"
...
We plan to use the "blender" namespace in other modules as well.
2020-06-09 10:27:24 +02:00
9e96c6d054
Cleanup: spelling
2020-06-05 14:34:00 +10:00
120e9924c1
Cleanup: remove legacy mmap memory allocation for 32 bit
...
This helped to go beyond the 4GB limit, but is no longer relevant for 64 bit.
2020-05-20 00:57:41 +02:00
db1099c0ae
Merge branch 'blender-v2.83-release'
2020-05-14 03:09:33 +02:00
bd18ffe1f8
Fix T76388: Freestyle not respecting Show Emitter settings
2020-05-14 02:14:18 +02:00
5ca1eb96c7
Merge branch 'blender-v2.83-release'
2020-05-12 21:57:04 +02:00
a5eee1f935
Fix T76535: Eevee + Freestyle render crash with many strokes
...
Freestyle would create a huge amount of material slots with the same material,
causing issues in Eevee use of alloca().
2020-05-12 21:51:12 +02:00
9b02415ec8
Cleanup: doxy comments
2020-05-09 17:36:12 +10:00
6f985574b7
Cleanup: take includes out of 'extern "C"' blocks
...
Surrounding includes with an 'extern "C"' block is not necessary anymore.
Also that made it harder to add any C++ code to some headers, or include headers
that have "optional" C++ code like `MEM_guardedalloc.h`.
I tested compilation on linux and windows (and got help from @LazyDodo ).
If this still breaks compilation due to some linker error, the header containing
the symbol in question is probably missing an 'extern "C"' block.
Differential Revision: https://developer.blender.org/D7653
2020-05-08 18:22:41 +02:00
f4ee9643ad
Fix Linux/GCC build error after recent changes
2020-04-21 14:28:26 +02:00
5fed9ac9b5
Fix clang-format differences between version 6 and 9
...
Version 6 does not appear to respect clang-format off for header sorting.
2020-04-21 13:16:59 +02:00
d14e768069
Cleanup: BLI_path.h function renaming
...
Use BLI_path_ prefix, more consistent names:
BLI_parent_dir -> BLI_path_parent_dir
BLI_parent_dir_until_exists -> BLI_path_parent_dir_until_exists
BLI_ensure_filename -> BLI_path_filename_ensure
BLI_first_slash -> BLI_path_slash_find
BLI_last_slash -> BLI_path_slash_rfind
BLI_add_slash -> BLI_path_slash_ensure
BLI_del_slash -> BLI_path_slash_rstrip
BLI_path_native_slash -> BLI_path_slash_native
Rename 'cleanup' to 'normalize', similar to Python's `os.path.normpath`.
BLI_cleanup_path -> BLI_path_normalize
BLI_cleanup_dir -> BLI_path_normalize_dir
BLI_cleanup_unc -> BLI_path_normalize_unc
BLI_cleanup_unc16 -> BLI_path_normalize_unc16
Clarify naming for extracting, creating numbered paths:
BLI_stringenc -> BLI_path_sequence_encode
BLI_stringdec -> BLI_path_sequence_decode
Part of T74506 proposal.
2020-04-07 12:10:36 +10:00
ba8d819c9b
Fix T74417: Freestyle render removes image texture users
...
This simplifies freestyle render pipeline integration so we don't have to do
much manual ID user management at all. The complexity here was legacy from
Blender Internal.
Based on fix provided by Sybren A. Stüvl.
2020-03-26 01:29:20 +01:00
a1322d7c95
Cleanup: fix typos in comments
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D7133
2020-03-19 21:55:17 +01:00
2d1cce8331
Cleanup: make format after SortedIncludes change
2020-03-19 09:33:58 +01:00
ed4c47632f
Cleanup: spelling
2020-03-19 12:09:07 +11:00
f0b0524c5f
Cleanup: spelling
2020-03-14 15:43:21 +11:00
85424397b1
Cleanup: tweak Freestyle #includes in preparation for clang-format sorting
2020-03-06 17:26:32 +01:00
b839a5d076
Cleanup: remove BLI_cleanup_file
...
In practice, references to files rarely have trailing slashes
(by accident). Remove this function in favor of BLI_cleanup_path.
2020-03-07 00:19:01 +11:00
9a855f94fc
Cleanup: Spelling
2020-02-28 10:12:08 +01:00
146fe1decf
Cleanup: remove use of 'register'
...
This isn't needed with modern compilers.
2020-02-20 12:21:05 +11:00
d119e163d0
Fix many typos and other issues in UI messages.
2020-02-17 13:01:07 +01:00
4af74f453d
Freestyle: Add option for rendering Freestyle to a separate pass
...
This allows for more flexibility in Compositing compared to the
hardcoded alpha-over that is currently used.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D6829
2020-02-14 00:33:50 +01:00
3e6e9ce01b
Cleanup: extra semicolons, comma use, undeclared vars
2020-02-11 12:04:50 +11:00