Campbell Barton
a03eadaec8
UI: redo panel layout tweaks
...
- Don't use compact layout (enum titles were hidden).
- Split-properties to use less vertical space.
- Make panel wider, half width when collapsed.
2018-06-13 08:26:16 +02:00
Campbell Barton
fc0b21ff73
Fix region expanding on refresh
2018-06-13 00:30:16 +02:00
Campbell Barton
0c0811829f
UI: adjust header alignment
...
- User preferences header at the bottom.
- Action header at the top.
Now all editors accessible from the menu have their header at the top,
default layout for the timeline remains at the bottom.
2018-06-12 22:59:15 +02:00
Campbell Barton
958d24ae0f
UI: Name N-Key toggle to Sidebar
2018-06-12 22:57:03 +02:00
Brecht Van Lommel
77879ac038
Fix T55376: instanced collection render visibility ignored.
...
For physics simulation it's still fuzzy though, but this needs bigger
design for how it works with view layers and visibility.
2018-06-12 22:36:43 +02:00
Campbell Barton
6700c02e53
WM: don't show redo hud when unsupported
2018-06-12 22:33:58 +02:00
Campbell Barton
98e0bd90f4
WM: hide internal operator settings
...
These are set in the interface and aren't useful to show to users.
Other minor changes
- Rename 'Ruler/Protractor' -> 'Ruler'
- Rename Subdivide 'Quad/Tri Mode' -> 'Create N-Gons' (and invert).
2018-06-12 22:00:22 +02:00
Campbell Barton
94e0abda75
UI: move auto-merge option to mesh options panel
...
This can be used even w/o snap.
2018-06-12 21:16:50 +02:00
Campbell Barton
81f24dd781
UI: re-arrange object mode and 3D view buttons
...
After some consideration we're moving 3D view settings
that impact the 3D view back.
See T55386 for details.
2018-06-12 21:10:31 +02:00
Campbell Barton
18cc8809c3
Fix T55457: Crash after merge faces
2018-06-12 20:43:46 +02:00
Campbell Barton
e65d20e7dc
Cleanup: add ED_region_panels_layout
...
Only had the '_ex' (extended) version.
2018-06-12 18:39:18 +02:00
Bastien Montagne
9b9b943e0c
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_anim.h
source/blender/blenkernel/intern/anim.c
source/blender/blenkernel/intern/scene.c
source/blender/editors/armature/pose_edit.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/armature/pose_utils.c
source/blender/editors/include/ED_armature.h
source/blender/editors/object/object_edit.c
source/blender/editors/transform/transform_conversions.c
2018-06-12 18:26:50 +02:00
Bastien Montagne
2788202417
Cleanup: moar G.main removal from BKE area.
2018-06-12 17:57:24 +02:00
Bastien Montagne
f27ecd56ef
Cleanup: BKE_scene_free should not have to worry about cleaning its usages.
...
This is supposed to be handled by calling code! Henceforce, no need to
call BKE_sequencer_clear_scene_in_allseqs() here, and... no need for
that ugly G.main case. ;)
2018-06-12 17:46:16 +02:00
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
Bastien Montagne
7d36408b82
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/include/ED_view3d.h
source/blender/editors/space_view3d/view3d_draw.c
source/blender/python/intern/gpu_offscreen.c
2018-06-12 16:29:07 +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
Sybren A. Stüvel
1b5e3e1c01
Use evaluated objects in Alembic unit tests
...
This at least makes sure the tests don't fail any more. Possibly there
should be more evaluation happening there.
2018-06-12 15:39:54 +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
Sybren A. Stüvel
1d8279fd8d
Alembic: made bl_alembic_import_test.py run again
...
Two tests are still failing, but at least the API changes in 2.8 have been
applied now.
2018-06-12 15:10:15 +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