Jacques Lucke
6a4f5e6a8c
Depsgraph: simplify build API
...
Reviewers: sergey, sybren
Differential Revision: https://developer.blender.org/D8611
2020-08-18 15:51:32 +02:00
Jacques Lucke
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
Campbell Barton
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
Campbell Barton
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
Campbell Barton
a1d57e3f05
Cleanup: replace sizeof division with ARRAY_SIZE macro
2020-08-08 14:08:37 +10:00
Campbell Barton
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
Campbell Barton
586a308467
Cleanup: remove redundant return parenthesis
2020-08-08 13:37:55 +10:00
Jacques Lucke
e3f369e13f
Cleanup: fix some clang tidy warnings
2020-08-07 19:19:38 +02:00
Sybren A. Stüvel
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
Sybren A. Stüvel
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
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
nutti
c442ff0017
Fix RST syntax for freestyle documentation
2020-08-02 18:12:22 +10:00
Campbell Barton
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
Campbell Barton
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
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
c46663ad66
Cleanup: spelling
2020-07-21 16:02:58 +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
754c5d6a14
Cleanup: clang-format
2020-07-09 13:29:48 +10:00
Jacques Lucke
4a5389816b
Clang-Tidy: enable readability-named-parameter
2020-07-03 17:07:13 +02:00
Sergey Sharybin
f891d4e2ad
Clang-Tidy: Fix readability-delete-null-pointer warnings
...
Also enable it in the configuration.
2020-07-03 16:32:51 +02:00
Jacques Lucke
88d358902f
Clang-Tidy: Enable readability-redundant-string-cstr
2020-07-03 15:55:09 +02:00
Hans Goudey
19ff145e66
Clang-Tidy: Enable readability-redundant-control-flow
2020-07-03 09:41:55 -04:00
Jacques Lucke
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
Campbell Barton
fd5c185beb
Cleanup: spelling
2020-06-25 23:14:36 +10:00
Campbell Barton
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
Sergey Sharybin
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
Campbell Barton
3aa1143d57
Cleanup: redundant parenthesis
2020-06-18 14:30:04 +10:00
Jacques Lucke
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
Campbell Barton
9e96c6d054
Cleanup: spelling
2020-06-05 14:34:00 +10:00
Brecht Van Lommel
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
Brecht Van Lommel
db1099c0ae
Merge branch 'blender-v2.83-release'
2020-05-14 03:09:33 +02:00
Brecht Van Lommel
bd18ffe1f8
Fix T76388: Freestyle not respecting Show Emitter settings
2020-05-14 02:14:18 +02:00
Brecht Van Lommel
5ca1eb96c7
Merge branch 'blender-v2.83-release'
2020-05-12 21:57:04 +02:00
Brecht Van Lommel
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
Campbell Barton
9b02415ec8
Cleanup: doxy comments
2020-05-09 17:36:12 +10:00
Jacques Lucke
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
Brecht Van Lommel
f4ee9643ad
Fix Linux/GCC build error after recent changes
2020-04-21 14:28:26 +02:00
Brecht Van Lommel
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
Campbell Barton
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
Brecht Van Lommel
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
Brecht Van Lommel
a1322d7c95
Cleanup: fix typos in comments
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D7133
2020-03-19 21:55:17 +01:00
Dalai Felinto
2d1cce8331
Cleanup: make format after SortedIncludes change
2020-03-19 09:33:58 +01:00
Campbell Barton
ed4c47632f
Cleanup: spelling
2020-03-19 12:09:07 +11:00
Campbell Barton
f0b0524c5f
Cleanup: spelling
2020-03-14 15:43:21 +11:00
Dalai Felinto
85424397b1
Cleanup: tweak Freestyle #includes in preparation for clang-format sorting
2020-03-06 17:26:32 +01:00
Campbell Barton
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
Sergey Sharybin
9a855f94fc
Cleanup: Spelling
2020-02-28 10:12:08 +01:00
Campbell Barton
146fe1decf
Cleanup: remove use of 'register'
...
This isn't needed with modern compilers.
2020-02-20 12:21:05 +11:00