blender.git
19 months agoDope Sheet: remove many hard-coded color and alpha constants.
Alexander Gavrilov [Thu, 18 Oct 2018 20:48:06 +0000 (23:48 +0300)]
Dope Sheet: remove many hard-coded color and alpha constants.

Add the necessary colors and/or alpha components to the theme instead.
Also switch the background for ordinary channels to use the likely
intended theme option, instead of the window background color.

The general rule is that the channel color is drawn full strength in the
channel list on the left, and with alpha in the actual key frame area on
the right. This alpha is also reused with bone group colors.

Reviewers: brecht, billreynish

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

19 months agoUI: reorder and group blend modes in menus, similar to other apps.
Charlie Jolly [Fri, 19 Oct 2018 14:56:38 +0000 (16:56 +0200)]
UI: reorder and group blend modes in menus, similar to other apps.

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

19 months agoUI: move reports / job back to status bar, but make it more visible with color.
Brecht Van Lommel [Fri, 19 Oct 2018 15:14:27 +0000 (17:14 +0200)]
UI: move reports / job back to status bar, but make it more visible with color.

19 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Fri, 19 Oct 2018 15:16:26 +0000 (09:16 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

19 months agobuild_depenencies: Fix url for openal.
Ray Molenkamp [Fri, 19 Oct 2018 15:09:06 +0000 (09:09 -0600)]
build_depenencies: Fix url for openal.

19 months agoFix shadows of sun type lights on some Intel gpus
mano-wii [Fri, 19 Oct 2018 14:02:36 +0000 (11:02 -0300)]
Fix shadows of sun type lights on some Intel gpus

When you pass a struct as a parameter to a function, the qualifier "layout(column_major)" is lost.

19 months agoFix T57284: poor result UV unwrapping concave n-gon.
Brecht Van Lommel [Fri, 19 Oct 2018 12:42:27 +0000 (14:42 +0200)]
Fix T57284: poor result UV unwrapping concave n-gon.

19 months agoMulti-Objects: Implement/Fix POSE_OT_select_constraint_target
Dalai Felinto [Fri, 19 Oct 2018 12:38:21 +0000 (09:38 -0300)]
Multi-Objects: Implement/Fix POSE_OT_select_constraint_target

This operator had an initial multi-objects implementation.
However it would not select target bones across different selected objects.

19 months agoOutliner: Open empty collection when something is dragged into it
Jacques Lucke [Fri, 19 Oct 2018 12:30:39 +0000 (14:30 +0200)]
Outliner: Open empty collection when something is dragged into it

Reviewers: brecht

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

19 months agoUV_OT_unwrap: Error messages
Dalai Felinto [Fri, 19 Oct 2018 12:13:59 +0000 (09:13 -0300)]
UV_OT_unwrap: Error messages

Make sure a message is not reported multiple times when working with
multi-objects. Like in 2.7x we may have two infos coming from the same operator.

In 2.7 we could report non-uniform xor non-scaled, and subsurface.
Now we can report each one of those errors separately.

19 months agoFix multiple-object uv selection not "deselecting" other objects
Dalai Felinto [Fri, 19 Oct 2018 11:49:55 +0000 (08:49 -0300)]
Fix multiple-object uv selection not "deselecting" other objects

19 months agoCTX_DATA_BEGIN for active object only (..._from_active_object)
Dalai Felinto [Fri, 19 Oct 2018 11:29:15 +0000 (08:29 -0300)]
CTX_DATA_BEGIN for active object only (..._from_active_object)

For now only `selected_pose_bones_from_active_object`, more options can
be added on demand.

Discussed this with Campbell Barton. We may need this only for selected
pose bones, time will tell.

19 months agoVersioning: name screens by their workspaces
Campbell Barton [Fri, 19 Oct 2018 09:29:15 +0000 (20:29 +1100)]
Versioning: name screens by their workspaces

Avoids all screens in the startup file being named 'Default.###'.

19 months agoImage Space: make 'UV Edit' a separate mode
Campbell Barton [Fri, 19 Oct 2018 09:10:14 +0000 (20:10 +1100)]
Image Space: make 'UV Edit' a separate mode

This is needed for splitting UV into its own editor, see: T54744

19 months agoOutliner: only drag element under mouse if it was not selected before
Jacques Lucke [Fri, 19 Oct 2018 08:59:53 +0000 (10:59 +0200)]
Outliner: only drag element under mouse if it was not selected before

Reviewers: brecht

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

19 months agoPartial Revert: bring back some comments
Jacques Lucke [Fri, 19 Oct 2018 08:51:18 +0000 (10:51 +0200)]
Partial Revert: bring back some comments

19 months agoRNA: add widget property access
Campbell Barton [Fri, 19 Oct 2018 08:32:43 +0000 (19:32 +1100)]
RNA: add widget property access

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 19 Oct 2018 06:51:40 +0000 (17:51 +1100)]
Merge branch 'master' into blender2.8

19 months agoFix error disabling all addons
Campbell Barton [Fri, 19 Oct 2018 06:49:16 +0000 (17:49 +1100)]
Fix error disabling all addons

19 months agoUI: correct face center button active state
Campbell Barton [Fri, 19 Oct 2018 06:10:40 +0000 (17:10 +1100)]
UI: correct face center button active state

19 months agoFix T57295: Edit-mesh modes got out of sync
Campbell Barton [Fri, 19 Oct 2018 04:48:39 +0000 (15:48 +1100)]
Fix T57295: Edit-mesh modes got out of sync

19 months agoCleanup: compiler warnings
Campbell Barton [Fri, 19 Oct 2018 03:51:55 +0000 (14:51 +1100)]
Cleanup: compiler warnings

19 months agoFix UI message-bus automatic subscription
Campbell Barton [Fri, 19 Oct 2018 03:45:11 +0000 (14:45 +1100)]
Fix UI message-bus automatic subscription

19 months agoFix T57294: Modifiers cage ignore face visibility
Campbell Barton [Fri, 19 Oct 2018 02:57:00 +0000 (13:57 +1100)]
Fix T57294: Modifiers cage ignore face visibility

19 months agoTool System: option for transform drag action
Campbell Barton [Fri, 19 Oct 2018 00:54:26 +0000 (11:54 +1100)]
Tool System: option for transform drag action

See: T57203

19 months agoPartial revert '#if 0' cleanup
Campbell Barton [Thu, 18 Oct 2018 22:07:40 +0000 (09:07 +1100)]
Partial revert '#if 0' cleanup

Partially revert 41216d5ad4c722e2ad9f15c968af454fc7566d5e

Some of this code had comments to be left as is for readability,
or comment the code should be kept.
Other functions were only for debugging.

19 months agoEdit Mesh: Decrease the depth bias on vertices
Clément Foucault [Thu, 18 Oct 2018 18:04:47 +0000 (20:04 +0200)]
Edit Mesh: Decrease the depth bias on vertices

19 months agoFix Copy Selection to Buffer breaking library paths.
Brecht Van Lommel [Thu, 18 Oct 2018 17:51:34 +0000 (19:51 +0200)]
Fix Copy Selection to Buffer breaking library paths.

This is a bug experienced by animators in the Blender Studio that developers
have been trying to fix for a /long/ time.

What happens is that partial file writing extracts the needed datablocks from
the main list of datablocks into a smaller one. Afterwards they are added back
to the main list, but in some cases not exactly in the same order.

There is file path remapping code that depends on the datablocks being in
exactly the same order as before, and when this was not the case filepaths
would get swapped between datablocks

The reason datablocks are not restored in the same order is because the sorting
of datablocks by name is a) case insensitive and b) undefined if there are
multiple datablocks with the same name from different libraries. This should
be made well defined, but the fix in this commit is simpler.

The way animators ran into this bug is that they use the Copy Attributes addon
a lot, which has as the first item in the menu Copy Selection to Buffer. In
some cases this would be clicked accidentally when menu is near the edge of the
window, breaking the library paths which would only be noticed a much later on
file save and reload.

The way this bug was finally tracked down is that it was suspected that the
undo system was the cause, and so Bastien added library validation for undo.
When Hjalti then did undo and noticed the error, he remembered accidentally
clicking Copy Selection to Buffer just before, and we could finally reproduce
the bug.

19 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 18 Oct 2018 18:11:14 +0000 (20:11 +0200)]
Merge branch 'master' into blender2.8

19 months agoFix Copy Objects to Buffer breaking library paths.
Brecht Van Lommel [Thu, 18 Oct 2018 17:51:34 +0000 (19:51 +0200)]
Fix Copy Objects to Buffer breaking library paths.

This is a bug experienced by animators in the Blender Studio that developers
have been trying to fix for a /long/ time.

What happens is that partial file writing extracts the needed datablocks from
the main list of datablocks into a smaller one. Afterwards they are added back
to the main list, but in some cases not exactly in the same order.

There is file path remapping code that depends on the datablocks being in
exactly the same order as before, and when this was not the case filepaths
would get swapped between datablocks

The reason datablocks are not restored in the same order is because the sorting
of datablocks by name is a) case insensitive and b) undefined if there are
multiple datablocks with the same name from different libraries. This should
be made well defined, but the fix in this commit is simpler.

The way animators ran into this bug is that they use the Copy Attributes addon
a lot, which has as the first item in the menu Copy Selection to Buffer. In
some cases this would be clicked accidentally when menu is near the edge of the
window, breaking the library paths which would only be noticed a much later on
file save and reload.

The way this bug was finally tracked down is that it was suspected that the
undo system was the cause, and so Bastien added library validation for undo.
When Hjalti then did undo and noticed the error, he remembered accidentally
clicking Copy Selection to Buffer just before, and we could finally reproduce
the bug.

19 months agoLinks: update development fund link to new URL.
Brecht Van Lommel [Thu, 18 Oct 2018 16:55:50 +0000 (18:55 +0200)]
Links: update development fund link to new URL.

19 months agoFix assert/crash when copying RGBA color into RGB
Dalai Felinto [Thu, 18 Oct 2018 14:40:27 +0000 (14:40 +0000)]
Fix assert/crash when copying RGBA color into RGB

For example, copy from viewport display color into brush color.

19 months agoOutliner: drop into master collection when below everything else
Jacques Lucke [Thu, 18 Oct 2018 13:45:48 +0000 (15:45 +0200)]
Outliner: drop into master collection when below everything else

Reviewers: brecht

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

19 months agoCleanup: Remove more #if 0 blocks
Jacques Lucke [Thu, 18 Oct 2018 13:43:06 +0000 (15:43 +0200)]
Cleanup: Remove more #if 0 blocks

Continuation of https://developer.blender.org/D3802

Reviewers: brecht

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

19 months agoFix debug build after recent changes.
Brecht Van Lommel [Thu, 18 Oct 2018 12:48:22 +0000 (14:48 +0200)]
Fix debug build after recent changes.

19 months agoEevee: Fix default texture coord for procedural texture in world tree
Clément Foucault [Thu, 18 Oct 2018 13:30:06 +0000 (15:30 +0200)]
Eevee: Fix default texture coord for procedural texture in world tree

19 months agoCleanup: node_tex_checker: Vectorize operation in GLSL
Clément Foucault [Thu, 18 Oct 2018 13:17:21 +0000 (15:17 +0200)]
Cleanup: node_tex_checker: Vectorize operation in GLSL

19 months agoFix use of uninitialized variable in cloth collision.
Brecht Van Lommel [Thu, 18 Oct 2018 10:20:33 +0000 (12:20 +0200)]
Fix use of uninitialized variable in cloth collision.

No apparent difference in a quick simulation, but was clearly wrong.

19 months agoCleanup: fix compiler warnings.
Brecht Van Lommel [Thu, 18 Oct 2018 10:19:06 +0000 (12:19 +0200)]
Cleanup: fix compiler warnings.

19 months agoUI: closure some more panels by default, leaving open mostly 1 per tab.
William Reynish [Thu, 18 Oct 2018 10:13:06 +0000 (12:13 +0200)]
UI: closure some more panels by default, leaving open mostly 1 per tab.

19 months agoPyAPI: Support for custom tool registration
Campbell Barton [Thu, 18 Oct 2018 05:46:43 +0000 (16:46 +1100)]
PyAPI: Support for custom tool registration

Added a module bpy.utils.toolsystem which only exposes ToolDef,
to avoid scripts referencing bl_ui internals.

19 months agoTool System: expose shear tool x/y option
Campbell Barton [Thu, 18 Oct 2018 02:55:01 +0000 (13:55 +1100)]
Tool System: expose shear tool x/y option

19 months agoKeymap: use tweak event for shear
Campbell Barton [Thu, 18 Oct 2018 02:06:23 +0000 (13:06 +1100)]
Keymap: use tweak event for shear

19 months agoGizmo: tweak sorting to avoid view-aligned shear
Campbell Barton [Thu, 18 Oct 2018 01:58:54 +0000 (12:58 +1100)]
Gizmo: tweak sorting to avoid view-aligned shear

19 months agoGizmo: remove 'Click Anywhere' option
Campbell Barton [Thu, 18 Oct 2018 01:30:23 +0000 (12:30 +1100)]
Gizmo: remove 'Click Anywhere' option

Having an invisible gizmo caused event handling problems (see: T56603).

This is hard to avoid since gizmos are similar to buttons in the way
they have priority over the regular keymap.

Transform events use tweak so events to fall though to the general
view 3d keymap (for cursor placement for eg).

19 months agoCleanup: style
Campbell Barton [Thu, 18 Oct 2018 01:03:04 +0000 (12:03 +1100)]
Cleanup: style

19 months agoCleanup: use mul_m3_series
Campbell Barton [Thu, 18 Oct 2018 00:45:21 +0000 (11:45 +1100)]
Cleanup: use mul_m3_series

19 months agoGizmo: depth sort shear gizmos
Campbell Barton [Thu, 18 Oct 2018 00:41:07 +0000 (11:41 +1100)]
Gizmo: depth sort shear gizmos

19 months agoCleanup: move gizmo sort functions into an API
Campbell Barton [Thu, 18 Oct 2018 00:26:03 +0000 (11:26 +1100)]
Cleanup: move gizmo sort functions into an API

19 months agoOptimization: Edit Mesh Overlay
mano-wii [Wed, 17 Oct 2018 18:45:58 +0000 (15:45 -0300)]
Optimization: Edit Mesh Overlay

In tests with edit_cage: performance jumped from 9.37ms to 9.17ms.

19 months agonode_shader_utils: Proper fix for node_normalmap accessor returning ellipsis value.
Bastien Montagne [Wed, 17 Oct 2018 18:18:40 +0000 (20:18 +0200)]
node_shader_utils: Proper fix for node_normalmap accessor returning ellipsis value.

Ellipsis value is internal ingredient only, to tag hidden _node_normalmap
'real' property as not yet initialized. Public node_normalmap accessor
should never ever have that value, it's either None or a valid node!

19 months agoRevert "Fix error on FBX export after material changes"
Bastien Montagne [Wed, 17 Oct 2018 18:17:02 +0000 (20:17 +0200)]
Revert "Fix error on FBX export after material changes"

This reverts commit ce4cfbe108d0641832d86a731ea32f596220b7c5.

Obviously wrong 'fix', please do not touch other dev’s code, especially
in active/WIP area, when you do not fully understand it.

19 months agoFix error on FBX export after material changes
Dalai Felinto [Wed, 17 Oct 2018 17:04:04 +0000 (17:04 +0000)]
Fix error on FBX export after material changes

Update the addons repository as well.

19 months agoDRW: Fix DRW_shgroup_create_sub returning source shgroup
Clément Foucault [Wed, 17 Oct 2018 17:01:56 +0000 (19:01 +0200)]
DRW: Fix DRW_shgroup_create_sub returning source shgroup

instead of the actual sub group...

19 months agoEditMesh: Fix uninitialized value causing red outline on edges
Clément Foucault [Wed, 17 Oct 2018 16:49:27 +0000 (18:49 +0200)]
EditMesh: Fix uninitialized value causing red outline on edges

19 months agoObjectMode: Fix Outlines being drawn for BBox meshes
Clément Foucault [Wed, 17 Oct 2018 16:09:23 +0000 (18:09 +0200)]
ObjectMode: Fix Outlines being drawn for BBox meshes

19 months agoObjectMode: Fix instances with BoundBox drawtype not displaying
Clément Foucault [Wed, 17 Oct 2018 16:08:00 +0000 (18:08 +0200)]
ObjectMode: Fix instances with BoundBox drawtype not displaying

19 months agoShrinkwrap: implement the use of smooth normals in constraint & modifier.
Alexander Gavrilov [Wed, 3 Oct 2018 16:09:43 +0000 (19:09 +0300)]
Shrinkwrap: implement the use of smooth normals in constraint & modifier.

- Use smooth normals to displace in Above Surface mode.
- Add an option to align an axis to the normal in the constraint.

I've seen people request the alignment feature, and it seems useful.
For the actual aligning I use the damped track logic.

In order to conveniently keep mesh data needed for normal
computation together, a new data structure is introduced.

Reviewers: mont29

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

19 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 17 Oct 2018 14:50:09 +0000 (16:50 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/BKE_global.h
source/blender/editors/undo/ed_undo.c

19 months agoDEBUG_IO: add sanity check on libdata in undo step as well.
Bastien Montagne [Wed, 17 Oct 2018 14:43:02 +0000 (16:43 +0200)]
DEBUG_IO: add sanity check on libdata in undo step as well.

There are serious suspicions that weird corruptions faced by studio
artists may happen in undo/redo code, so let's see whether that's the
case.

With this, and when --debug-io arg is passed on startup, the whole lib
data are checked at every undo. This makes undo slower (from two to
three times slower), but it could help us spot better what happens...

19 months agoExpose 'debug_io' flag in bpy.app
Bastien Montagne [Wed, 17 Oct 2018 14:42:36 +0000 (16:42 +0200)]
Expose 'debug_io' flag in bpy.app

19 months agoMinor style cleanup.
Bastien Montagne [Wed, 17 Oct 2018 14:42:18 +0000 (16:42 +0200)]
Minor style cleanup.

19 months agoDope Sheet: fix assert in new hold code when bezier keys are not sorted.
Alexander Gavrilov [Wed, 17 Oct 2018 13:07:52 +0000 (16:07 +0300)]
Dope Sheet: fix assert in new hold code when bezier keys are not sorted.

Turns out this can happen during duplicate+drag operations.

19 months agoFix T57096: Crash when scaling bones
Philipp Oeser [Wed, 17 Oct 2018 12:51:38 +0000 (14:51 +0200)]
Fix T57096: Crash when scaling bones

Reviewed By: brecht

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

19 months agoCleanup: remove some #if 0 blocks
Jacques Lucke [Wed, 17 Oct 2018 10:43:41 +0000 (12:43 +0200)]
Cleanup: remove some #if 0 blocks

Reviewers: brecht, campbellbarton

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

19 months agoEevee: Fix error when using texture coordinate on world shaders
Clément Foucault [Wed, 17 Oct 2018 10:17:56 +0000 (12:17 +0200)]
Eevee: Fix error when using texture coordinate on world shaders

Compilation errors were happening on OSX with errors of the type:
```ERROR: Input of fragment shader 'viewNormal' not written by vertex shader```

19 months agoUI: particle deflector options in topbar
Campbell Barton [Wed, 17 Oct 2018 07:52:11 +0000 (18:52 +1100)]
UI: particle deflector options in topbar

See: T57228

19 months agoCleanup: better naming
Jacques Lucke [Wed, 17 Oct 2018 07:53:05 +0000 (09:53 +0200)]
Cleanup: better naming

Suggested by Campbell here: https://developer.blender.org/rB09cd651bb7e59044cbcd0664e8b1064cb37734ed

19 months agoGizmo: change axis used for shear handles
Campbell Barton [Wed, 17 Oct 2018 06:47:09 +0000 (17:47 +1100)]
Gizmo: change axis used for shear handles

The shear direction should be more obvious this way.

19 months agoTransform: map mouse input to shear direction
Campbell Barton [Wed, 17 Oct 2018 05:30:15 +0000 (16:30 +1100)]
Transform: map mouse input to shear direction

19 months agoTransform: show arrows for 'custom' ratio input
Campbell Barton [Wed, 17 Oct 2018 06:12:57 +0000 (17:12 +1100)]
Transform: show arrows for 'custom' ratio input

Arrows are now shown for vertex/edge slide.

19 months agoRNA: disable notifiers from property updates
Campbell Barton [Wed, 17 Oct 2018 05:14:58 +0000 (16:14 +1100)]
RNA: disable notifiers from property updates

This was re-enabled because it made copy-on-write bugs hard to
track down.

Since copy-on-write implementation has been simplified
this isn't a problem anymore.

19 months agoCleanup: naming
Campbell Barton [Wed, 17 Oct 2018 03:09:32 +0000 (14:09 +1100)]
Cleanup: naming

19 months agoCleanup: whitespace
Campbell Barton [Wed, 17 Oct 2018 03:08:44 +0000 (14:08 +1100)]
Cleanup: whitespace

19 months agoFix T56735: Autosmooth option corrupts UVs
Campbell Barton [Wed, 17 Oct 2018 02:20:44 +0000 (13:20 +1100)]
Fix T56735: Autosmooth option corrupts UVs

19 months agoUse CTX_DATA_BEGIN_FOR_ID
Dalai Felinto [Wed, 17 Oct 2018 01:18:02 +0000 (22:18 -0300)]
Use CTX_DATA_BEGIN_FOR_ID

19 months agoFix sculpt curve stroke paint
Dalai Felinto [Wed, 17 Oct 2018 00:36:22 +0000 (21:36 -0300)]
Fix sculpt curve stroke paint

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 17 Oct 2018 00:26:59 +0000 (11:26 +1100)]
Merge branch 'master' into blender2.8

19 months agoFix cmake not triggering rebuild on .glsl changes
Dalai Felinto [Tue, 16 Oct 2018 19:54:59 +0000 (16:54 -0300)]
Fix cmake not triggering rebuild on .glsl changes

At least on windows we do not re-run datatoc when the .glsl files change.

To test is simple, just change edit_mesh_overlay_common_lib.glsl
remove lines, write plain text, ..., now rebuild and go in edit mode
with the default cube.

I also had to remove the entry in gpu/CMakeLists.txt for
gpu_shader_material.glsl since this was being tracked directly, as well
as running data_to_c_simple (otherwise CMake raises an error for
duplicated entries).

We probably want to do the same for the other datatoc functions.

Reviewers: LazyDodo, brecht
Differential Revision: https://developer.blender.org/D3803

19 months agoMulti-Objects: POSE_OT_ik_add + POSE_OT_constraint_add_with_targets
Dalai Felinto [Tue, 16 Oct 2018 23:34:02 +0000 (20:34 -0300)]
Multi-Objects: POSE_OT_ik_add + POSE_OT_constraint_add_with_targets

You can now add the target from the non-active armature when they are
both in pose mode.

There were different ways of going about those operators:

* We could create one constraint on each active bone of each object.
  That wouldn't follow what creating constraints from the UI does
  though.

* We could change the selection/active order and create a constraint for
  all the selected bones, to the active bone. However this would change
  the design of changing only the active bone (which also is the one we
  see in the buttons editor).

But in the end I think it makes more sense to let users set a constraint
from a charactor to a prop in a handy way.

This is pretty much what we had in 2.7x. There we would go for the
selected objects, if no selected bone was found in the active object.
In 2.8, however, we need this change to make things working as
before/intended.

19 months agoOptimization: Edit Mesh Overlay: Avoid computing fixvec unnecessarily.
mano-wii [Tue, 16 Oct 2018 23:41:18 +0000 (20:41 -0300)]
Optimization: Edit Mesh Overlay: Avoid computing fixvec unnecessarily.

This brings a big difference to meshes with edit cage adjusted for modifiers.
In my tests, the suzanne with subdivision modifier level 3 went from 4.80ms to 3.05ms.

19 months agoMulti-Objects: POSE_OT_constraints_copy (refactor)
Dalai Felinto [Tue, 16 Oct 2018 22:20:01 +0000 (19:20 -0300)]
Multi-Objects: POSE_OT_constraints_copy (refactor)

This was already supporting multiple objects, but I changed it to use the API
we are using elsewhere.

19 months agoMulti-Objects: POSE_OT_constraints_clear
Dalai Felinto [Tue, 16 Oct 2018 21:41:45 +0000 (18:41 -0300)]
Multi-Objects: POSE_OT_constraints_clear

19 months agoMulti-Objects: POSE_OT_ik_clear
Dalai Felinto [Tue, 16 Oct 2018 21:30:27 +0000 (18:30 -0300)]
Multi-Objects: POSE_OT_ik_clear

19 months agoFix armature bones spline ik lines offset
Dalai Felinto [Tue, 16 Oct 2018 21:28:35 +0000 (18:28 -0300)]
Fix armature bones spline ik lines offset

19 months agoFix armature bones ik lines offset
Dalai Felinto [Tue, 16 Oct 2018 21:22:17 +0000 (18:22 -0300)]
Fix armature bones ik lines offset

19 months agoEdit Mesh Overlay Geometry Shader: Ignore correction geometry for loops that are...
mano-wii [Tue, 16 Oct 2018 21:03:38 +0000 (23:03 +0200)]
Edit Mesh Overlay Geometry Shader: Ignore correction geometry for loops that are not part of an edge.

By the tests I could only observe a considerable difference in the peformanse when the vertex size is 30.
Vertice 3 showed no difference in a suzzane with subdivision modifier level 3 + show-on-cage.

Point Size 30: 7.29ms vs 2.55ms

Reviewers: fclem

Reviewed By: fclem

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

19 months agoDRW: Fix assert with BoundBox object display mode
Clément Foucault [Tue, 16 Oct 2018 20:52:00 +0000 (22:52 +0200)]
DRW: Fix assert with BoundBox object display mode

19 months agoFix cmake not triggering rebuild on .glsl changes
Dalai Felinto [Tue, 16 Oct 2018 19:54:59 +0000 (16:54 -0300)]
Fix cmake not triggering rebuild on .glsl changes

At least on windows we do not re-run datatoc when the .glsl files change.

To test is simple, just change edit_mesh_overlay_common_lib.glsl
remove lines, write plain text, ..., now rebuild and go in edit mode
with the default cube.

I also had to remove the entry in gpu/CMakeLists.txt for
gpu_shader_material.glsl since this was being tracked directly, as well
as running data_to_c_simple (otherwise CMake raises an error for
duplicated entries).

We probably want to do the same for the other datatoc functions.

Reviewers: LazyDodo, brecht
Differential Revision: https://developer.blender.org/D3803

19 months agoUI: fix misaligned underline for menu item shortcut keys.
Harley Acheson [Tue, 16 Oct 2018 18:31:07 +0000 (20:31 +0200)]
UI: fix misaligned underline for menu item shortcut keys.

19 months agoUI: tweak icon spacing in menus to put them in the middle of the edge and text.
Harley Acheson [Tue, 16 Oct 2018 18:29:28 +0000 (20:29 +0200)]
UI: tweak icon spacing in menus to put them in the middle of the edge and text.

19 months agoUI: icon set updates Andrzej Ambroz.
Brecht Van Lommel [Tue, 16 Oct 2018 18:20:24 +0000 (20:20 +0200)]
UI: icon set updates Andrzej Ambroz.

This adds and changes various icons, in particular modifier and force field
icons are now included.

19 months agoFix T56250: brush cycling with shortcuts is broken.
Brecht Van Lommel [Tue, 16 Oct 2018 18:17:03 +0000 (20:17 +0200)]
Fix T56250: brush cycling with shortcuts is broken.

It was cycling both in the brush system and tool system which conflicted.
Now it uses just the tool system. This is more of a temporary fix until
the new tool/brush decoupled design is in place.

19 months agonode_shader_utils: fix bad setting of use_nodes in readonly case.
Bastien Montagne [Tue, 16 Oct 2018 14:32:43 +0000 (16:32 +0200)]
node_shader_utils: fix bad setting of use_nodes in readonly case.

Also added access to extension property in texture wrapper.

19 months agoDope Sheet: unify comparison threshold for the ActKeyColumn tree.
Alexander Gavrilov [Tue, 16 Oct 2018 16:45:03 +0000 (19:45 +0300)]
Dope Sheet: unify comparison threshold for the ActKeyColumn tree.

Use the same floating point precision threshold to merge keys
when building the tree as when searching it.

19 months agoDope Sheet: rewrite computation of keyframe hold blocks.
Alexander Gavrilov [Sat, 13 Oct 2018 17:22:44 +0000 (20:22 +0300)]
Dope Sheet: rewrite computation of keyframe hold blocks.

Computation of hold blocks was done by storing ranges (with start and
an end, and likely overlapping) in a tree keyed only by the block start.
This cannot work well, and there even were comments that it is not
reliable in complex cases.

A much better way to deal with it is to split all ranges so they don't
overlap. The most thorough way of doing this is to split at all and every
known keyframe, and in this case the data can actually be stored in the
key column data structures, avoiding the need for a second tree.

In practice, splitting requires a pass to copy this data to newly added
keys, and the necessity to loop over all keyframes in the range being
added. Both are linear and don't add excess algorithmic complexity.

The new implementation also calls BLI_dlrbTree_linkedlist_sync for
its own needs, so the users of the *_to_keylist functions don't have
to do it themselves anymore.

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

19 months agoTemplates: updated 2D animation template from grease pencil team.
Brecht Van Lommel [Tue, 16 Oct 2018 16:08:46 +0000 (18:08 +0200)]
Templates: updated 2D animation template from grease pencil team.

19 months agoSmall change to Annotation panel
Antonioya [Tue, 16 Oct 2018 15:59:42 +0000 (17:59 +0200)]
Small change to Annotation panel

Add one line more by default

19 months agoUI: tweak and fixes for cycles sampling panel, remove unneeded decorators.
Brecht Van Lommel [Tue, 16 Oct 2018 15:11:37 +0000 (17:11 +0200)]
UI: tweak and fixes for cycles sampling panel, remove unneeded decorators.

19 months agoUI: put show emitter option in particles panels.
Brecht Van Lommel [Tue, 16 Oct 2018 14:54:45 +0000 (16:54 +0200)]
UI: put show emitter option in particles panels.

This settings is duplicated from the object duplication panel, but
otherwise it's too hard to find.