blender.git
2 years 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

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

2 years 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

2 years 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.

2 years 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.

2 years 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

2 years 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

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

2 years 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.

2 years 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.

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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.

2 years 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.

2 years 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

2 years 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.

2 years 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

2 years 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

2 years 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.

2 years 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.

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

2 years 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.

2 years 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

2 years 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.

2 years 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

2 years 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).

2 years 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.

2 years 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.

2 years 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

2 years 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.

2 years 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

2 years 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.

2 years 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. ;)

2 years 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

2 years 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

2 years 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.

2 years 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.

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

2 years 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.

2 years 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.

2 years 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.

2 years 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.

2 years 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

2 years 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

2 years 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.

2 years 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.

2 years 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

2 years 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

2 years 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...

2 years 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.

2 years 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

2 years 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.

2 years 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.

2 years 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

2 years 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

2 years 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.

2 years 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

2 years 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

2 years 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...

2 years 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.

2 years 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.

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

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

2 years 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.

2 years 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.

2 years 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.

2 years 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

2 years 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

2 years 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.

2 years 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

2 years 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

2 years 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

2 years 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.

2 years 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

2 years 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...

2 years 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

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

2 years 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

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

2 years 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.

2 years 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.

2 years 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

2 years 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

2 years 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.

2 years 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.

2 years 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.

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

2 years 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.

2 years 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.

2 years 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.

2 years agoFix part of T55439: don't add indirectly linked objects to the scene on link.
Brecht Van Lommel [Mon, 11 Jun 2018 19:51:21 +0000 (21:51 +0200)]
Fix part of T55439: don't add indirectly linked objects to the scene on link.

2 years agoDrivers: ensure Python expressions are cached with copy-on-write.
Brecht Van Lommel [Mon, 11 Jun 2018 18:00:03 +0000 (20:00 +0200)]
Drivers: ensure Python expressions are cached with copy-on-write.

Store the compiled expressions on the original driver.

Ref T55442.

2 years agoCleanup: fix compiler warnings.
Brecht Van Lommel [Mon, 11 Jun 2018 19:20:43 +0000 (21:20 +0200)]
Cleanup: fix compiler warnings.

2 years agoFix accidental addons submodule change in previous commit.
Brecht Van Lommel [Mon, 11 Jun 2018 19:12:06 +0000 (21:12 +0200)]
Fix accidental addons submodule change in previous commit.

2 years agoFix crash with OpenGL rendering in multiple threads on macOS.
Edmund Kapusniak [Mon, 11 Jun 2018 18:50:14 +0000 (20:50 +0200)]
Fix crash with OpenGL rendering in multiple threads on macOS.

On macOS we must always go through BLI_thread_local_get/set().

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

2 years agoPose: optimize pose rebuild for copy-on-write.
Brecht Van Lommel [Mon, 11 Jun 2018 18:26:29 +0000 (20:26 +0200)]
Pose: optimize pose rebuild for copy-on-write.

Ref T55442.

2 years agoCleanup: add simplified panel callbacks
Campbell Barton [Mon, 11 Jun 2018 17:30:48 +0000 (19:30 +0200)]
Cleanup: add simplified panel callbacks

2 years agoImprove/partially fix overriding of Object material pointers.
Bastien Montagne [Mon, 11 Jun 2018 17:28:12 +0000 (19:28 +0200)]
Improve/partially fix overriding of Object material pointers.

Basic workflow shall now work, still lots to do in the UI (ID template
needs some love to reflect overriden status ;) ).