blender.git
12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 13 Jun 2018 13:36:24 +0000 (15:36 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/BKE_pointcache.h
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/pointcache.c
source/blender/editors/include/ED_particle.h
source/blender/editors/physics/particle_edit.c
source/blender/editors/physics/particle_edit_undo.c
source/blender/editors/physics/particle_object.c
source/blender/editors/physics/physics_intern.h
source/blender/editors/physics/physics_pointcache.c
source/blender/editors/space_time/space_time.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_generics.c
source/blender/editors/transform/transform_manipulator.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_object_force.c
source/blender/makesrna/intern/rna_sculpt_paint.c
source/blenderplayer/bad_level_call_stubs/stubs.c

12 months agoUI: preset popover buttons in panel headers.
Brecht Van Lommel [Fri, 27 Apr 2018 11:50:26 +0000 (13:50 +0200)]
UI: preset popover buttons in panel headers.

Moves the preset into a menu for the panel header, so it can be changed
without opening the panel and takes up less space. Two remaining issues:

* For long lists the add new preset button can be scrolled off screen.
* We should support showing the name of the chosen preset in the panel
  header, but the current preset system does not support detecting which
  preset is used.

Differential Revision: https://developer.blender.org/D3366

12 months agoFix flexible spacer distance
Dalai Felinto [Wed, 13 Jun 2018 13:17:56 +0000 (15:17 +0200)]
Fix flexible spacer distance

Introduced on 0bce173bc7e9bb6d6cac.

12 months agoUI: Make NLA header consistent with dopesheet
Dalai Felinto [Wed, 13 Jun 2018 13:07:02 +0000 (15:07 +0200)]
UI: Make NLA header consistent with dopesheet

12 months agoCleanup: double quotes for non-enum strings
Campbell Barton [Wed, 13 Jun 2018 13:06:32 +0000 (15:06 +0200)]
Cleanup: double quotes for non-enum strings

12 months agoUI: center align 3D view header snap, pivot etc
Campbell Barton [Wed, 13 Jun 2018 13:03:09 +0000 (15:03 +0200)]
UI: center align 3D view header snap, pivot etc

12 months agoUI: Fix clip editor double text-less icon situation
Dalai Felinto [Wed, 13 Jun 2018 13:04:07 +0000 (15:04 +0200)]
UI: Fix clip editor double text-less icon situation

12 months agoCleanup: moar ugly G.main removal...
Bastien Montagne [Wed, 13 Jun 2018 12:26:26 +0000 (14:26 +0200)]
Cleanup: moar ugly G.main removal...

Note that due to RNA get/setters issue, that one may actually add some
G.main usages to the total... But at least it's not hidden anymore in a
very low-level, dark corner of BKE pointcache code!

12 months agoT55456: EditDrawMode
Jeroen Bakker [Wed, 13 Jun 2018 12:21:12 +0000 (14:21 +0200)]
T55456: EditDrawMode

- removed the dithering from the active face

12 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Wed, 13 Jun 2018 12:19:57 +0000 (14:19 +0200)]
Merge branch 'master' into blender2.8

12 months agoCleanup: tool settings access
Campbell Barton [Wed, 13 Jun 2018 12:11:59 +0000 (14:11 +0200)]
Cleanup: tool settings access

12 months agoFix T55467: nodes cant be resized after recent clickdrag change
Philipp Oeser [Wed, 13 Jun 2018 12:03:46 +0000 (14:03 +0200)]
Fix T55467: nodes cant be resized after recent clickdrag change

12 months agoSet minimum blender version as 2.80
Dalai Felinto [Wed, 13 Jun 2018 10:59:39 +0000 (12:59 +0200)]
Set minimum blender version as 2.80

Technically we probably need to do for the current subversion (17).
But the entirely 2.80 series is known to be experimental.

The most important part is to notify people that if they open the 2.80
file in master it will loose data.

12 months agoUI: add back pivot point
Campbell Barton [Wed, 13 Jun 2018 10:55:06 +0000 (12:55 +0200)]
UI: add back pivot point

Was accidentally removed after recent changes.

12 months agoT55456: EditMode Drawing
Jeroen Bakker [Wed, 13 Jun 2018 06:17:14 +0000 (08:17 +0200)]
T55456: EditMode Drawing

- Hide facedots, except when in V3D_ZBUF_SELECT mode
`use_occluded_geometry`
- Different theme (wire_inactive) when not in edge selection mode

12 months agoManipulator: Skip redundant transform updates
Campbell Barton [Wed, 13 Jun 2018 09:59:48 +0000 (11:59 +0200)]
Manipulator: Skip redundant transform updates

Partially address T55458

12 months agoError in recent popover width
Campbell Barton [Wed, 13 Jun 2018 09:57:09 +0000 (11:57 +0200)]
Error in recent popover width

12 months agoUI: remove empty space at the end of headers, tweak start/end spacing.
Brecht Van Lommel [Wed, 13 Jun 2018 09:40:32 +0000 (11:40 +0200)]
UI: remove empty space at the end of headers, tweak start/end spacing.

12 months agoFix 3D view header panning not working with region overlap.
Brecht Van Lommel [Wed, 13 Jun 2018 09:32:46 +0000 (11:32 +0200)]
Fix 3D view header panning not working with region overlap.

12 months agoFix pop-over buttons always getting space for icon
Campbell Barton [Wed, 13 Jun 2018 09:20:50 +0000 (11:20 +0200)]
Fix pop-over buttons always getting space for icon

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 13 Jun 2018 09:11:23 +0000 (11:11 +0200)]
Merge branch 'master' into blender2.8

12 months agoCleanup: swapped X/Y UI_UNIT
Campbell Barton [Wed, 13 Jun 2018 09:10:32 +0000 (11:10 +0200)]
Cleanup: swapped X/Y UI_UNIT

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 13 Jun 2018 09:02:48 +0000 (11:02 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/particle.c

12 months agoCleanup: remove more G.main from BKE area.
Bastien Montagne [Wed, 13 Jun 2018 08:57:10 +0000 (10:57 +0200)]
Cleanup: remove more G.main from BKE area.

12 months agoUI: adjust view navigation layout
Campbell Barton [Wed, 13 Jun 2018 08:51:52 +0000 (10:51 +0200)]
UI: adjust view navigation layout

Button layout now matches T54723.

12 months agoUI: HUD now follows region theming
Campbell Barton [Wed, 13 Jun 2018 07:50:02 +0000 (09:50 +0200)]
UI: HUD now follows region theming

12 months agoDepsgraph: Avoid use of 0 tag flag on build finish
Sergey Sharybin [Wed, 13 Jun 2018 07:49:14 +0000 (09:49 +0200)]
Depsgraph: Avoid use of 0 tag flag on build finish

Use all the explicit tagging. Solves characters being in T-pose after
opening specific scene files.

12 months agoUI: show HUD when region overlap is disabled
Campbell Barton [Wed, 13 Jun 2018 07:27:40 +0000 (09:27 +0200)]
UI: show HUD when region overlap is disabled

12 months agoUI: fix hud panel refresh glitch
Campbell Barton [Wed, 13 Jun 2018 07:21:09 +0000 (09:21 +0200)]
UI: fix hud panel refresh glitch

12 months agoUI: shorten proportional edit name
Campbell Barton [Wed, 13 Jun 2018 07:16:26 +0000 (09:16 +0200)]
UI: shorten proportional edit name

Didn't fit in panel.

12 months agoUI: redo panel layout tweaks
Campbell Barton [Wed, 13 Jun 2018 06:24:56 +0000 (08:24 +0200)]
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.

12 months agoFix region expanding on refresh
Campbell Barton [Tue, 12 Jun 2018 22:29:36 +0000 (00:29 +0200)]
Fix region expanding on refresh

12 months agoUI: adjust header alignment
Campbell Barton [Tue, 12 Jun 2018 20:59:15 +0000 (22:59 +0200)]
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.

12 months agoUI: Name N-Key toggle to Sidebar
Campbell Barton [Tue, 12 Jun 2018 20:55:53 +0000 (22:55 +0200)]
UI: Name N-Key toggle to Sidebar

12 months agoFix T55376: instanced collection render visibility ignored.
Brecht Van Lommel [Fri, 8 Jun 2018 17:26:46 +0000 (19:26 +0200)]
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.

12 months agoWM: don't show redo hud when unsupported
Campbell Barton [Tue, 12 Jun 2018 20:33:58 +0000 (22:33 +0200)]
WM: don't show redo hud when unsupported

12 months agoWM: hide internal operator settings
Campbell Barton [Tue, 12 Jun 2018 20:00:22 +0000 (22:00 +0200)]
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).

12 months agoUI: move auto-merge option to mesh options panel
Campbell Barton [Tue, 12 Jun 2018 19:16:50 +0000 (21:16 +0200)]
UI: move auto-merge option to mesh options panel

This can be used even w/o snap.

12 months agoUI: re-arrange object mode and 3D view buttons
Campbell Barton [Tue, 12 Jun 2018 19:06:54 +0000 (21:06 +0200)]
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.

12 months agoFix T55457: Crash after merge faces
Campbell Barton [Tue, 12 Jun 2018 18:43:46 +0000 (20:43 +0200)]
Fix T55457: Crash after merge faces

12 months agoCleanup: add ED_region_panels_layout
Campbell Barton [Tue, 12 Jun 2018 16:38:05 +0000 (18:38 +0200)]
Cleanup: add ED_region_panels_layout

Only had the '_ex' (extended) version.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 12 Jun 2018 16:26:50 +0000 (18:26 +0200)]
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

12 months agoCleanup: moar G.main removal from BKE area.
Bastien Montagne [Tue, 12 Jun 2018 15:57:24 +0000 (17:57 +0200)]
Cleanup: moar G.main removal from BKE area.

12 months agoCleanup: BKE_scene_free should not have to worry about cleaning its usages.
Bastien Montagne [Tue, 12 Jun 2018 15:46:16 +0000 (17:46 +0200)]
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. ;)

12 months agoCleanup: no need for extra HUD type check now
Campbell Barton [Tue, 12 Jun 2018 15:38:04 +0000 (17:38 +0200)]
Cleanup: no need for extra HUD type check now

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 12 Jun 2018 15:36:24 +0000 (17:36 +0200)]
Merge branch 'master' into blender2.8

12 months agoWM: remove sloppy region type access
Campbell Barton [Tue, 12 Jun 2018 15:34:44 +0000 (17:34 +0200)]
WM: remove sloppy region type access

Avoid accidentally operating on the wrong region type.

12 months agoWM: rename BKE_regiontype_from_id
Campbell Barton [Tue, 12 Jun 2018 15:26:38 +0000 (17:26 +0200)]
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.

12 months agoCleanup: warning, spaces
Campbell Barton [Tue, 12 Jun 2018 15:20:12 +0000 (17:20 +0200)]
Cleanup: warning, spaces

12 months agoCleanup: get rid of global RNG usage in paint stroke code.
Bastien Montagne [Tue, 12 Jun 2018 15:13:23 +0000 (17:13 +0200)]
Cleanup: get rid of global RNG usage in paint stroke code.

12 months agoFix leak of manipulator tooltip timers.
Brecht Van Lommel [Tue, 12 Jun 2018 14:57:01 +0000 (16:57 +0200)]
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.

12 months agoDepsgraph: remove object tagging hack for render.
Brecht Van Lommel [Tue, 12 Jun 2018 11:49:27 +0000 (13:49 +0200)]
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.

12 months agoCleanup: get rid of global RNG usage in transform code.
Bastien Montagne [Tue, 12 Jun 2018 15:00:07 +0000 (17:00 +0200)]
Cleanup: get rid of global RNG usage in transform code.

12 months agoWM: HUD was disappearing on redo
Campbell Barton [Tue, 12 Jun 2018 14:59:37 +0000 (16:59 +0200)]
WM: HUD was disappearing on redo

12 months agoFix redo panels being added to non-hud regions
Campbell Barton [Tue, 12 Jun 2018 14:55:00 +0000 (16:55 +0200)]
Fix redo panels being added to non-hud regions

12 months agoUI: improve HUD ensure/clear logic
Campbell Barton [Tue, 12 Jun 2018 14:49:52 +0000 (16:49 +0200)]
UI: improve HUD ensure/clear logic

Running operators w/o redo now clears the HUD immediately.

12 months agoParticle: Use loclaized RNG for physics simulation
Sergey Sharybin [Tue, 12 Jun 2018 14:36:43 +0000 (16:36 +0200)]
Particle: Use loclaized RNG for physics simulation

Avoids threading conflicts between multiple particle systems being simulated.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 12 Jun 2018 14:29:07 +0000 (16:29 +0200)]
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

12 months agoStudioLight: Use texel size as input size
Jeroen Bakker [Tue, 12 Jun 2018 14:18:07 +0000 (16:18 +0200)]
StudioLight: Use texel size as input size

Bettter light distribution for diffuse shading

12 months agoFix T55452: Crash on saving with visible particle system.
Bastien Montagne [Tue, 12 Jun 2018 14:17:05 +0000 (16:17 +0200)]
Fix T55452: Crash on saving with visible particle system.

Missing Main pointer in recent refactor/cleanup of G.main usages...

12 months agoMath: Remove unused functions which are not safe for threading
Sergey Sharybin [Tue, 12 Jun 2018 13:46:50 +0000 (15:46 +0200)]
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.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 12 Jun 2018 13:41:32 +0000 (15:41 +0200)]
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

12 months agoUse evaluated objects in Alembic unit tests
Sybren A. Stüvel [Tue, 12 Jun 2018 13:39:54 +0000 (15:39 +0200)]
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.

12 months agoFix T55409: Can't animated keyframed material node value after moving keyframe on...
Sergey Sharybin [Fri, 8 Jun 2018 15:23:23 +0000 (17:23 +0200)]
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.

12 months agoParticle: Remove global RNG usage from distribution
Sergey Sharybin [Tue, 12 Jun 2018 13:26:37 +0000 (15:26 +0200)]
Particle: Remove global RNG usage from distribution

12 months agoParticle: Use local RNG during initialization
Sergey Sharybin [Tue, 12 Jun 2018 13:23:38 +0000 (15:23 +0200)]
Particle: Use local RNG during initialization

12 months agoRender: Remove global RNG usage
Sergey Sharybin [Tue, 12 Jun 2018 13:18:54 +0000 (15:18 +0200)]
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.

12 months agoT55454: removal of clay engine
Jeroen Bakker [Tue, 12 Jun 2018 13:15:36 +0000 (15:15 +0200)]
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

12 months agoStudiolight: add rim lighting to the default light setup
Jeroen Bakker [Tue, 12 Jun 2018 11:40:23 +0000 (13:40 +0200)]
Studiolight: add rim lighting to the default light setup

12 months agoCleanup: moar removal of G.main in BKE area...
Bastien Montagne [Tue, 12 Jun 2018 13:16:45 +0000 (15:16 +0200)]
Cleanup: moar removal of G.main in BKE area...

12 months agoAlembic: made bl_alembic_import_test.py run again
Sybren A. Stüvel [Fri, 8 Jun 2018 15:14:44 +0000 (17:14 +0200)]
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.

12 months agoCleanup/simplify G.main usages.
Bastien Montagne [Tue, 12 Jun 2018 13:03:51 +0000 (15:03 +0200)]
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.

12 months agoFix crahs using ndof
Sergey Sharybin [Tue, 12 Jun 2018 12:50:57 +0000 (14:50 +0200)]
Fix crahs using ndof

12 months agoCleanup: Indentation
Sergey Sharybin [Tue, 12 Jun 2018 12:43:40 +0000 (14:43 +0200)]
Cleanup: Indentation

12 months agoParticles: Use local RNG
Sergey Sharybin [Tue, 12 Jun 2018 12:20:46 +0000 (14:20 +0200)]
Particles: Use local RNG

Currently only obvious cases, but is already a progress.

12 months agoDuplication: Use local RNG
Sergey Sharybin [Tue, 12 Jun 2018 12:20:21 +0000 (14:20 +0200)]
Duplication: Use local RNG

Makes generation safe for threading.

12 months agoAdd utility function to help debugging concurrent usage of global RNG
Sergey Sharybin [Tue, 12 Jun 2018 12:19:26 +0000 (14:19 +0200)]
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.

12 months agoDepsgraph: Ensure modifiers evaluation doesn't happen on top evaluated mesh
Sergey Sharybin [Tue, 12 Jun 2018 08:01:57 +0000 (10:01 +0200)]
Depsgraph: Ensure modifiers evaluation doesn't happen on top evaluated mesh

12 months agoDepsgraph: Don't update derived mesh for particles on render
Sergey Sharybin [Tue, 12 Jun 2018 08:00:25 +0000 (10:00 +0200)]
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

12 months agoDepsgraph: Add debug option to invalidate data tagged for update
Sergey Sharybin [Tue, 12 Jun 2018 07:59:30 +0000 (09:59 +0200)]
Depsgraph: Add debug option to invalidate data tagged for update

See comment for INVALIDATE_ON_FLUSH.

12 months agoDepsgraph: Set temp object to invalid state as soon as it becomes inaccessible
Sergey Sharybin [Tue, 12 Jun 2018 07:55:34 +0000 (09:55 +0200)]
Depsgraph: Set temp object to invalid state as soon as it becomes inaccessible

12 months agoDepsgraph: Cleanup, wrap private functions to an anonymous namespace
Sergey Sharybin [Tue, 12 Jun 2018 07:46:00 +0000 (09:46 +0200)]
Depsgraph: Cleanup, wrap private functions to an anonymous namespace

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 12 Jun 2018 10:58:31 +0000 (12:58 +0200)]
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

12 months agoCleanup: remove moar G.main from BKE area.
Bastien Montagne [Tue, 12 Jun 2018 10:53:27 +0000 (12:53 +0200)]
Cleanup: remove moar G.main from BKE area.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 12 Jun 2018 10:38:54 +0000 (12:38 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c

12 months agoCleanup: remove some G.main from ED's animsys.
Bastien Montagne [Tue, 12 Jun 2018 10:28:14 +0000 (12:28 +0200)]
Cleanup: remove some G.main from ED's animsys.

The easy ones - there some much, much trickier to tackle there...

12 months agoLookDev: Move lookdev balls when menu switches
Jeroen Bakker [Tue, 12 Jun 2018 10:24:05 +0000 (12:24 +0200)]
LookDev: Move lookdev balls when menu switches

12 months agoStudiolight: Disabled irradiance icons
Jeroen Bakker [Tue, 12 Jun 2018 09:53:34 +0000 (11:53 +0200)]
Studiolight: Disabled irradiance icons

12 months agoStudiolight: Bumped the radiance buffer to RGBA16F
Jeroen Bakker [Tue, 12 Jun 2018 09:50:07 +0000 (11:50 +0200)]
Studiolight: Bumped the radiance buffer to RGBA16F

Fixes issue reported at
https://devtalk.blender.org/t/lookdev-ibl-result/890/3

12 months agoStudiolight: cache irradiance buffer
Jeroen Bakker [Tue, 12 Jun 2018 09:48:17 +0000 (11:48 +0200)]
Studiolight: cache irradiance buffer

12 months agoCleanup: remove some G.main from BKE area.
Bastien Montagne [Tue, 12 Jun 2018 09:21:54 +0000 (11:21 +0200)]
Cleanup: remove some G.main from BKE area.

12 months agoUI: fix crash with HUD panel size
Campbell Barton [Tue, 12 Jun 2018 09:18:52 +0000 (11:18 +0200)]
UI: fix crash with HUD panel size

There can be no panels in the region.

12 months agoUI: remove redo popover from topbar
Campbell Barton [Tue, 12 Jun 2018 08:51:23 +0000 (10:51 +0200)]
UI: remove redo popover from topbar

See: T55039

12 months agoFix T55448: Typo in Cycles CUDA debug output
Lukas Stockner [Tue, 12 Jun 2018 08:37:51 +0000 (10:37 +0200)]
Fix T55448: Typo in Cycles CUDA debug output

Reviewers: sergey, lukasstockner97

Reviewed By: lukasstockner97

Tags: #cycles, #bf_blender

Differential Revision: https://developer.blender.org/D3472

12 months agoUI: Initial persistent floating redo panel
Campbell Barton [Tue, 12 Jun 2018 08:11:32 +0000 (10:11 +0200)]
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.

12 months agoUI: non editable template_icon_views are rendered as label
Jeroen Bakker [Tue, 12 Jun 2018 06:43:09 +0000 (08:43 +0200)]
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.

12 months agoUI: replace ui_draw_search_back w/ general code
Campbell Barton [Tue, 12 Jun 2018 06:14:13 +0000 (08:14 +0200)]
UI: replace ui_draw_search_back w/ general code

Useful for drawing any kind of region-background.

12 months agoCleanup: remove unused context args
Campbell Barton [Tue, 12 Jun 2018 05:59:27 +0000 (07:59 +0200)]
Cleanup: remove unused context args

12 months agoCleanup: remove image->bindcode, always wrap in GPUTexture.
Brecht Van Lommel [Mon, 11 Jun 2018 20:30:59 +0000 (22:30 +0200)]
Cleanup: remove image->bindcode, always wrap in GPUTexture.

This simplifies code, and will hopefully make UDIM usage of GPUTexture
a little easier.

12 months agoRevert "Cleanup: remove image->bindcode, always wrap in GPUTexture."
Brecht Van Lommel [Mon, 11 Jun 2018 20:34:35 +0000 (22:34 +0200)]
Revert "Cleanup: remove image->bindcode, always wrap in GPUTexture."

This reverts commit 8242a5bc853a74da1273fc7ad4b959ac716c563c. This isn't
quite ready to use yet.