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
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
b6ba3c682d
Cleanup: remove global header
2018-04-01 07:24:45 +02:00
5baf0de6e7
Merge branch 'master' into blender2.8
2018-03-16 11:24:41 +01:00
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
d4ee0cee51
Merge branch 'master' into blender2.8
2018-02-21 10:51:58 +01:00
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
75f36266df
Merge branch 'master' into blender2.8
2017-09-14 16:17:22 +05:00
09c6c6c486
Fix T52749: New Depsgraph - Render View Mask is not initialized correctly
2017-09-14 16:12:01 +05:00
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
a7ac59414b
Cleanup: rename line to segments, avoids confusion
...
Differentiate between lines and segments.
2015-11-13 07:48:05 +11:00
915235c87a
Cleanup: unused headers
2014-11-28 22:16:14 +01:00
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
a2c107aef1
Code cleanup: use 'const' for arrays (blenkernel)
2014-04-27 00:25:15 +10:00
a91247c2b4
Code cleanup: unreachable break/return
2014-03-19 12:47:09 +11:00
2097e621ed
Code cleanup: use r_ prefix for return args
2014-03-16 03:26:23 +11:00
d900f5be55
Code cleanup: use bools where possible
2014-02-03 19:35:44 +11:00
39daf283ae
Don't use with_resol suffix for functions which doesn't get resolution
2013-12-20 16:00:05 +06:00
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
8238cd6992
use unsigned int, for mask rasterizer.
2013-05-08 12:54:47 +00:00
5c4f96af2c
code cleanup: use 'const float[2]' where possible.
2013-05-08 12:54:33 +00:00
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
2bb174cfa4
style cleanup: indentation
2012-11-09 09:33:28 +00:00
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
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
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
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
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
d35957ba94
code cleanup: split out mask spline evaluation into its own file.
2012-08-26 13:41:40 +00:00