blender.git
23 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 3 Oct 2018 10:56:44 +0000 (12:56 +0200)]
Merge branch 'master' into blender2.8

23 months agoFix icon alpha theme option not working for monochrome icons.
Brecht Van Lommel [Tue, 2 Oct 2018 14:04:53 +0000 (16:04 +0200)]
Fix icon alpha theme option not working for monochrome icons.

23 months agoFix build with older CMake versions that we still need to support.
Brecht Van Lommel [Wed, 3 Oct 2018 10:54:21 +0000 (12:54 +0200)]
Fix build with older CMake versions that we still need to support.

23 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 3 Oct 2018 10:12:22 +0000 (12:12 +0200)]
Merge branch 'master' into blender2.8

23 months agoFix T54287: memory not freed after rendering on Linux.
Brecht Van Lommel [Wed, 3 Oct 2018 09:10:08 +0000 (11:10 +0200)]
Fix T54287: memory not freed after rendering on Linux.

With new jemalloc versions memory allocated by threads that then become
inactive is not longer automatically freed. Instead we have to enable a
background thread to do it.

Some testing is needed to find out of this is sufficient, because the
background thread only runs periodically.

23 months agoGP: Add z-depth offset parameter
Antonioya [Wed, 3 Oct 2018 08:55:07 +0000 (10:55 +0200)]
GP: Add z-depth offset parameter

This parameter allows to define the percentage of offset of a stroke when uses surface mode.

Before, this was a fixed value, but for some artists' purposes, it's good to have the option to change it.

23 months agoUnits: Support for fixed units
Jacques Lucke [Wed, 3 Oct 2018 08:20:16 +0000 (10:20 +0200)]
Units: Support for fixed units

Users can select the main unit they want to use now.
Previously the displayed unit always depended on the magnitude of the value.
The old behavior can be restored by switching to the "Adaptive" mode for length, mass and time units.

Meters, kilograms and seconds are the default units for new and old scenes.

The selected unit is also the default unit for user input.
E.g. if cm is selected, whenever the user inputs a unitless number into a field of type length, it will be interpreted as cm.

Reviewer: brecht

Differential: https://developer.blender.org/D3740

23 months agoKeymap: expose tool keymaps in the preferences
Campbell Barton [Wed, 3 Oct 2018 05:48:37 +0000 (15:48 +1000)]
Keymap: expose tool keymaps in the preferences

Currently some modes share tool keymaps, we might want to disable
this since it's confusing editing one thing in multiple places.

However this should be resolved in the tool definitions.

23 months agoTransform: enable shrink-wrap even offset by default
Campbell Barton [Wed, 3 Oct 2018 03:10:11 +0000 (13:10 +1000)]
Transform: enable shrink-wrap even offset by default

Holding Alt now disables.

23 months agoFix T56975: Transform incorrect w/ constraint
Campbell Barton [Wed, 3 Oct 2018 02:21:46 +0000 (12:21 +1000)]
Fix T56975: Transform incorrect w/ constraint

23 months agoDial 3d Gizmo refactoring.
mano-wii [Wed, 3 Oct 2018 02:00:29 +0000 (23:00 -0300)]
Dial 3d Gizmo refactoring.

Transform the gizmo's drawing function into a generic function for use in other parts of the code.

23 months agoRNA: Make various .add(count) a required arg
Campbell Barton [Wed, 3 Oct 2018 00:20:55 +0000 (10:20 +1000)]
RNA: Make various .add(count) a required arg

23 months agoRNA: curve points add(count) a required arg
Campbell Barton [Tue, 2 Oct 2018 23:08:54 +0000 (09:08 +1000)]
RNA: curve points add(count) a required arg

23 months agoRNA: fcurve keyframe add(count) a required arg
Campbell Barton [Tue, 2 Oct 2018 23:04:51 +0000 (09:04 +1000)]
RNA: fcurve keyframe add(count) a required arg

This matches mesh add methods, and doesn't force it to be a keyword arg.

23 months agoExtrude: add normal flip to mesh.extrude_context
Campbell Barton [Tue, 2 Oct 2018 22:34:50 +0000 (08:34 +1000)]
Extrude: add normal flip to mesh.extrude_context

Was giving errors on each access.

23 months agoShrink/Fatten: change default 'even-thickness'
Campbell Barton [Tue, 2 Oct 2018 22:27:45 +0000 (08:27 +1000)]
Shrink/Fatten: change default 'even-thickness'

Accessing from the tool and keyboard had different defaults,
disable by default for both.

23 months agoFix gizmo tooltips ignoring preference
Campbell Barton [Tue, 2 Oct 2018 22:20:07 +0000 (08:20 +1000)]
Fix gizmo tooltips ignoring preference

23 months agoCleanup: style
Campbell Barton [Tue, 2 Oct 2018 22:10:48 +0000 (08:10 +1000)]
Cleanup: style

23 months agoMulti-Objects: TRANSFORM_OT_vertex_random
Dalai Felinto [Tue, 2 Oct 2018 20:11:19 +0000 (20:11 +0000)]
Multi-Objects: TRANSFORM_OT_vertex_random

This was listed under the armature task yet it is used for meshes too.

Also make sure all the UI names are capitalized (normal > Normal).

23 months agoMulti-Objects: Select similar armature: SIMEDBONE_LAYER
Dalai Felinto [Tue, 2 Oct 2018 19:54:19 +0000 (19:54 +0000)]
Multi-Objects: Select similar armature: SIMEDBONE_LAYER

And final one as well.

23 months agoMulti-Objecs: Select similar armature: SIMEDBONE_PREFIX and SIMEDBONE_SUFFIX
Dalai Felinto [Tue, 2 Oct 2018 19:38:00 +0000 (19:38 +0000)]
Multi-Objecs: Select similar armature: SIMEDBONE_PREFIX and SIMEDBONE_SUFFIX

23 months agoMulti-Objects: Select similar armature: SIMEDBONE_DIRECTION
Dalai Felinto [Tue, 2 Oct 2018 19:28:19 +0000 (19:28 +0000)]
Multi-Objects: Select similar armature: SIMEDBONE_DIRECTION

Also added epsilon into the mix.

23 months agoMulti-Objects: Select similar armature: SIMEDBONE_LENGTH
Dalai Felinto [Tue, 2 Oct 2018 19:06:43 +0000 (19:06 +0000)]
Multi-Objects: Select similar armature: SIMEDBONE_LENGTH

Also added epsilon into the mix.

23 months agoMulti-Objects: Select similar armature initial commit
Dalai Felinto [Tue, 2 Oct 2018 18:55:00 +0000 (18:55 +0000)]
Multi-Objects: Select similar armature initial commit

This includes all the modes that don't need multi-object support:

* SIMEDBONE_CHILDREN
* SIMEDBONE_CHILDREN_IMMEDIATE
* SIMEDBONE_SIBLINGS
* SIMEDBONE_GROUP
* SIMEDBONE_SHAPE

Unlike the mesh select similar operator, in this case we take
only the active bone in consideration, not all the selected ones.

I decided not to change that, and keep this 2.79 behaviour.
We could though if we want to.

23 months agoMulti-Objects: ARMATURE_OT_select_hierarchy
Dalai Felinto [Tue, 2 Oct 2018 17:35:07 +0000 (17:35 +0000)]
Multi-Objects: ARMATURE_OT_select_hierarchy

23 months agoMulti-Objects: ARMATURE_OT_select_less and ARMATURE_OT_select_more
Dalai Felinto [Tue, 2 Oct 2018 17:26:36 +0000 (17:26 +0000)]
Multi-Objects: ARMATURE_OT_select_less and ARMATURE_OT_select_more

23 months agoFix for POSE_OT_select_mirror
Dalai Felinto [Tue, 2 Oct 2018 17:22:43 +0000 (17:22 +0000)]
Fix for POSE_OT_select_mirror

It was not taking duplicated objects into consideration, so the operator would
only work if you had an off number of objects with the same armature.

23 months agoMulti-Objects: ARMATURE_OT_select_mirror
Dalai Felinto [Tue, 2 Oct 2018 17:05:30 +0000 (17:05 +0000)]
Multi-Objects: ARMATURE_OT_select_mirror

23 months agoFix (unreported) memleak with legacy IKsolver.
Bastien Montagne [Tue, 2 Oct 2018 15:59:11 +0000 (17:59 +0200)]
Fix (unreported) memleak with legacy IKsolver.

Looks like new depsgraph may initialize some IK trees, without ever
executing them (which also frees them with legacy IKSolver code)...

23 months agoAddons: reactivate BVH and PLY format addons
Jacques Lucke [Tue, 2 Oct 2018 15:51:39 +0000 (17:51 +0200)]
Addons: reactivate BVH and PLY format addons

Reviewers: brecht

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

23 months agoRNA ID: add accessors to original ID, and a boolean stating whether it is evaluated...
Bastien Montagne [Tue, 2 Oct 2018 12:13:25 +0000 (14:13 +0200)]
RNA ID: add accessors to original ID, and a boolean stating whether it is evaluated or original data-block.

Since RNA depagraph API mostly returns evaluated data, it is mandatory
to have access to original datablocks now...

23 months agoDepsgraph/RNA: add warning that all data from object instances iterator are COW data.
Bastien Montagne [Tue, 2 Oct 2018 12:11:59 +0000 (14:11 +0200)]
Depsgraph/RNA: add warning that all data from object instances iterator are COW data.

It is crucial that scripts do not write, and even more importantly, do
not store any references to those. Otherwise, that’s a rather straight
path to crash.

23 months agoUI: Fix error in shading popover
Clément Foucault [Tue, 2 Oct 2018 10:26:39 +0000 (12:26 +0200)]
UI: Fix error in shading popover

23 months agoFix weight drawing in Edit Mode by using the Weight Paint shader.
Alexander Gavrilov [Tue, 2 Oct 2018 09:34:31 +0000 (12:34 +0300)]
Fix weight drawing in Edit Mode by using the Weight Paint shader.

After rB3da46a8d8df2 the vertex color shader can't draw the raw
weight data produced by DRW_cache_mesh_surface_weights_get.

23 months agoKeymap: disable alt-comma for origin only transform
Campbell Barton [Tue, 2 Oct 2018 09:07:35 +0000 (19:07 +1000)]
Keymap: disable alt-comma for origin only transform

This is quite an obscure option only useful in rare cases,
when enabled by accident it's confusing since single objects
can't be transformed.

Also, w/ 2.8x you don't see the option change in the header.

23 months agoGP: Redo blur z-depth fix
Antonioya [Tue, 2 Oct 2018 09:09:17 +0000 (11:09 +0200)]
GP: Redo blur z-depth fix

The problem with previous fix was that only the original pixels were blurred, but the surrounding pixels no.

23 months agoGizmo: scale xyz axis to 1.0
Campbell Barton [Tue, 2 Oct 2018 09:05:15 +0000 (19:05 +1000)]
Gizmo: scale xyz axis to 1.0

The normal and xyz no longer overlap so can be the same size.

23 months agoCorrect extrude shortcut and description
Campbell Barton [Tue, 2 Oct 2018 08:48:28 +0000 (18:48 +1000)]
Correct extrude shortcut and description

To get the toolbar Key binding, the same operator needs to be
referenced from the tool.

23 months agoGP: Cleanup shader
Antonioya [Tue, 2 Oct 2018 08:31:49 +0000 (10:31 +0200)]
GP: Cleanup shader

23 months agoGP: Fix blur FX z-depth error
Antonioya [Tue, 2 Oct 2018 08:22:11 +0000 (10:22 +0200)]
GP: Fix blur FX z-depth error

The z-depth must not be blurred, but use the original value.

23 months agoGizmo: option to switch between normal/xyz widgets
Campbell Barton [Tue, 2 Oct 2018 08:16:00 +0000 (18:16 +1000)]
Gizmo: option to switch between normal/xyz widgets

23 months agoCleanup: split extrude gizmo into own file
Campbell Barton [Tue, 2 Oct 2018 07:31:50 +0000 (17:31 +1000)]
Cleanup: split extrude gizmo into own file

23 months agoGizmo: move spin tool axis option into gizmo-group
Campbell Barton [Tue, 2 Oct 2018 07:05:13 +0000 (17:05 +1000)]
Gizmo: move spin tool axis option into gizmo-group

Having this setting here wasn't correct (the operator ignores it).

23 months agoGizmo: support for gizmo-group properties
Campbell Barton [Tue, 2 Oct 2018 06:59:54 +0000 (16:59 +1000)]
Gizmo: support for gizmo-group properties

This allows gizmo groups to store properties in the tool.
This makes sense for gizmo options which only control gizmo display and
don't control operator execution.

Unlike similar kinds of properties,
this isn't accessible via the gizmo-group-type instance.

For now the it's only stored in the workspace tool as can be done for
operator properties, so each instance doesn't have different settings
which would be confusing from a user perspective and complicate access
from the top-bar.

Later we could add gizmo-group properties if needed.

23 months agoWM: generalize tool property initialization
Campbell Barton [Tue, 2 Oct 2018 05:39:20 +0000 (15:39 +1000)]
WM: generalize tool property initialization

Prepare for storing different kinds of properties in tools.

23 months agoWM: report error w/ unknown operator name
Campbell Barton [Tue, 2 Oct 2018 05:28:14 +0000 (15:28 +1000)]
WM: report error w/ unknown operator name

23 months agoCorrect extrude tool operator references
Campbell Barton [Tue, 2 Oct 2018 05:17:00 +0000 (15:17 +1000)]
Correct extrude tool operator references

Caused incorrect tooltips.

23 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 2 Oct 2018 01:19:11 +0000 (11:19 +1000)]
Merge branch 'master' into blender2.8

23 months agoCorrect tooltip
Campbell Barton [Tue, 2 Oct 2018 01:17:31 +0000 (11:17 +1000)]
Correct tooltip

23 months agoFix T56990: AutoIK fails
Philipp Oeser [Tue, 2 Oct 2018 00:10:26 +0000 (10:10 +1000)]
Fix T56990: AutoIK fails

Regression from 5d628c519

23 months agoGPY Python: program_use_begin and program_use_end.
mano-wii [Mon, 1 Oct 2018 16:21:08 +0000 (13:21 -0300)]
GPY Python: program_use_begin and program_use_end.

The user has to be encouraged to use the `program_set` or `program_set_builtin` before drawing.
This avoids problem with gl_context.

23 months agoUI: Fix Xray alpha slider being incorrectly greyed out
Clément Foucault [Mon, 1 Oct 2018 16:56:16 +0000 (18:56 +0200)]
UI: Fix Xray alpha slider being incorrectly greyed out

23 months agoDRW: Fix unselectable wire object in solid mode
Clément Foucault [Mon, 1 Oct 2018 16:53:23 +0000 (18:53 +0200)]
DRW: Fix unselectable wire object in solid mode

23 months agoTemplates: tweaks to startup templates, add sculpting template.
Brecht Van Lommel [Mon, 1 Oct 2018 14:38:14 +0000 (16:38 +0200)]
Templates: tweaks to startup templates, add sculpting template.

23 months agoUI: start maximized on X11 if possible, like other platforms.
Brecht Van Lommel [Mon, 1 Oct 2018 15:23:18 +0000 (17:23 +0200)]
UI: start maximized on X11 if possible, like other platforms.

23 months agoFix app template __init__.py not running without a userpref.blend.
Brecht Van Lommel [Mon, 1 Oct 2018 14:23:41 +0000 (16:23 +0200)]
Fix app template __init__.py not running without a userpref.blend.

23 months agoFix Cycles Python warnings related to annotations.
Brecht Van Lommel [Mon, 1 Oct 2018 14:22:38 +0000 (16:22 +0200)]
Fix Cycles Python warnings related to annotations.

23 months agoUI: collapse some paint / sculpt panels by default.
Brecht Van Lommel [Mon, 1 Oct 2018 13:39:03 +0000 (15:39 +0200)]
UI: collapse some paint / sculpt panels by default.

23 months agoUI: use backdrop circle for navigation icons, make clickable area bigger.
Brecht Van Lommel [Mon, 1 Oct 2018 10:47:37 +0000 (12:47 +0200)]
UI: use backdrop circle for navigation icons, make clickable area bigger.

This will look a bit better once the icon outline is gone.

23 months agoGP: Change Blur default parameters for Rim and Shadow effects.
Antonioya [Mon, 1 Oct 2018 14:42:12 +0000 (16:42 +0200)]
GP: Change Blur default parameters for Rim and Shadow effects.

23 months agoGP: Add Blur to Shadow FX
Antonioya [Mon, 1 Oct 2018 14:30:43 +0000 (16:30 +0200)]
GP: Add Blur to Shadow FX

The shadow needed a blur to make soft transitions and get a better effect.

23 months agoUI: Update theme colors for pie menu selected items
Pablo Vazquez [Mon, 1 Oct 2018 13:28:37 +0000 (15:28 +0200)]
UI: Update theme colors for pie menu selected items

23 months agoUI: Color the inside of pie menu items when selected
Pablo Vazquez [Mon, 1 Oct 2018 13:25:11 +0000 (15:25 +0200)]
UI: Color the inside of pie menu items when selected

Follows the same as other selected/active items in the UI.
Tested in Default theme, 2.7x, 2.4x, Flatty Light and Amaranth
all seem to work fine.

23 months agoEdit UVs: Fix missing wires with multiple windows
Clément Foucault [Mon, 1 Oct 2018 13:14:33 +0000 (15:14 +0200)]
Edit UVs: Fix missing wires with multiple windows

All that was needed is a VAO refresh. It's not a performance problem
because it only concerns a handful of batches.

23 months agoEdit UVs: Refactor drawing Shadow UV in Image Editor
Clément Foucault [Mon, 1 Oct 2018 12:55:35 +0000 (14:55 +0200)]
Edit UVs: Refactor drawing Shadow UV in Image Editor

Currently it's not showing the subdivided mesh (if there is a subdiv mod)
and there is some sync issue if there is multiple uv image space opened.
But thoses will be tackled later on. The purpose of this commit is to fix
the overflow issue of IMM and speed issue.

23 months agoGPU: Fix partial draw of batches with index buffers
Clément Foucault [Mon, 1 Oct 2018 12:52:02 +0000 (14:52 +0200)]
GPU: Fix partial draw of batches with index buffers

23 months agoEdit UVs: Refactor drawing Edit UV in Image Editor
Clément Foucault [Sat, 29 Sep 2018 17:42:09 +0000 (19:42 +0200)]
Edit UVs: Refactor drawing Edit UV in Image Editor

NOTE: This commit only concern edit UVs and not the "shadow" mesh displayed
when texture painting. This will be address in a future commit.

We now cache the uv mesh in the mesh batch cache and only reupload data on
changes.

Update could be more granular (and a bit faster) but it's not our main
concern ATM.

This should fix problem caused by the IMM api used to draw large meshes.
This makes performance skyrocket compared to previous implementation.
There is still a big CPU bottleneck when not in sync selection mode but it
is not related to the drawing function directly.

23 months agoBLI: Add mul_v2_v2v2 function
Clément Foucault [Sat, 29 Sep 2018 15:54:13 +0000 (17:54 +0200)]
BLI: Add mul_v2_v2v2 function

23 months agoShrinkwrap Constraint: implement projection features from the modifier.
Alexander Gavrilov [Sun, 8 Jul 2018 10:47:26 +0000 (13:47 +0300)]
Shrinkwrap Constraint: implement projection features from the modifier.

Allow raycasting in two directions and culling front or back faces.

Also implement a new Invert Cull option in both constraint and
modifier that can be used to aim for faces aligned with the project
axis direction when raycasting both ways.

Reviewers: mont29

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

23 months agoGP: Fix Shadow rotation bug
Antonioya [Mon, 1 Oct 2018 09:36:06 +0000 (11:36 +0200)]
GP: Fix Shadow rotation bug

23 months agoRemove obsolete weight paint color computation code.
Alexander Gavrilov [Sun, 30 Sep 2018 15:07:38 +0000 (18:07 +0300)]
Remove obsolete weight paint color computation code.

The new weight paint drawing code converts weight to color
directly in the shader, so the old CD_PREVIEW_MLOOPCOL based
code is not needed anymore.

23 months ago3D View: use context mode string for sidebar
Campbell Barton [Mon, 1 Oct 2018 06:56:41 +0000 (16:56 +1000)]
3D View: use context mode string for sidebar

When moving panels from the toolbar to the sidebar,
'bl_context' is now used for filtering panels in both places.

23 months agoObject Join: use 'selected_editable_objects'
Campbell Barton [Mon, 1 Oct 2018 06:43:49 +0000 (16:43 +1000)]
Object Join: use 'selected_editable_objects'

Was using 'selected_editable_bases', which used to save a lookup.
This is no longer the case and complicates access from Python
which cant yet easily access Bases.

23 months agoFix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
Brecht Van Lommel [Sun, 30 Sep 2018 17:28:15 +0000 (19:28 +0200)]
Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.

This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.

23 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 1 Oct 2018 04:06:24 +0000 (14:06 +1000)]
Merge branch 'master' into blender2.8

23 months agoBLI_math: add `isect_seg_seg_v3`
mano-wii [Mon, 1 Oct 2018 03:16:44 +0000 (00:16 -0300)]
BLI_math: add `isect_seg_seg_v3`

23 months agoBLI_math: add `isect_seg_seg_v3` function and use in the cloth collision algorith.
mano-wii [Mon, 1 Oct 2018 03:16:44 +0000 (00:16 -0300)]
BLI_math: add `isect_seg_seg_v3` function and use in the cloth collision algorith.

In my tests a 4% improvement in performance was achieved by simulating a square cloth over the cube.

23 months agoCleanup: use standard prefix for boolean settings
Campbell Barton [Mon, 1 Oct 2018 01:56:41 +0000 (11:56 +1000)]
Cleanup: use standard prefix for boolean settings

Avoid using 'add' as a prefix, it reads like a method.

23 months agoFix freed memory use w/ panel unregister
Campbell Barton [Mon, 1 Oct 2018 00:31:24 +0000 (10:31 +1000)]
Fix freed memory use w/ panel unregister

23 months agoCleanup: use tuple unpacking
Campbell Barton [Sun, 30 Sep 2018 22:45:46 +0000 (08:45 +1000)]
Cleanup: use tuple unpacking

23 months agoCleanup: pep8, unused import
Campbell Barton [Sun, 30 Sep 2018 22:42:58 +0000 (08:42 +1000)]
Cleanup: pep8, unused import

23 months agoCleanup: style
Campbell Barton [Sun, 30 Sep 2018 22:42:26 +0000 (08:42 +1000)]
Cleanup: style

23 months agoFix T56981: python .scene_raycast returned object is not selectable.
Bastien Montagne [Sun, 30 Sep 2018 21:54:11 +0000 (23:54 +0200)]
Fix T56981: python .scene_raycast returned object is not selectable.

Was returning COW evaluated object, not actual data-block...

23 months agoFix T56879: Blender2.8 Crash when Editing Text on Curve.
Bastien Montagne [Sun, 30 Sep 2018 19:36:02 +0000 (21:36 +0200)]
Fix T56879: Blender2.8 Crash when Editing Text on Curve.

Moving cursor in 3D text edit mode calls `BKE_vfont_to_curve_ex()`,
which expects to work with evaluated data (curve cache runtime etc.).

23 months agoFix T56396: Cycles wrong object motion blur with deformation blur disabled.
Brecht Van Lommel [Fri, 28 Sep 2018 16:22:35 +0000 (18:22 +0200)]
Fix T56396: Cycles wrong object motion blur with deformation blur disabled.

23 months agoFix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
Brecht Van Lommel [Sun, 30 Sep 2018 17:28:15 +0000 (19:28 +0200)]
Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.

This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.

23 months agoGP: The primitive line must not enable cyclic mode
Antonioya [Sun, 30 Sep 2018 16:45:45 +0000 (18:45 +0200)]
GP: The primitive line must not enable cyclic mode

23 months agoGP: Cleanup and remove old debug code
Antonioya [Sun, 30 Sep 2018 16:26:50 +0000 (18:26 +0200)]
GP: Cleanup and remove old debug code

23 months agoFix T56984: GP: Materials: Isolate (lock/visibility) buttons don't work.
Antonioya [Sun, 30 Sep 2018 15:35:41 +0000 (17:35 +0200)]
Fix T56984: GP: Materials: Isolate (lock/visibility) buttons don't work.

23 months agoio_utils: remove `orientation_helper_factory`.
Bastien Montagne [Sun, 30 Sep 2018 15:30:29 +0000 (17:30 +0200)]
io_utils: remove `orientation_helper_factory`.

Now we only use orientation_helper decorator.

23 months agoGP: New option to disable lasso while drawing
Antonioya [Sun, 30 Sep 2018 14:21:28 +0000 (16:21 +0200)]
GP: New option to disable lasso while drawing

Now it's possible to disable the lasso effect of the fill color while drawing with a fill color.

This sometimes is required to see the lines and it's the first step to implement a new lasso brush.

23 months agoGP: Ensure falloff curve is always initializated
Antonioya [Sun, 30 Sep 2018 13:59:10 +0000 (15:59 +0200)]
GP: Ensure falloff curve is always initializated

23 months agoFix T56970 GP: Sculpt mode : Grap tool doesn't work
Antonioya [Sun, 30 Sep 2018 11:54:23 +0000 (13:54 +0200)]
Fix T56970 GP: Sculpt mode : Grap tool doesn't work

23 months agoGP: Fix error in mutiedit if curve is not available
Antonioya [Sun, 30 Sep 2018 10:54:17 +0000 (12:54 +0200)]
GP: Fix error in mutiedit if curve is not available

23 months agoGP: Do not use UI pixel scale for strokes
Antonioya [Sun, 30 Sep 2018 09:46:47 +0000 (11:46 +0200)]
GP: Do not use UI pixel scale for strokes

This scale value only must affect the interface, but never the stroke.

23 months agoGP: implement Shadow FX (wip)
Antonioya [Sun, 30 Sep 2018 09:19:04 +0000 (11:19 +0200)]
GP: implement Shadow FX (wip)

Initial implementation of effect to create a drop shadow of the strokes

23 months agoAdd Image Operator: minor tweaks
Campbell Barton [Sun, 30 Sep 2018 07:55:39 +0000 (17:55 +1000)]
Add Image Operator: minor tweaks

- Use exception message on error.
- Use 3D view cursor location (for local view).

23 months agoFix mysterious crash when using textureGather on Intel drivers.
mano-wii [Sat, 29 Sep 2018 19:56:47 +0000 (16:56 -0300)]
Fix mysterious crash when using textureGather on Intel drivers.

The crash occurs in a shader with uniform block of a certain size and misaligned.

23 months agoGP: Fix Thickness modifier error for strokes with few points
Antonioya [Sat, 29 Sep 2018 16:07:35 +0000 (18:07 +0200)]
GP: Fix Thickness modifier error for strokes with few points

23 months agoFix mixed drawing face and edge checks in draw manager
Dalai Felinto [Sat, 29 Sep 2018 15:22:44 +0000 (12:22 -0300)]
Fix mixed drawing face and edge checks in draw manager