Campbell Barton
a76cfe2c22
Cleanup: no need for extra HUD type check now
2018-06-12 17:38:04 +02:00
Campbell Barton
031416c559
Merge branch 'master' into blender2.8
2018-06-12 17:36:24 +02:00
Campbell Barton
b00d840359
WM: remove sloppy region type access
...
Avoid accidentally operating on the wrong region type.
2018-06-12 17:34:44 +02:00
Campbell Barton
760e79d809
WM: rename BKE_regiontype_from_id
...
This returns the first as a fallback, causing confusing usage.
Renamed and added a version of the function that doesn't.
2018-06-12 17:26:38 +02:00
Campbell Barton
e8dd4cd9ca
Cleanup: warning, spaces
2018-06-12 17:20:12 +02:00
Bastien Montagne
2af7c38682
Cleanup: get rid of global RNG usage in paint stroke code.
2018-06-12 17:13:47 +02:00
Brecht Van Lommel
376bc88dc0
Fix leak of manipulator tooltip timers.
...
This was causing performance degradation over time in posing, as the
manipulator recomputes the center locations for every event.
Ref T55442.
2018-06-12 17:07:18 +02:00
Brecht Van Lommel
3801736b89
Depsgraph: remove object tagging hack for render.
...
With copy-on-write it should now all be evaluated correctly in render
resolution, without needing to switch the original data resoluton.
2018-06-12 17:07:18 +02:00
Bastien Montagne
a9cfd8c910
Cleanup: get rid of global RNG usage in transform code.
2018-06-12 17:00:31 +02:00
Campbell Barton
8826a00482
WM: HUD was disappearing on redo
2018-06-12 16:59:37 +02:00
Campbell Barton
97cac69739
Fix redo panels being added to non-hud regions
2018-06-12 16:55:00 +02:00
Campbell Barton
2a3e7fe656
UI: improve HUD ensure/clear logic
...
Running operators w/o redo now clears the HUD immediately.
2018-06-12 16:50:27 +02:00
Sergey Sharybin
deb3d73eea
Particle: Use loclaized RNG for physics simulation
...
Avoids threading conflicts between multiple particle systems being simulated.
2018-06-12 16:37:40 +02:00
Jeroen Bakker
866127d9f2
StudioLight: Use texel size as input size
...
Bettter light distribution for diffuse shading
2018-06-12 16:18:50 +02:00
Bastien Montagne
ec4ce908db
Fix T55452: Crash on saving with visible particle system.
...
Missing Main pointer in recent refactor/cleanup of G.main usages...
2018-06-12 16:17:05 +02:00
Sergey Sharybin
b236400ff5
Math: Remove unused functions which are not safe for threading
...
All areas are toy use "local" number generator, in order to keep
behavior predictable and threadable. This is what BLI_rng_() API
is for.
There are still lots of usages of BLI_frand(), which are to be
ported to BLI_rng_get_float(). but that is somewhat involved.
For the time being, remove unsafe API, so new areas have zero
chance using it.
2018-06-12 15:51:43 +02:00
Bastien Montagne
6231a077ac
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_group.h
source/blender/blenkernel/BKE_object.h
source/blender/blenkernel/intern/group.c
source/blender/blenkernel/intern/library_remap.c
source/blender/blenkernel/intern/object.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/object/object_group.c
source/blender/editors/object/object_relations.c
source/blender/editors/physics/rigidbody_constraint.c
source/blender/editors/physics/rigidbody_object.c
source/blender/makesrna/intern/rna_group.c
2018-06-12 15:41:32 +02:00
Sergey Sharybin
39e050af40
Fix T55409: Can't animated keyframed material node value after moving keyframe on timeline
...
Completely ignore animation for legacy zero update tag.
If one needs animation to be evaluated, tag with proper update tag, stop relying
on direct assignment of adt->>recalc with zero update tag for DEG.
This commit might cause missing updates when needed, those needs to be looked
into once they happen.
2018-06-12 15:39:11 +02:00
Sergey Sharybin
8204261ede
Particle: Remove global RNG usage from distribution
2018-06-12 15:38:29 +02:00
Sergey Sharybin
53a9cde038
Particle: Use local RNG during initialization
2018-06-12 15:38:29 +02:00
Sergey Sharybin
46cb64917d
Render: Remove global RNG usage
...
We shouldn't be using BI textures anyway. But in any case, adding noise
texture to compositor is doing proper seed updates already, so probably
was already ported to a proper RNG usage.
2018-06-12 15:38:29 +02:00
Jeroen Bakker
b6b1e0f56c
T55454: removal of clay engine
...
The ClayEngine was introduced to test the blender2.8 architecture during
development. As currently we have the wanted features implemented with
matcaps we are going to remove the clay engine as it was never intended
to be an official releasable engine
Note: The test cases are never run. But when enabled will be skipped as
they were implemented over the Clay Engine
2018-06-12 15:32:31 +02:00
Jeroen Bakker
d72ddb81ae
Studiolight: add rim lighting to the default light setup
2018-06-12 15:17:01 +02:00
Bastien Montagne
a6585fa4b1
Cleanup: moar removal of G.main in BKE area...
2018-06-12 15:16:45 +02:00
Bastien Montagne
d617a6c85b
Cleanup/simplify G.main usages.
...
Using G.main only to get main bled filepath, or built-in fonts, is OK.
So now using the 'valid' G_MAIN macro here instead.
2018-06-12 15:03:51 +02:00
Sergey Sharybin
4bfc7b9e7d
Fix crahs using ndof
2018-06-12 14:50:57 +02:00
Sergey Sharybin
18ae64858b
Cleanup: Indentation
2018-06-12 14:43:40 +02:00
Sergey Sharybin
c2abb6d3fc
Particles: Use local RNG
...
Currently only obvious cases, but is already a progress.
2018-06-12 14:30:50 +02:00
Sergey Sharybin
49b39ea851
Duplication: Use local RNG
...
Makes generation safe for threading.
2018-06-12 14:30:50 +02:00
Sergey Sharybin
cb409bb219
Add utility function to help debugging concurrent usage of global RNG
...
Checks are disabled by default, but we need to make them enabled by
porting all required areas, or by removing API which uses global RNG.
2018-06-12 14:30:50 +02:00
Sergey Sharybin
3b2e19cb4c
Depsgraph: Ensure modifiers evaluation doesn't happen on top evaluated mesh
2018-06-12 14:30:50 +02:00
Sergey Sharybin
c279592123
Depsgraph: Don't update derived mesh for particles on render
...
Render depsgraph is evaluated from scratch, so it should not be needed
to do such a call.
This also prevents modifier stack from being evaluated on top of already
evaluated mesh
2018-06-12 14:30:50 +02:00
Sergey Sharybin
0d817e68ef
Depsgraph: Add debug option to invalidate data tagged for update
...
See comment for INVALIDATE_ON_FLUSH.
2018-06-12 14:30:50 +02:00
Sergey Sharybin
3263e5e881
Depsgraph: Set temp object to invalid state as soon as it becomes inaccessible
2018-06-12 14:30:50 +02:00
Sergey Sharybin
abdea5754e
Depsgraph: Cleanup, wrap private functions to an anonymous namespace
2018-06-12 14:30:50 +02:00
Bastien Montagne
43eebdfebd
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/collada/DocumentImporter.cpp
source/blender/editors/include/ED_object.h
source/blender/editors/object/object_modifier.c
2018-06-12 12:58:31 +02:00
Bastien Montagne
be57cf9b2a
Cleanup: remove moar G.main from BKE area.
2018-06-12 12:53:27 +02:00
Bastien Montagne
c98b2e74df
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c
2018-06-12 12:38:54 +02:00
Bastien Montagne
5508b572ea
Cleanup: remove some G.main from ED's animsys.
...
The easy ones - there some much, much trickier to tackle there...
2018-06-12 12:28:14 +02:00
Jeroen Bakker
fdd26faa49
LookDev: Move lookdev balls when menu switches
2018-06-12 12:24:05 +02:00
Jeroen Bakker
ab0daa1866
Studiolight: Disabled irradiance icons
2018-06-12 11:53:34 +02:00
Jeroen Bakker
8cca1abcb1
Studiolight: Bumped the radiance buffer to RGBA16F
...
Fixes issue reported at
https://devtalk.blender.org/t/lookdev-ibl-result/890/3
2018-06-12 11:51:04 +02:00
Jeroen Bakker
e1f24a8615
Studiolight: cache irradiance buffer
2018-06-12 11:51:04 +02:00
Bastien Montagne
75bcb70c60
Cleanup: remove some G.main from BKE area.
2018-06-12 11:21:54 +02:00
Campbell Barton
d2e691b91a
UI: fix crash with HUD panel size
...
There can be no panels in the region.
2018-06-12 11:18:52 +02:00
Campbell Barton
4bf331c0fc
UI: Initial persistent floating redo panel
...
This is the first step to moving redo out of the top-bar, see: T55039
- Support for floating panels in the ScrArea has been added.
- A new region type RGN_TYPE_HUD is used for floating settings input.
- Only one HUD should be visible at a time.
- Currently HUD regions are only visible
for 3D view and image space types.
- There are currently some remaining glitches with hide/show
that need further investigation.
2018-06-12 10:42:49 +02:00
Jeroen Bakker
3937e8fbc3
UI: non editable template_icon_views are rendered as label
...
This is also a way to render an large preview icon without the selection
control. This is used by the studiolights in the userprefs that only
displays the preview of the light.
2018-06-12 08:45:38 +02:00
Campbell Barton
a2027c6587
UI: replace ui_draw_search_back w/ general code
...
Useful for drawing any kind of region-background.
2018-06-12 08:14:13 +02:00
Campbell Barton
35da1afa09
Cleanup: remove unused context args
2018-06-12 07:59:27 +02:00
Brecht Van Lommel
1dc93f90a0
Cleanup: remove image->bindcode, always wrap in GPUTexture.
...
This simplifies code, and will hopefully make UDIM usage of GPUTexture
a little easier.
2018-06-11 23:24:04 +02:00