blender.git
2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Tue, 18 Sep 2018 09:49:08 +0000 (11:49 +0200)]
Merge branch 'master' into blender2.8

2 years agoClose OpenEXR thread pool on exit
Sergey Sharybin [Tue, 18 Sep 2018 09:10:49 +0000 (11:10 +0200)]
Close OpenEXR thread pool on exit

This partially solves ASAN report about unfreed memory. There is still
something in the report, need to have a closer look with debug version
of OpenEXE library.

2 years agoFix T56831: Crash - Transfer Weight & changing it's properties.
Bastien Montagne [Tue, 18 Sep 2018 07:41:33 +0000 (09:41 +0200)]
Fix T56831: Crash - Transfer Weight & changing it's properties.

Usual Undo/Redo case with operators needing evaluated data...

2 years agoCleanup: spelling
Campbell Barton [Tue, 18 Sep 2018 06:35:13 +0000 (16:35 +1000)]
Cleanup: spelling

2 years agoGizmo: de-duplicate poll logic
Campbell Barton [Tue, 18 Sep 2018 06:10:07 +0000 (16:10 +1000)]
Gizmo: de-duplicate poll logic

Checking the active tool or operator was a common way to check
if the gizmo was still in use.

2 years agoGizmo: dial3d option to get angles w/o wrapping
Campbell Barton [Tue, 18 Sep 2018 04:58:20 +0000 (14:58 +1000)]
Gizmo: dial3d option to get angles w/o wrapping

Needed for spinning multiple revolutions.

2 years agoGizmo: add snap & tweak to the dial widget
Campbell Barton [Tue, 18 Sep 2018 04:38:05 +0000 (14:38 +1000)]
Gizmo: add snap & tweak to the dial widget

Allows holding Ctrl to snap w/ the spin tool.

2 years agoCleanup: group gizmo dial members into structs
Campbell Barton [Tue, 18 Sep 2018 04:13:35 +0000 (14:13 +1000)]
Cleanup: group gizmo dial members into structs

2 years agoCorrect view orientation update in last commit
Campbell Barton [Tue, 18 Sep 2018 04:03:50 +0000 (14:03 +1000)]
Correct view orientation update in last commit

2 years agoGizmo: use spin widgets by default
Campbell Barton [Tue, 18 Sep 2018 03:24:35 +0000 (13:24 +1000)]
Gizmo: use spin widgets by default

- Now the spin tool has a persistent gizmo.
- Uses scene orientation, with additional view orientation.
- Uses the cursor center, ignoring the pivot since the
  selection center is rarely useful.
- Disable most of the redo gizmo's for now since they overlap,
  only allow adjusting the angle.

  Note: mixing new action with adjusting previous is confusing,
  we'll want to have design guidelines regarding this.

2 years agoCleanup: spin redo naming changes
Campbell Barton [Tue, 18 Sep 2018 03:22:14 +0000 (13:22 +1000)]
Cleanup: spin redo naming changes

2 years agoFIX: linker error with a 'make deps' library set and opencollada enabled.
Ray Molenkamp [Tue, 18 Sep 2018 00:06:02 +0000 (18:06 -0600)]
FIX: linker error with a 'make deps' library set and opencollada enabled.

PCRE_LIBRARIES was not being set if the pcre library was found but not the headers.

2 years agoCleanup: spin redo naming changes
Campbell Barton [Mon, 17 Sep 2018 23:58:27 +0000 (09:58 +1000)]
Cleanup: spin redo naming changes

2 years agoCleanup: spin redo naming changes
Campbell Barton [Mon, 17 Sep 2018 23:55:20 +0000 (09:55 +1000)]
Cleanup: spin redo naming changes

2 years agoCleanup: move editmesh spin gizmo into own file
Campbell Barton [Mon, 17 Sep 2018 23:47:56 +0000 (09:47 +1000)]
Cleanup: move editmesh spin gizmo into own file

To mix both initial spin and redo ends up being more involved,
move into own file.

2 years agoGizmo: minor tweak to spin tool
Campbell Barton [Mon, 17 Sep 2018 23:40:32 +0000 (09:40 +1000)]
Gizmo: minor tweak to spin tool

Make main angle adjustment radius larger since it's the most useful.

2 years agoCycles: Fix usage of AVX2 intrinsics in AVX kernel
Ray Molenkamp [Mon, 17 Sep 2018 22:27:13 +0000 (16:27 -0600)]
Cycles: Fix usage of AVX2 intrinsics in AVX kernel

While building the AVX kernel, util_avxf.h/avxb.h were using some AVX2 intrinsics,
these were never called, so it wasn't a run-time issue, but the intrinsics headers
on centos excluded the AVX2 prototypes when building the AVX kernel causing build errors.

This commit cleans up the improper usage of the AVX2 intrinsics and provides AVX
fallback implementations for future use.

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

2 years agobuild_files: bump python version in FindPythonLibsUnix.cmake to 3.7 now that all...
Ray Molenkamp [Mon, 17 Sep 2018 19:45:12 +0000 (13:45 -0600)]
build_files: bump python version in FindPythonLibsUnix.cmake to 3.7 now that all platforms have been updated

2 years agobuild_environment: linux/python, help python find ffi.
Ray Molenkamp [Mon, 17 Sep 2018 19:13:17 +0000 (13:13 -0600)]
build_environment: linux/python, help python find ffi.

we were building ffi, but python wasn't finding it.

2 years agoGP: Remove duplicate clean menu
Antonioya [Mon, 17 Sep 2018 18:39:40 +0000 (20:39 +0200)]
GP: Remove duplicate clean menu

2 years agobuild_environment: ffi/linux force predictable lib path.
Ray Molenkamp [Mon, 17 Sep 2018 17:58:13 +0000 (11:58 -0600)]
build_environment: ffi/linux force predictable lib path.

ffi stubbornly wants to put libs in lib64 even when you tell it not to on some linux distributions.
patch based on sed fix the gentoo guys did [1]

[1] https://bugs.gentoo.org/462814

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 17 Sep 2018 17:40:39 +0000 (19:40 +0200)]
Merge branch 'master' into blender2.8

2 years agoInstall_deps: workaround building bloody broken OpenEXR release.
Bastien Montagne [Mon, 17 Sep 2018 17:39:21 +0000 (19:39 +0200)]
Install_deps: workaround building bloody broken OpenEXR release.

2 years agoCycles: Cleanup, remove dead code
Sergey Sharybin [Mon, 17 Sep 2018 16:07:22 +0000 (18:07 +0200)]
Cycles: Cleanup, remove dead code

2 years agoCycles: Remove unused malformed function
Sergey Sharybin [Mon, 17 Sep 2018 16:05:32 +0000 (18:05 +0200)]
Cycles: Remove unused malformed function

This isn't really possible to do the shuffle which was attempted to do.

While it's possible to achieve expected behavior, the function needs to
be rewritten. Since it's not used anyway, it's simpler to remove it for
now.

2 years agoCycles: Use proper mask for vectrorized boolean print
Sergey Sharybin [Mon, 17 Sep 2018 16:02:01 +0000 (18:02 +0200)]
Cycles: Use proper mask for vectrorized boolean print

2 years agobuild_environment: force a consistent libdir across Linux distributions.
Ray Molenkamp [Mon, 17 Sep 2018 14:13:08 +0000 (08:13 -0600)]
build_environment: force a consistent libdir across Linux distributions.

on some distributions libs ended up in lib64 confusing the cmake builder.

2 years agoEevee: Fix shader linking error with volumetric shaders
Clément Foucault [Mon, 17 Sep 2018 13:08:14 +0000 (15:08 +0200)]
Eevee: Fix shader linking error with volumetric shaders

2 years agoEevee: Fix crash when using refraction with alpha clip blend mode
Clément Foucault [Mon, 17 Sep 2018 12:46:22 +0000 (14:46 +0200)]
Eevee: Fix crash when using refraction with alpha clip blend mode

2 years agoFix object selection with eyerdropper not respecting property poll function.
Brecht Van Lommel [Mon, 17 Sep 2018 10:16:27 +0000 (12:16 +0200)]
Fix object selection with eyerdropper not respecting property poll function.

2 years agoFix T56800: Reflection Plane in Eevee crashes Blender
Clément Foucault [Mon, 17 Sep 2018 10:20:44 +0000 (12:20 +0200)]
Fix T56800: Reflection Plane in Eevee crashes Blender

2 years agoFix T56803: Indirect lightning bake crashes Blender
Clément Foucault [Mon, 17 Sep 2018 09:53:43 +0000 (11:53 +0200)]
Fix T56803: Indirect lightning bake crashes Blender

2 years agoFix T56801: Enabling smoke crashes Blender.
Clément Foucault [Mon, 17 Sep 2018 09:31:07 +0000 (11:31 +0200)]
Fix T56801: Enabling smoke crashes Blender.

2 years agoDepsgraph: Cleanup, indentation
Sergey Sharybin [Fri, 14 Sep 2018 13:53:52 +0000 (15:53 +0200)]
Depsgraph: Cleanup, indentation

2 years agoDepsgraph: Gnuplot, put heaviest objects at the top
Sergey Sharybin [Fri, 14 Sep 2018 13:47:37 +0000 (15:47 +0200)]
Depsgraph: Gnuplot, put heaviest objects at the top

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 17 Sep 2018 08:23:55 +0000 (10:23 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix T56811: Do not show cancel button for jobs when UI is locked.
Bastien Montagne [Mon, 17 Sep 2018 08:22:00 +0000 (10:22 +0200)]
Fix T56811: Do not show cancel button for jobs when UI is locked.

Since that button is then totally useless and unusable...

2 years agoUI: show steps for spin tool
Campbell Barton [Mon, 17 Sep 2018 04:52:54 +0000 (14:52 +1000)]
UI: show steps for spin tool

2 years agoGizmo: start spin gizmo dragging
Campbell Barton [Mon, 17 Sep 2018 04:34:51 +0000 (14:34 +1000)]
Gizmo: start spin gizmo dragging

- Only respond to drag event, so placing the cursor is possible.
- Start off with zero rotation, dragging adjusts.

2 years agoGizmo: Functions to re-initialize a group type
Campbell Barton [Mon, 17 Sep 2018 04:28:47 +0000 (14:28 +1000)]
Gizmo: Functions to re-initialize a group type

Partially re-initializing a gizmo is often more trouble then removing
and re-adding.

2 years agoGizmo: only respond to mouse-move events
Campbell Barton [Mon, 17 Sep 2018 04:30:00 +0000 (14:30 +1000)]
Gizmo: only respond to mouse-move events

Missed in recent update to event handling.

2 years agoCleanup: use SCE_GIZMO_ prefix for gizmo_flag
Campbell Barton [Mon, 17 Sep 2018 02:51:32 +0000 (12:51 +1000)]
Cleanup: use SCE_GIZMO_ prefix for gizmo_flag

2 years agoCleanup: rename gizmo group data
Campbell Barton [Mon, 17 Sep 2018 02:47:45 +0000 (12:47 +1000)]
Cleanup: rename gizmo group data

Abbreviate to 'ggd', replacing manipulator reference.

2 years agoRevert "Cleanup: use tuples in python according to feedback"
Campbell Barton [Sun, 16 Sep 2018 23:00:46 +0000 (09:00 +1000)]
Revert "Cleanup: use tuples in python according to feedback"

This reverts commit b1f0e4c2d673320085cd5e1c68f4f5f814bacede.

Sets are typically preferred for __contains__ checks
when order doesn't matter.

2 years agoFix T56817: Assert because of invalid framebuffer
Clément Foucault [Sun, 16 Sep 2018 19:22:55 +0000 (21:22 +0200)]
Fix T56817: Assert because of invalid framebuffer

2 years agoFix driver expression bytecode validation crash if parsing fails.
Alexander Gavrilov [Sun, 16 Sep 2018 07:46:28 +0000 (10:46 +0300)]
Fix driver expression bytecode validation crash if parsing fails.

Another NULL pointer access: nothing to validate if it already failed.

2 years agoGP: Rename select group color to materials
Antonioya [Sun, 16 Sep 2018 07:32:41 +0000 (09:32 +0200)]
GP: Rename select group color to materials

2 years agoFix a crash when a driver expression evaluates to NaN.
Alexander Gavrilov [Sun, 16 Sep 2018 06:06:21 +0000 (09:06 +0300)]
Fix a crash when a driver expression evaluates to NaN.

The debug logging statement was accessing a NULL pointer.
Also happens in 2.79.

2 years agoGP: Initialize new brush factors
Antonioya [Sat, 15 Sep 2018 17:26:01 +0000 (19:26 +0200)]
GP: Initialize new brush factors

2 years agoCleanup: use tuples in python according to feedback
Ines Almeida [Sat, 15 Sep 2018 15:28:20 +0000 (17:28 +0200)]
Cleanup: use tuples in python according to feedback

2 years agoCleanup: style
Campbell Barton [Fri, 14 Sep 2018 22:08:43 +0000 (08:08 +1000)]
Cleanup: style

2 years agoPyDoc: add gpu.shader
Campbell Barton [Fri, 14 Sep 2018 22:00:47 +0000 (08:00 +1000)]
PyDoc: add gpu.shader

Also some syntax corrections.

2 years agoCleanup: use r_ prefix for return args
Campbell Barton [Fri, 14 Sep 2018 22:00:29 +0000 (08:00 +1000)]
Cleanup: use r_ prefix for return args

2 years agoGPUTexture: Fix problem with glGenerateMipmap
Clément Foucault [Fri, 14 Sep 2018 22:10:27 +0000 (00:10 +0200)]
GPUTexture: Fix problem with glGenerateMipmap

Fix T56789: There was issue with certain driver with glGenerateMipmap and
GPU_DEPTH_COMPONENT24.
In this case we just create a complete texture with mipmaps manually
without downsampling / initializing the data.

2 years agoGP: Improve errase panel and toolbars
Antonioya [Fri, 14 Sep 2018 20:52:01 +0000 (22:52 +0200)]
GP: Improve errase panel and toolbars

Some names were not clear enough and some parameters were missing.

2 years agoGP: Add pressure option to eraser size
Antonioya [Fri, 14 Sep 2018 20:24:03 +0000 (22:24 +0200)]
GP: Add pressure option to eraser size

2 years agoGP: Some changes to eraser panel
Antonioya [Fri, 14 Sep 2018 19:58:29 +0000 (21:58 +0200)]
GP: Some changes to eraser panel

2 years agoObject Mode: Draw object center after the floorgrid
Clément Foucault [Fri, 14 Sep 2018 16:31:54 +0000 (18:31 +0200)]
Object Mode: Draw object center after the floorgrid

2 years agoObject Mode: Make Flat object selectable in ortho view ...
Clément Foucault [Fri, 14 Sep 2018 16:31:27 +0000 (18:31 +0200)]
Object Mode: Make Flat object selectable in ortho view ...

... when wireframe is enabled

2 years agoObject Mode: Make Flat object outline visible in orthographic view
Clément Foucault [Fri, 14 Sep 2018 16:30:26 +0000 (18:30 +0200)]
Object Mode: Make Flat object outline visible in orthographic view

2 years agoMotion Paths: interactively update current frame location while dragging.
Brecht Van Lommel [Fri, 14 Sep 2018 12:03:31 +0000 (14:03 +0200)]
Motion Paths: interactively update current frame location while dragging.

2 years agoMotion Paths: only update once when transforming multiple bones or objects.
Brecht Van Lommel [Fri, 14 Sep 2018 11:59:58 +0000 (13:59 +0200)]
Motion Paths: only update once when transforming multiple bones or objects.

2 years agoFix object motion paths not updating correct after filtering optimization.
Brecht Van Lommel [Fri, 14 Sep 2018 12:32:41 +0000 (14:32 +0200)]
Fix object motion paths not updating correct after filtering optimization.

2 years agoFix OpenColorIO link errors in some Linux builds.
Brecht Van Lommel [Fri, 14 Sep 2018 14:27:11 +0000 (16:27 +0200)]
Fix OpenColorIO link errors in some Linux builds.

The library can get installed in a lib/static subdirectory, so search there
as well now.

2 years agoFix OpenColorIO link errors in some Linux builds.
Brecht Van Lommel [Fri, 14 Sep 2018 14:27:11 +0000 (16:27 +0200)]
Fix OpenColorIO link errors in some Linux builds.

The library can get installed in a lib/static subdirectory, so search there
as well now.

2 years agoGP: Fix T56802 - Add/Delete Vertex Group crashes
Antonioya [Fri, 14 Sep 2018 14:08:54 +0000 (16:08 +0200)]
GP: Fix T56802 - Add/Delete Vertex Group crashes

2 years agoCloth: Improve UI
Luca Rood [Fri, 14 Sep 2018 13:46:55 +0000 (15:46 +0200)]
Cloth: Improve UI

This reorganizes the cloth UI, and changes some of the behaviour to be
more reasonable.

Changes included here:
* Reorganized cloth panels
* Improved some tooltips
* Removed `vel_damping` option
* Removed cloth pinning checkbox
* Removed stiffness scaling checkbox
* Separated shrinking from sewing
* Separated self collisions from object collisions

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D3691

2 years agoGPU module: Initial implementation of the `gpu.shader` submodule.
mano-wii [Fri, 14 Sep 2018 12:32:19 +0000 (09:32 -0300)]
GPU module: Initial implementation of the `gpu.shader` submodule.

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

2 years agoDepsgraph: Use default visibility of false
Sergey Sharybin [Fri, 14 Sep 2018 12:27:49 +0000 (14:27 +0200)]
Depsgraph: Use default visibility of false

Avoids invisible objects from being considered visible when they
are used as driver variables.

If those cases are actually coming from a visible object, then
deg_graph_build_flush_visibility() will ensure visibility is
properly flushed there.

2 years agoDepsgraph: Respect parent object visibility in more places
Sergey Sharybin [Fri, 14 Sep 2018 12:02:05 +0000 (14:02 +0200)]
Depsgraph: Respect parent object visibility in more places

Mainly coverts object->parent and pose constraints.

2 years agoDepsgraph: Make indirectly linked objects inherit visibility from parent
Sergey Sharybin [Fri, 14 Sep 2018 10:26:49 +0000 (12:26 +0200)]
Depsgraph: Make indirectly linked objects inherit visibility from parent

This way objects which are pulled into dependency graph via modifier
stack from an invisible object will be invisible.

2 years agoDepsgraph: Use explicit argument values
Sergey Sharybin [Fri, 14 Sep 2018 10:53:35 +0000 (12:53 +0200)]
Depsgraph: Use explicit argument values

2 years agoMultires: Initial work to get sculpting to work with OpenSubdiv
Sergey Sharybin [Fri, 14 Sep 2018 08:56:54 +0000 (10:56 +0200)]
Multires: Initial work to get sculpting to work with OpenSubdiv

Allows to go to sculpt mode, do brush strokes, get out of sculpt mode
and have deformation preserved.

The issues currently is that the current implementation of CCG
storage is created from the limit surface, without displacement
taken into account. It is trivial to get displaced coordinates,
but it is more tricky to get displaced normals. This is something
to be solved next.

Another limitation is that this only works for sculpting at a maximal
multires level. There is code to be done to support propagation
of displacement onto a higher levels.

2 years agoSubdiv: Cleanup, variable name spelling
Sergey Sharybin [Thu, 13 Sep 2018 15:45:33 +0000 (17:45 +0200)]
Subdiv: Cleanup, variable name spelling

2 years agoSculpting: Fix wrong object was using for PBVH
Sergey Sharybin [Thu, 13 Sep 2018 15:43:13 +0000 (17:43 +0200)]
Sculpting: Fix wrong object was using for PBVH

The function is supposed to be called for original object.
Draw manager abuses this a bit, will solve later by moving
PBVH (re)creation to dependency graph.

At the time being, stop adding object evaluation to draw
manager, this is really where it does not belong to.

2 years agoSubdiv: Cache Subdiv in CCG surface
Sergey Sharybin [Thu, 13 Sep 2018 09:29:08 +0000 (11:29 +0200)]
Subdiv: Cache Subdiv in CCG surface

Allows to do re-shaping easier, since we will know for sure
what was the limit surface the CCG is created for.

2 years agoGPUBuffers: Rework support for pbvh grids + fast navigate
Clément Foucault [Fri, 14 Sep 2018 10:19:41 +0000 (12:19 +0200)]
GPUBuffers: Rework support for pbvh grids + fast navigate

Flat shaded grids are now rendered as a long triangle strip with
degenerate triangles.

Smooth shaded grids are not changed.

Also add back fast navigate. The only difference with 2.79 is that fast
navigate + flat shading will show slitly "incorrect" smooth face. But that's too
much effort to fix for what it is.

2 years agoGP: Add thickness and stregth factor to UI
Antonioya [Fri, 14 Sep 2018 08:31:47 +0000 (10:31 +0200)]
GP: Add thickness and stregth factor to UI

Now it's possible change the factors for soft eraser.

2 years agoGP: Fix armature deformation weight problem
Antonioya [Fri, 14 Sep 2018 06:57:46 +0000 (08:57 +0200)]
GP: Fix armature deformation weight problem

The armature was using only weight 1 or 0, but not the real value.

Also removed unused parm in UI panel.

2 years agoGP: Change fill option text
Antonioya [Thu, 13 Sep 2018 16:35:45 +0000 (18:35 +0200)]
GP: Change fill option text

2 years agoGP: Add strength factor for eraser brush
Antonioya [Thu, 13 Sep 2018 16:34:34 +0000 (18:34 +0200)]
GP: Add strength factor for eraser brush

This gives more control.

2 years agoGP: More tweaks in soft eraser
Antonioya [Thu, 13 Sep 2018 15:04:35 +0000 (17:04 +0200)]
GP: More tweaks in soft eraser

Follow with the changes to get a good feeling using the eraser.

2 years agoGP: Add pressure button for eraser brushes
Antonioya [Thu, 13 Sep 2018 14:52:27 +0000 (16:52 +0200)]
GP: Add pressure button for eraser brushes

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 13 Sep 2018 14:09:49 +0000 (16:09 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix building deps when OpenCV dev package is present.
Bastien Montagne [Thu, 13 Sep 2018 14:05:59 +0000 (16:05 +0200)]
Fix building deps when OpenCV dev package is present.

Since we are not linking against OpenCV ourselves, that generated
linking errors later on (while building OSL e.g.).
Those 'open' libs link against way too many other libs... :/

Thanks to @intrah for initial report (T56785), and @LazyDodo for
suggested solution.

2 years agoGP: More changes to improve soft eraser
Antonioya [Thu, 13 Sep 2018 14:06:31 +0000 (16:06 +0200)]
GP: More changes to improve soft eraser

Small changes to improve "feeling" of the soft eraser.

2 years agoGizmo: only use mousemove for generic gizmos
Campbell Barton [Thu, 13 Sep 2018 14:06:19 +0000 (00:06 +1000)]
Gizmo: only use mousemove for generic gizmos

This caused slow performance for spin/bisect for eg.

2 years agoFix a crash with duplivert, and move to evaluated mesh in object_dupli.c
Bastien Montagne [Thu, 13 Sep 2018 13:55:36 +0000 (15:55 +0200)]
Fix a crash with duplivert, and move to evaluated mesh in object_dupli.c

There are still lots of issues/TODOs here though, like missing 'cage'
for editmesh, etc.

2 years agoGP: Add a separartion for leak size in fill panel
Antonioya [Thu, 13 Sep 2018 13:40:22 +0000 (15:40 +0200)]
GP: Add a separartion for leak size in fill panel

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 13 Sep 2018 13:38:53 +0000 (23:38 +1000)]
Merge branch 'master' into blender2.8

2 years agoWM: move mousemove out of internal undo function
Campbell Barton [Thu, 13 Sep 2018 13:20:04 +0000 (23:20 +1000)]
WM: move mousemove out of internal undo function

This causes a feedback loop in 2.8x,
where gizmo redo caused fake mousemove that executed gizmo again.

Move the mousemove into the undo/redo operator.

2 years agoWorkspaces: reference count screens, otherwise they are never freed.
Brecht Van Lommel [Wed, 12 Sep 2018 10:31:31 +0000 (12:31 +0200)]
Workspaces: reference count screens, otherwise they are never freed.

They are not directly accessible in the UI anymore, it's the workspaces
that we always keep until they are manually deleted now.

2 years agoGizmo: avoid redundant value2d updates
Campbell Barton [Thu, 13 Sep 2018 12:25:15 +0000 (22:25 +1000)]
Gizmo: avoid redundant value2d updates

2 years agoGizmo: set header text when editing the value
Campbell Barton [Thu, 13 Sep 2018 12:15:11 +0000 (22:15 +1000)]
Gizmo: set header text when editing the value

2 years agoGP: Sample points in both sides for soft eraser
Antonioya [Thu, 13 Sep 2018 11:55:16 +0000 (13:55 +0200)]
GP: Sample points in both sides for soft eraser

Now the soft eraser use the previous point and not only current and next. This makes the transition smoother.

2 years agoGizmo: value2d cancel, snap & precise support
Campbell Barton [Thu, 13 Sep 2018 12:03:52 +0000 (22:03 +1000)]
Gizmo: value2d cancel, snap & precise support

2 years agoGP: Improve soft eraser rounded caps
Antonioya [Thu, 13 Sep 2018 10:38:50 +0000 (12:38 +0200)]
GP: Improve soft eraser rounded caps

When draw segments the rounded cap must be only visible in some situations.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 13 Sep 2018 10:15:18 +0000 (20:15 +1000)]
Merge branch 'master' into blender2.8

2 years agoPyAPI: remove operator methods that leak memory
Campbell Barton [Thu, 13 Sep 2018 10:10:56 +0000 (20:10 +1000)]
PyAPI: remove operator methods that leak memory

2 years agoPyAPI: use brief description for operator repr
Campbell Barton [Thu, 13 Sep 2018 09:59:15 +0000 (19:59 +1000)]
PyAPI: use brief description for operator repr

Only include description in docstring.

Also avoid using op_get_rna.