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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Regression from 5d628c519

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 years agoGP: New parameters for instance modifier: Material and On Top
Antonioya [Sat, 29 Sep 2018 14:42:33 +0000 (16:42 +0200)]
GP: New parameters for instance modifier: Material and On Top

Now it's possible to define what material is used in the generated strokes and if the strokes are put in front of the original (default) or keep the original in front.

Before, the generated strokes have been always on top of the original because they were drawn later.

2 years agoA new function to move list at the beginning of another list
Antonioya [Sat, 29 Sep 2018 14:39:45 +0000 (16:39 +0200)]
A new function to move list at the beginning of another list

This is a change of the BLI_movelisttolist but in reverse order.

2 years agoMulti-Objects: ARMATURE_OT_switch_direction
Dalai Felinto [Fri, 28 Sep 2018 22:11:27 +0000 (19:11 -0300)]
Multi-Objects: ARMATURE_OT_switch_direction