3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 6 May 2018 16:35:39 +0000 (18:35 +0200)]
Merge branch 'master' into blender2.8

3 years agoArmature: Add a special Pass for bone axes.
Clément Foucault [Sun, 6 May 2018 16:36:27 +0000 (18:36 +0200)]
Armature: Add a special Pass for bone axes.

In object mode, the axes are drawn like any other wire objects with
depth test and depth write. Thus enabling MSAA to work but not their xray

In edit armature/pose mode, draw smooth line without depth testing. This
produces wrong draw ordering problem but still gives the desired xray
behaviour. We do it outside of the MSAA pass since the xray behaviour is not
compatible with it. But we are drawing smoothed lines so no need for MSAA.
The lines are 2px thick and improve readability.

3 years agoArmature: Fix bone axes not using bone color.
Clément Foucault [Sun, 6 May 2018 16:29:49 +0000 (18:29 +0200)]
Armature: Fix bone axes not using bone color.

3 years agoArmature: Put passes in a struct easier to pass around.
Clément Foucault [Sun, 6 May 2018 16:28:11 +0000 (18:28 +0200)]
Armature: Put passes in a struct easier to pass around.

3 years agoDRW: Add DRW_STATE_WIRE_SMOOTH to draw smooth wires.
Clément Foucault [Sun, 6 May 2018 16:23:53 +0000 (18:23 +0200)]
DRW: Add DRW_STATE_WIRE_SMOOTH to draw smooth wires.

This is only useful if depth test/wire is disabled.

3 years agoArmature: Fix/Change bone axes display.
Clément Foucault [Sun, 6 May 2018 14:09:25 +0000 (16:09 +0200)]
Armature: Fix/Change bone axes display.

Now the axes are displayed correctly at the tip of the bone and with the
axes names.

I've made some modifications though:
- Axes are colored. (should not be in object mode but that's TODO)
- Axes ends are not flat arrows anymore. Replaced with a small diamond.
- Axes names are now scale by their respective axes instead of being
  affected by other axes.
- Changed axes names "font" to be a bit more sexy.

3 years agoCleanup: split rotation_from_view
Campbell Barton [Sun, 6 May 2018 16:32:18 +0000 (18:32 +0200)]
Cleanup: split rotation_from_view

Add a function that takes only a quat, instead of the 3D view.

Allows for using non-view orientations.

3 years agoFix update for manipulator w/ 3D cursor change
Campbell Barton [Sun, 6 May 2018 14:41:32 +0000 (16:41 +0200)]
Fix update for manipulator w/ 3D cursor change

3 years agoCleanup: transform manipulator filename
Campbell Barton [Sun, 6 May 2018 14:12:42 +0000 (16:12 +0200)]
Cleanup: transform manipulator filename

Use matching 2d/3d suffix.

3 years agoCorrect extrude poll function
Campbell Barton [Sun, 6 May 2018 14:13:43 +0000 (16:13 +0200)]
Correct extrude poll function

3 years agoWorkbench: if no material is available, use color 0.8 like default material.
Brecht Van Lommel [Sun, 6 May 2018 13:58:01 +0000 (15:58 +0200)]
Workbench: if no material is available, use color 0.8 like default material.

3 years agoFix use of removed Blender Internal property.
Brecht Van Lommel [Sun, 6 May 2018 13:58:48 +0000 (15:58 +0200)]
Fix use of removed Blender Internal property.

3 years agoFix issue with hidden headers after previous commit.
Brecht Van Lommel [Sun, 6 May 2018 14:07:34 +0000 (16:07 +0200)]
Fix issue with hidden headers after previous commit.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 6 May 2018 14:00:27 +0000 (16:00 +0200)]
Merge branch 'master' into blender2.8

3 years agoObject Snap: add object & matrix to view ray cast
Campbell Barton [Sun, 6 May 2018 13:56:09 +0000 (15:56 +0200)]
Object Snap: add object & matrix to view ray cast

Some snap functions already exposed this.

3 years agoUI: region overlap now works for headers as well.
Brecht Van Lommel [Sat, 21 Apr 2018 16:37:03 +0000 (18:37 +0200)]
UI: region overlap now works for headers as well.

This is for the 3D viewport and image editor. A remaining issue is
that pulldown menu buttons only show text, which is not visible on
all background colors, so making the header entirely transparent
does not work well at the moment.

3 years agoEdit-mesh: multi-object reveal
Dalai Felinto [Sun, 6 May 2018 11:51:40 +0000 (13:51 +0200)]
Edit-mesh: multi-object reveal

3 years agoEdit-mesh: multi-object hide
Dalai Felinto [Sun, 6 May 2018 11:51:30 +0000 (13:51 +0200)]
Edit-mesh: multi-object hide

3 years agoEdit-mesh: multi-object delete edge loops
Dalai Felinto [Sun, 6 May 2018 11:44:11 +0000 (13:44 +0200)]
Edit-mesh: multi-object delete edge loops

3 years agoFix crash with select linked when nothing is under the cursor
Dalai Felinto [Sun, 6 May 2018 11:19:17 +0000 (13:19 +0200)]
Fix crash with select linked when nothing is under the cursor

There is no object to update anyways, and there is no valid basact when the
nified_findnearest() test fails.

How to reproduce the bug: Try to select linked (L) with selected faces but
withotu mouse hovering any mesh.

Bug introduced on: rBbfc9d426bb95 (original multi-object edit commit).

3 years agoEdit-mesh: multi-object select less
Dalai Felinto [Sun, 6 May 2018 11:08:59 +0000 (13:08 +0200)]
Edit-mesh: multi-object select less

3 years agoEdit-mesh: multi-object select more
Dalai Felinto [Sun, 6 May 2018 11:03:59 +0000 (13:03 +0200)]
Edit-mesh: multi-object select more

3 years agoFix missing show_weight from overlay UI
Campbell Barton [Sun, 6 May 2018 10:17:53 +0000 (12:17 +0200)]
Fix missing show_weight from overlay UI

Missed when moving settings out of the mesh.

3 years agoShow the 3D cursor by default
Campbell Barton [Sun, 6 May 2018 09:56:26 +0000 (11:56 +0200)]
Show the 3D cursor by default

Was committed as part of unrelated change: D3198.

3 years agoFix extrude glitch where undo state was visible
Campbell Barton [Sun, 6 May 2018 09:48:32 +0000 (11:48 +0200)]
Fix extrude glitch where undo state was visible

3 years agoEditMesh: initial extrude manipulator
Campbell Barton [Sun, 6 May 2018 08:00:37 +0000 (10:00 +0200)]
EditMesh: initial extrude manipulator

This manipulator is a test for mixing do/redo,
there are still some glitches that need sorting out in
transform & the undo stack.

3 years agoTransform: support initial offset option
Campbell Barton [Sun, 6 May 2018 07:52:12 +0000 (09:52 +0200)]
Transform: support initial offset option

Needed to redo extrude+transform macro w/o resetting the translation.

3 years agoWM: manipulator redo support
Campbell Barton [Sun, 6 May 2018 07:49:55 +0000 (09:49 +0200)]
WM: manipulator redo support

Support for adjusting a setting from the last executed operator.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 6 May 2018 07:02:47 +0000 (09:02 +0200)]
Merge branch 'master' into blender2.8

3 years agoWM: include macros in last-properties
Campbell Barton [Sun, 6 May 2018 06:54:58 +0000 (08:54 +0200)]
WM: include macros in last-properties

Needed for 2.8 tool system storage of macro properties.

3 years agoIDProp API: use stored string length for IDP_repr
Campbell Barton [Sun, 6 May 2018 06:45:54 +0000 (08:45 +0200)]
IDProp API: use stored string length for IDP_repr

Also NULL check ID pointers.

3 years agoFix T54801: incorrect render with zero weight transparent BSDFs.
Brecht Van Lommel [Sat, 5 May 2018 23:24:53 +0000 (01:24 +0200)]
Fix T54801: incorrect render with zero weight transparent BSDFs.

3 years agoFix crash on armature drawing
Dalai Felinto [Sat, 5 May 2018 22:23:13 +0000 (00:23 +0200)]
Fix crash on armature drawing

3 years agoArmature: Fix object mode display.
Clément Foucault [Sat, 5 May 2018 20:58:46 +0000 (22:58 +0200)]
Armature: Fix object mode display.

Don't show wires if not selected.
Bone outline size match meshes outlines.

3 years agoArmature: Change Bone drawing.
Clément Foucault [Sat, 5 May 2018 19:00:31 +0000 (21:00 +0200)]
Armature: Change Bone drawing.

This makes a few changes:
- Remove the old "overlay" wires.
- Add constraints colors to bones.
- Specify a a new "hint" color per bone. Making selection/Active state
  more obvious.
- Unify Octahedral/B-Bones/Envelope shading and colors.
- Change outline size depending on the selection/active state of the bone.

Note that thoses changes are not final and needs review.

3 years agoArmature: Rename bone shaders and add 2 colors smooth blending.
Clément Foucault [Sat, 5 May 2018 18:51:16 +0000 (20:51 +0200)]
Armature: Rename bone shaders and add 2 colors smooth blending.

This will enable us to do more nice stuff in future commits.

This commit is a temporary commit, it will compile but will crash if
trying to display any armature. Next commit does work.

3 years agoArmature: Outline: Fix outline detection in critical cases.
Clément Foucault [Sat, 5 May 2018 18:33:57 +0000 (20:33 +0200)]
Armature: Outline: Fix outline detection in critical cases.

Outline was not generated because the normal was completely orthogonal to
the view.

3 years agoArmature: Make bone outlines thickness variable.
Clément Foucault [Sat, 5 May 2018 18:27:22 +0000 (20:27 +0200)]
Armature: Make bone outlines thickness variable.

3 years agoArmature: Set outline width to 2.0.
Clément Foucault [Sat, 5 May 2018 18:22:05 +0000 (20:22 +0200)]
Armature: Set outline width to 2.0.

Correspond roughly to 1px width.

3 years agoWorkbench: Temporary fix washed out background color.
Clément Foucault [Sat, 5 May 2018 18:04:17 +0000 (20:04 +0200)]
Workbench: Temporary fix washed out background color.

Save our eyes until proper color management is implemented.

3 years agoIcons: add texture paint icons
Campbell Barton [Sat, 5 May 2018 16:01:35 +0000 (18:01 +0200)]
Icons: add texture paint icons

3 years ago3D viewport: rename ambient to shadow intensity, default single color to 0.8.
Brecht Van Lommel [Sat, 5 May 2018 13:09:21 +0000 (15:09 +0200)]
3D viewport: rename ambient to shadow intensity, default single color to 0.8.

3 years agoUI: experiment to make popover buttons draw like enum menus.
Brecht Van Lommel [Sat, 5 May 2018 12:47:50 +0000 (14:47 +0200)]
UI: experiment to make popover buttons draw like enum menus.

Looks better for 3D viewport shading, but needs more tweaks to distinguish
it from other button types probably.

3 years ago3D Viewport: move overlay settings from collections to 3D viewport.
Brecht Van Lommel [Thu, 3 May 2018 13:09:09 +0000 (15:09 +0200)]
3D Viewport: move overlay settings from collections to 3D viewport.

For some we may add per object overrides, but for most we plan to keep them
strictly per viewport settings. Display settings from the mesh still need to
be moved here, only collections were done to remove that code.

3 years ago3D Viewport: make shading and overlay DNA match UI names.
Brecht Van Lommel [Sat, 5 May 2018 08:45:15 +0000 (10:45 +0200)]
3D Viewport: make shading and overlay DNA match UI names.

We should use consistent naming between the internal code and UI whenever
possible, only reason not to is file compatibility.

3 years agoCleanup: remove legacy 3D view data.
Brecht Van Lommel [Sat, 5 May 2018 08:10:47 +0000 (10:10 +0200)]
Cleanup: remove legacy 3D view data.

3 years agoCleanup: minor code formatting tweaks for 3D view DNA.
Brecht Van Lommel [Sat, 5 May 2018 08:03:42 +0000 (10:03 +0200)]
Cleanup: minor code formatting tweaks for 3D view DNA.

3 years agoCleanup: fix compiler warnings.
Brecht Van Lommel [Sat, 5 May 2018 07:37:14 +0000 (09:37 +0200)]
Cleanup: fix compiler warnings.

3 years agoGroups: remove drawing group objects in a different color.
Brecht Van Lommel [Fri, 4 May 2018 09:36:50 +0000 (11:36 +0200)]
Groups: remove drawing group objects in a different color.

With the upcoming unification of groups and collections this will make
no sense anymore, as all objects will be in a collection.

3 years agoWorkbench: Fix reading and testing from depth buffer
Jeroen Bakker [Sat, 5 May 2018 13:31:10 +0000 (15:31 +0200)]
Workbench: Fix reading and testing from depth buffer

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 5 May 2018 12:42:10 +0000 (14:42 +0200)]
Merge branch 'master' into blender2.8

3 years agoIDProp API: add native C repr function
Campbell Barton [Sat, 5 May 2018 12:27:54 +0000 (14:27 +0200)]
IDProp API: add native C repr function

Was using Python which wasn't very efficient (even for logging).

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 5 May 2018 07:57:45 +0000 (09:57 +0200)]
Merge branch 'master' into blender2.8

3 years agoPyAPI: add pop method to RNA struct types
Campbell Barton [Sat, 5 May 2018 07:53:30 +0000 (09:53 +0200)]
PyAPI: add pop method to RNA struct types

This fits in with existing dict style access.

3 years agoIDProp Py API: Add default argument to pop
Campbell Barton [Sat, 5 May 2018 07:48:06 +0000 (09:48 +0200)]
IDProp Py API: Add default argument to pop

Match dict.pop behavior.

3 years agoIDProp API: Avoid redundant group replace lookup
Campbell Barton [Sat, 5 May 2018 07:31:17 +0000 (09:31 +0200)]
IDProp API: Avoid redundant group replace lookup

3 years agoEevee: Shadows: Don't allocate more CSM layer than we need.
Clément Foucault [Fri, 4 May 2018 17:24:02 +0000 (19:24 +0200)]
Eevee: Shadows: Don't allocate more CSM layer than we need.

3 years agoCleanup: trailing space
Campbell Barton [Fri, 4 May 2018 17:22:38 +0000 (19:22 +0200)]
Cleanup: trailing space

3 years agoEdit Mesh: Multi object color reverse
Campbell Barton [Fri, 4 May 2018 17:16:43 +0000 (19:16 +0200)]
Edit Mesh: Multi object color reverse

D3173 by @la10

3 years agoEevee: Fix Cascaded shadow map calculation.
Clément Foucault [Fri, 4 May 2018 15:33:16 +0000 (17:33 +0200)]
Eevee: Fix Cascaded shadow map calculation.

The first one was done correctly but the second was wrong due to the matrix
being overwritten.

3 years agoDRW: Add DRW_viewport_far/near_distance_get functions.
Clément Foucault [Fri, 4 May 2018 15:32:53 +0000 (17:32 +0200)]
DRW: Add DRW_viewport_far/near_distance_get functions.

3 years agoFix crash selecting edit-mesh
Campbell Barton [Fri, 4 May 2018 17:01:53 +0000 (19:01 +0200)]
Fix crash selecting edit-mesh

The base and the vert/edge/face could be out of sync.

3 years agoFix: Fire notifiers on pose properties changed
Joshua Leung [Fri, 4 May 2018 15:30:49 +0000 (17:30 +0200)]
Fix: Fire notifiers on pose properties changed

While testing UI_OT_reset_default_button, discovered that using
Reset to Default Values on bone locations didn't work. Turns out
to be missing update on this property. So, this is probably
dependent on the property used.

3 years agoWorkbench: Color selector when in single color mode
Jeroen Bakker [Fri, 4 May 2018 15:25:49 +0000 (17:25 +0200)]
Workbench: Color selector when in single color mode

3 years agoMerge branch 'master' into blender2.8
Germano [Fri, 4 May 2018 14:58:55 +0000 (11:58 -0300)]
Merge branch 'master' into blender2.8

3 years agoBKE: bvhuils: remove member `sphere_radius`.
Germano [Fri, 4 May 2018 14:57:01 +0000 (11:57 -0300)]
BKE: bvhuils: remove member `sphere_radius`.

This member currently doubles the value of `ray->radius` or is not even used.

3 years agoDepsgraph: Fix several ID blocks added multiple times to depsgraph
Sergey Sharybin [Fri, 4 May 2018 14:36:27 +0000 (16:36 +0200)]
Depsgraph: Fix several ID blocks added multiple times to depsgraph

Ideally, we need to get rid of whole bmain iteration in depsgraph
construction, but then it's not clear which movie clips and such
to evaluate.

3 years agoT54953: Use OCIO for display color management
Jeroen Bakker [Fri, 4 May 2018 14:26:31 +0000 (16:26 +0200)]
T54953: Use OCIO for display color management

3 years agoWorkbench: Random color generation
Jeroen Bakker [Fri, 4 May 2018 12:52:08 +0000 (14:52 +0200)]
Workbench: Random color generation

Now the colors are determined from the name and library name of the
object. This should make more consistent random colors

3 years agoMerge branch 'master' into blender2.8
Germano [Fri, 4 May 2018 14:25:40 +0000 (11:25 -0300)]
Merge branch 'master' into blender2.8

3 years agoFix grid fill crash with copy on write
Sergey Sharybin [Fri, 4 May 2018 14:23:00 +0000 (16:23 +0200)]
Fix grid fill crash with copy on write

3 years agoFix erroe in previous commit.
Germano [Fri, 4 May 2018 14:22:50 +0000 (11:22 -0300)]
Fix erroe in previous commit.

3 years agoEevee: Shadows: Compute Octahedron size from CubeMap size.
Clément Foucault [Fri, 4 May 2018 13:59:01 +0000 (15:59 +0200)]
Eevee: Shadows: Compute Octahedron size from CubeMap size.

This was the otherway around before. But since we can have a different size*
for cube texture now, we can compute the correct-ish texture size.

This will give us on average the same texture appearance when we will add
support for real cubemap shadows.

3 years agoEevee: Cap Shadow resolution to 4096px^2.
Clément Foucault [Fri, 4 May 2018 13:42:06 +0000 (15:42 +0200)]
Eevee: Cap Shadow resolution to 4096px^2.

As much as I want to give freedom to the user, 1.5G of vram for a
single shadow is a big of a stability issue.

So limiting to 4096 for now, we may remove this limit in the future.

3 years agoEevee: Shadows: Separate Cube and Cascade shadow maps into 2 texture array.
Clément Foucault [Fri, 4 May 2018 12:39:05 +0000 (14:39 +0200)]
Eevee: Shadows: Separate Cube and Cascade shadow maps into 2 texture array.

This mean we can now have different shadow resolutions for both.

However each shadow type keep the same size accross all lamps because of
future "real" Cube Shadowmaps limitation and to save texture sampler slots.

That said the cascade shadow resolution could (in the future) still be
changed to be adjustable per sun lamp.

3 years agoEevee: Simplify shadow test code with macros.
Clément Foucault [Fri, 4 May 2018 09:22:21 +0000 (11:22 +0200)]
Eevee: Simplify shadow test code with macros.

3 years agoMerge branch 'master' into blender2.8
Germano [Fri, 4 May 2018 14:16:13 +0000 (11:16 -0300)]
Merge branch 'master' into blender2.8

3 years agoBKE: bvhutils: Unifies static functions oh bvhtrees creation.
Germano [Fri, 4 May 2018 14:15:21 +0000 (11:15 -0300)]
BKE: bvhutils: Unifies static functions oh bvhtrees creation.

3 years agoStatic Override: fix stupid ;istake in moving autooverride to own struct flag.
Bastien Montagne [Fri, 4 May 2018 13:44:19 +0000 (15:44 +0200)]
Static Override: fix stupid ;istake in moving autooverride to own struct flag.

3 years agoMerge branch 'blender2.8' into tmp-static-override-insertion
Bastien Montagne [Fri, 4 May 2018 13:36:06 +0000 (15:36 +0200)]
Merge branch 'blender2.8' into tmp-static-override-insertion

3 years agoStatic Override: Add overridable flag to drivers' ID pointer.
Bastien Montagne [Fri, 4 May 2018 13:32:22 +0000 (15:32 +0200)]
Static Override: Add overridable flag to drivers' ID pointer.

3 years agoMerge branch 'blender2.8' into tmp-static-override-insertion
Bastien Montagne [Fri, 4 May 2018 13:26:02 +0000 (15:26 +0200)]
Merge branch 'blender2.8' into tmp-static-override-insertion

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 4 May 2018 13:21:42 +0000 (15:21 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: Remove G.main from framechange_poses_clear_unkeyed()
Sergey Sharybin [Fri, 4 May 2018 12:57:31 +0000 (14:57 +0200)]
Cleanup: Remove G.main from framechange_poses_clear_unkeyed()

3 years agoTransform: use bool when local matrix is needed
Campbell Barton [Fri, 4 May 2018 12:41:51 +0000 (14:41 +0200)]
Transform: use bool when local matrix is needed

Existing code checked pose/edit mode to check for transforming in an
objects local space.

This added many similar checks all over the code,
which leads to confusion.
Multi-edit caused a regression in UV transform since where UV's
had the object matrix applied by accident.

Now there is a boolean to use a local matrix,
this allows for any mode to have a 4x4 matrix
applied w/o adding mode specific checks everywhere.

3 years agoFix mistake in boundbox center
Campbell Barton [Fri, 4 May 2018 12:41:36 +0000 (14:41 +0200)]
Fix mistake in boundbox center

3 years agoMerge branch 'master' into blender2.8
Germano [Fri, 4 May 2018 13:12:47 +0000 (10:12 -0300)]
Merge branch 'master' into blender2.8

3 years agoBKE: Smoke: Fix error with implicit declaration of function due recent changes.
Germano [Fri, 4 May 2018 13:11:30 +0000 (10:11 -0300)]
BKE: Smoke: Fix error with implicit declaration of function due recent changes.

3 years agoDepsgraph: Fix missing relations for IDs brought by drivers
Sergey Sharybin [Fri, 4 May 2018 12:27:50 +0000 (14:27 +0200)]
Depsgraph: Fix missing relations for IDs brought by drivers

This is similar to rather recent fix in nodes builder.

Fixes crash when creating static override for chicken from Dweebs.

3 years agoMerge branch 'master' into blender2.8
Germano [Fri, 4 May 2018 12:22:48 +0000 (09:22 -0300)]
Merge branch 'master' into blender2.8

3 years agoBKE: BVHtree: Replace all external references of `bvhtree_from_mesh_looptri` with...
Germano [Fri, 4 May 2018 12:21:42 +0000 (09:21 -0300)]
BKE: BVHtree: Replace all external references of `bvhtree_from_mesh_looptri` with `bvhtree_from_mesh_get`.

3 years agoWorkbench: Shadows
Jeroen Bakker [Fri, 4 May 2018 12:07:00 +0000 (14:07 +0200)]
Workbench: Shadows

Initial review of the shard shadows in the workbench engine.

Speed optimizations like transform feedback are not implemented yet. I first want this part to be reviewed and merged.

@fclem please check the note in drw_stencil_set it was holding back nequal == 0 as by default DST.stencil_mask was set to 0. questioin is should we remove the whole check or not.

Also I am still looking for a better name (or split the enum) for DRW_STATE_STENCIL_DEPTH_FAIL_INCR_DECR_WRAP

Reviewers: fclem

Reviewed By: fclem

Tags: #code_quest

Differential Revision:

3 years agoAllocate/free meshes with generic library functions.
Sybren A. Stüvel [Thu, 3 May 2018 13:42:55 +0000 (15:42 +0200)]
Allocate/free meshes with generic library functions.

This avoids the need to use Mesh-specific functions, and makes allocation
and freeing easy oneliners.

3 years agoMesh Remap: Face Corner Data: Do not use large epsilon values to create bvhtrees.
Germano [Fri, 4 May 2018 12:01:56 +0000 (09:01 -0300)]
Mesh Remap: Face Corner Data: Do not use large epsilon values to create bvhtrees.

Use ray radius instead.

3 years agoMesh Remap: Face Data: Do not use large epsilon values to create bvhtree.
Germano [Fri, 4 May 2018 11:29:00 +0000 (08:29 -0300)]
Mesh Remap: Face Data: Do not use large epsilon values to create bvhtree.

If you need the approximation, use raycast radius.

3 years agoID management: add higher level BKE_id_new... helpers.
Bastien Montagne [Fri, 4 May 2018 10:53:20 +0000 (12:53 +0200)]
ID management: add higher level BKE_id_new... helpers.

Those should be used in priority when you need to create either a new
datablock in Main, or a new temp one. Lower level BKE_libblock_...
should only be used when you need a very specific, uncommon behavior.

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 4 May 2018 10:50:40 +0000 (12:50 +0200)]
Merge branch 'master' into blender2.8

3 years agoDepsgraph: Fix extra operations and relations created for shared armatures
Sergey Sharybin [Fri, 4 May 2018 10:49:28 +0000 (12:49 +0200)]
Depsgraph: Fix extra operations and relations created for shared armatures

3 years agoMerge branch 'master' into blender2.8
Germano [Fri, 4 May 2018 10:44:34 +0000 (07:44 -0300)]
Merge branch 'master' into blender2.8

3 years agoMesh Remap: Change the sphere_radius parameter instead of creating a bvhtree with...
Germano [Fri, 4 May 2018 10:43:08 +0000 (07:43 -0300)]
Mesh Remap: Change the sphere_radius parameter instead of creating a bvhtree with epsilon equal to the value of ray_radius.

This is the desirable behavior.
It also removes one more use of `bvhtree_from_mesh_looptri`.