Campbell Barton
ffc4c126f5
Cleanup: move public doc-strings into headers for 'blenkernel'
...
- Added space below non doc-string comments to make it clear
these aren't comments for the symbols directly below them.
- Use doxy sections for some headers.
- Minor improvements to doc-strings.
Ref T92709
2021-12-07 17:38:48 +11:00
Campbell Barton
9b89de2571
Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXX
...
Also use doxy style function reference `#` prefix chars when
referencing identifiers.
2021-07-04 00:43:40 +10: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
Campbell Barton
606805d1b7
Cleanup: use 'r_' prefix for return arguments, order last
2021-02-05 22:34:03 +11:00
Jacques Lucke
f8aad78830
Cleanup: reduce variable scopes
2020-09-09 16:36:57 +02: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
Sybren A. Stüvel
1b272a649b
Cleanup: Blenkernel, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/blenkernel` module.
No functional changes.
2020-08-07 13:38:06 +02:00
Dalai Felinto
2d1cce8331
Cleanup: make format after SortedIncludes change
2020-03-19 09:33:58 +01:00
Campbell Barton
6f3e498e7d
Cleanup: use of 'unsigned'
...
- Replace 'unsigned' used on it's own with 'uint'.
- Replace 'unsigned const char' with 'const uchar'.
2020-02-08 01:02:18 +11:00
Sergey Sharybin
fec9615ea0
Masks: Properly port to Copy-on-Write concept
...
Masks were not really covered by Copy-on-Write due to mistake
in the dependency graph. After correcting that mistake a lot
of tools became broken, so majority of the patch is related
on making it so access to evaluated/tessellated masks is done.
When accessing evaluated mask state make sure access to an
evaluated dependency graph is done. This solves possible
access to NULL data on redo.
Fixes T64899: Re-doing new point addition causes crash
Reviewers: brecht
Reviewed By: brecht
Maniphest Tasks: T64899
Differential Revision: https://developer.blender.org/D4918
2019-05-23 09:47:13 +02:00
Campbell Barton
735515a3f9
Cleanup: style, use braces for blenkernel
2019-04-22 19:48:17 +10:00
Campbell Barton
41d4a19865
ClangFormat: format '#if 0' code in source/
2019-04-17 08:24:14 +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
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
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
Sergey Sharybin
65e6654c85
Depsgraph: Allow per-depsgraph debug flags
...
Currently only affects EVALUATION debug messages, rest are to be
supported on per-depsgraph level.
2018-05-02 17:09:44 +02:00
Brecht Van Lommel
34ab90f546
Depsgraph: remove EvaluationContext, pass Depsgraph instead.
...
The depsgraph was always created within a fixed evaluation context. Passing
both risks the depsgraph and evaluation context not matching, and it
complicates the Python API where we'd have to expose both which is not so
easy to understand.
This also removes the global evaluation context in main, which assumed there
to be a single active scene and view layer.
Differential Revision: https://developer.blender.org/D3152
2018-04-16 19:55:33 +02:00
Campbell Barton
b65ea517eb
Merge branch 'master' into blender2.8
...
- Undo that changes modes currently asserts,
since undo is now screen data.
Most likely we will change how object mode and workspaces work
since it's not practical/maintainable at the moment.
- Removed view_layer from particle settings
(wasn't needed and complicated undo).
2018-04-01 11:03:25 +02:00
Campbell Barton
b6ba3c682d
Cleanup: remove global header
2018-04-01 07:24:45 +02:00
Sergey Sharybin
5baf0de6e7
Merge branch 'master' into blender2.8
2018-03-16 11:24:41 +01:00
Sergey Sharybin
3baf31e73a
Depsgraph: Move evaluation debug prints to depsgraph
...
This way we can easily control format and keep it consistent.
And also possibly do other trickery, like coloring addresses!
2018-03-16 11:14:38 +01:00
Sergey Sharybin
d4ee0cee51
Merge branch 'master' into blender2.8
2018-02-21 10:51:58 +01:00
Sergey Sharybin
fe1a508e55
Depsgraph: Split debug flags
...
Now it's possible to have debug messages for following things:
- Graph construction
- Graph evaluation
- Graph tagging
2018-02-21 10:44:36 +01:00
Sergey Sharybin
75f36266df
Merge branch 'master' into blender2.8
2017-09-14 16:17:22 +05:00
Sergey Sharybin
09c6c6c486
Fix T52749: New Depsgraph - Render View Mask is not initialized correctly
2017-09-14 16:12:01 +05:00
Sergey Sharybin
3573f49bfd
Masks: Split layer evaluation into separate function
...
This way we can easily re-use bits of code for new dependency graph.
Currently should be no functional changes.
2017-09-14 16:09:06 +05:00
Campbell Barton
a7ac59414b
Cleanup: rename line to segments, avoids confusion
...
Differentiate between lines and segments.
2015-11-13 07:48:05 +11:00
Campbell Barton
915235c87a
Cleanup: unused headers
2014-11-28 22:16:14 +01:00
Campbell Barton
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
Campbell Barton
a2c107aef1
Code cleanup: use 'const' for arrays (blenkernel)
2014-04-27 00:25:15 +10:00
Campbell Barton
a91247c2b4
Code cleanup: unreachable break/return
2014-03-19 12:47:09 +11:00
Campbell Barton
2097e621ed
Code cleanup: use r_ prefix for return args
2014-03-16 03:26:23 +11:00
Campbell Barton
d900f5be55
Code cleanup: use bools where possible
2014-02-03 19:35:44 +11:00
Sergey Sharybin
39daf283ae
Don't use with_resol suffix for functions which doesn't get resolution
2013-12-20 16:00:05 +06:00
Sergey Sharybin
b54ac21622
Code cleanup: remove unused functions from mask module
...
This functions doesn't seem to be used even from a commented code.
2013-12-20 15:47:19 +06:00
Campbell Barton
8238cd6992
use unsigned int, for mask rasterizer.
2013-05-08 12:54:47 +00:00
Campbell Barton
5c4f96af2c
code cleanup: use 'const float[2]' where possible.
2013-05-08 12:54:33 +00:00
Campbell Barton
e2fe7751d6
code cleanup: replace most DO_MINMAX2 -> minmax_v2v2_v2
...
also add UNPACK macros's. handy for printing vectors for eg.
2012-11-15 22:20:18 +00:00
Campbell Barton
2bb174cfa4
style cleanup: indentation
2012-11-09 09:33:28 +00:00
Campbell Barton
fec81d9b56
use min_ max_ functions in more places.
...
also fix minor error in MOD decimate when the modifier did nothing the reported face count would be wrong.
2012-10-23 16:21:55 +00:00
Campbell Barton
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
Campbell Barton
aaafa0c2fe
code cleanup: move file string defines into BLI_path_utils.h, BKE_utildefines is now unused but keep incase we want to add defines there later.
2012-09-03 22:04:14 +00:00
Campbell Barton
13254cde8c
Alternate mask spline feather offset calculation method: now there are 2 [Even | Smooth]
...
- Even preserves thickness but can give unsightly loops
- Smooth gives nicer shape but can give unsightly feather/spline mismatch for 'S' shapes created by beziers.
This is an example where smooth works much nicer.
http://www.graphicall.org/ftp/ideasman42/mask_compare.png
2012-08-27 09:44:56 +00:00
Campbell Barton
52310bd4a7
code cleanup: remove dead assignments, gave mask vars clearer names & moved some mask evaluation funcs into mask_evaluate.c
2012-08-26 18:09:01 +00:00
Campbell Barton
d35957ba94
code cleanup: split out mask spline evaluation into its own file.
2012-08-26 13:41:40 +00:00