blender.git
22 months agoCycles: CUDA bicubic and tricubic texture interpolation support.
Brecht Van Lommel [Sat, 7 Oct 2017 00:15:12 +0000 (02:15 +0200)]
Cycles: CUDA bicubic and tricubic texture interpolation support.

While cubic interpolation is quite expensive on the CPU compared to linear
interpolation, the difference on the GPU is quite small.

22 months agoCode refactor: make texture code more consistent between devices.
Brecht Van Lommel [Fri, 6 Oct 2017 19:47:41 +0000 (21:47 +0200)]
Code refactor: make texture code more consistent between devices.

* Use common TextureInfo struct for all devices, except CUDA fermi.
* Move image sampling code to kernels/*/kernel_*_image.h files.
* Use arrays for data textures on Fermi too, so device_vector<Struct> works.

22 months agoActually force accumulate mode for the Smear brush in weight/vertex paint.
Alexander Gavrilov [Sat, 7 Oct 2017 10:53:54 +0000 (13:53 +0300)]
Actually force accumulate mode for the Smear brush in weight/vertex paint.

Just removing the checkbox from UI isn't enough for proper behavior.

22 months agoMake weight paint blur thread safe, and fix smear ignoring mirror.
Alexander Gavrilov [Sat, 7 Oct 2017 09:45:21 +0000 (12:45 +0300)]
Make weight paint blur thread safe, and fix smear ignoring mirror.

Instead of trying to be clever with swaps and lazy updating the weight
data, simply recalculate one single array. To improve performance, use
threading for that.

22 months agoCycles: Fix possible race condition when generating Beckmann table
Sergey Sharybin [Fri, 6 Oct 2017 16:06:15 +0000 (21:06 +0500)]
Cycles: Fix possible race condition when generating Beckmann table

Two issues here:

- Checking table size to be non-zero is not a proper way to go here. This is
  because we first resize the table and then fill it in. So it was possible that
  non-initialized table was used.

  Trickery with using temporary memory and then doing table.swap() might work,
  but we can not guarantee that table size will be set after the data pointer.

- Mutex guard was useless, because every thread was using own mutex. Need to
  make mutex guard static so all threads are using same mutex.

22 months agoCycles: Cleanup, indendation
Sergey Sharybin [Fri, 6 Oct 2017 14:33:59 +0000 (19:33 +0500)]
Cycles: Cleanup, indendation

22 months agoFix T53012: Shadow catcher creates artifacts on contact area
Sergey Sharybin [Fri, 6 Oct 2017 12:27:34 +0000 (17:27 +0500)]
Fix T53012: Shadow catcher creates artifacts on contact area

The issue was caused by light sample being evaluated to nan at some point.
This is root of the cause which is to be fixed, but is very hard to trace down
especially via ssh (the issue only happens on AVX2 release build). Will give it
a closer look when back to my AVX2 machine.

For until then this is a good check to have anyway, it corresponds to what's
happening in regular radiance sum.

22 months agoCycles: Cleanup, indentation and wrapping
Sergey Sharybin [Fri, 6 Oct 2017 11:54:37 +0000 (16:54 +0500)]
Cycles: Cleanup, indentation and wrapping

22 months agoCleanup: Math lib naming (use v3 suffix)
Campbell Barton [Fri, 6 Oct 2017 10:05:34 +0000 (21:05 +1100)]
Cleanup: Math lib naming (use v3 suffix)

22 months agoSequencer: Cleanup, use more BLI utilities where possible
Sergey Sharybin [Fri, 6 Oct 2017 10:00:22 +0000 (15:00 +0500)]
Sequencer: Cleanup, use more BLI utilities where possible

22 months agoSequencer: Use BLI math functions where possible
Sergey Sharybin [Fri, 6 Oct 2017 09:36:26 +0000 (14:36 +0500)]
Sequencer: Use BLI math functions where possible

22 months agoSequencer: Avoid re-calculation index offset multiple times
Sergey Sharybin [Fri, 6 Oct 2017 09:32:17 +0000 (14:32 +0500)]
Sequencer: Avoid re-calculation index offset multiple times

22 months agoSequencer: Use funciton instead of macr oto avoid argument re-evaluation
Sergey Sharybin [Fri, 6 Oct 2017 09:25:37 +0000 (14:25 +0500)]
Sequencer: Use funciton instead of macr oto avoid argument re-evaluation

22 months agoFix T52940: VSE Glow Effect Strip on transparent images has no blur
Sergey Sharybin [Fri, 6 Oct 2017 09:20:03 +0000 (14:20 +0500)]
Fix T52940: VSE Glow Effect Strip on transparent images has no blur

22 months agoError in falloff_angle range in last commit
Campbell Barton [Fri, 6 Oct 2017 09:20:15 +0000 (20:20 +1100)]
Error in falloff_angle range in last commit

22 months agoVertex Paint: move normal falloff into the brush
Campbell Barton [Fri, 6 Oct 2017 09:11:17 +0000 (20:11 +1100)]
Vertex Paint: move normal falloff into the brush

All related settings are already in the brush,
so it's inconvenient to switch panels to change this one option.

22 months agoVertex Paint: use view normal w/ 2D falloff
Campbell Barton [Fri, 6 Oct 2017 08:10:33 +0000 (19:10 +1100)]
Vertex Paint: use view normal w/ 2D falloff

When projecting to the view, cull faces pointing
away from the view normal.

22 months agoVertex Paint: use brush front-face setting
Campbell Barton [Fri, 6 Oct 2017 07:57:37 +0000 (18:57 +1100)]
Vertex Paint: use brush front-face setting

Follow sculpt mode more closely by using the brush front-face option.

22 months agoSculpt: use tube falloff when calculating normals
Campbell Barton [Fri, 6 Oct 2017 07:29:54 +0000 (18:29 +1100)]
Sculpt: use tube falloff when calculating normals

Also apply 2D clamping for other tools when the option is set.

22 months agoSculpt: clamp normal to plane w/ projected falloff
Campbell Barton [Fri, 6 Oct 2017 06:38:56 +0000 (17:38 +1100)]
Sculpt: clamp normal to plane w/ projected falloff

Allows for editing outlines w/o pushing geometry towards/away from
the view.

22 months agoFix ruler access from search pop-up
Campbell Barton [Fri, 6 Oct 2017 06:12:25 +0000 (17:12 +1100)]
Fix ruler access from search pop-up

D2831 by @1xundoredo

22 months agoCleanup: style
Campbell Barton [Fri, 6 Oct 2017 05:56:41 +0000 (16:56 +1100)]
Cleanup: style

22 months agoFix T52514: don't clear filename when dropping directory path in file browser.
Brecht Van Lommel [Thu, 5 Oct 2017 22:18:57 +0000 (00:18 +0200)]
Fix T52514: don't clear filename when dropping directory path in file browser.

22 months agoFix T52998: disabled menu entries responding to key shortcuts.
Brecht Van Lommel [Thu, 5 Oct 2017 15:46:22 +0000 (17:46 +0200)]
Fix T52998: disabled menu entries responding to key shortcuts.

22 months agoFix T53002: Batch-Generate Previews generate empty or none image for large objects.
Bastien Montagne [Thu, 5 Oct 2017 16:12:10 +0000 (18:12 +0200)]
Fix T53002: Batch-Generate Previews generate empty or none image for large objects.

Camera clipping was left to default values, which won't work well for
very large (or small) objects. Now recompute valid clipping start/end
based on boundingbox of rendered data, and final location of camera.

22 months agoFix T53001: more workarounds for crash in AMD compiler with recent drivers.
Brecht Van Lommel [Thu, 5 Oct 2017 14:41:41 +0000 (16:41 +0200)]
Fix T53001: more workarounds for crash in AMD compiler with recent drivers.

22 months agoCode refactor: split displace/background into separate kernels, remove luma.
Brecht Van Lommel [Thu, 5 Oct 2017 13:17:09 +0000 (15:17 +0200)]
Code refactor: split displace/background into separate kernels, remove luma.

22 months agoSculpt Mode: 2D falloff option
Campbell Barton [Thu, 5 Oct 2017 13:18:11 +0000 (00:18 +1100)]
Sculpt Mode: 2D falloff option

This makes brush influence into a tube instead of a sphere.
It can be used along the outline of a mesh to adjust it's silhouette.

Note that all this takes advantage of changes from vertex paint,
from testing this seems useful so exposing from the brush options.

22 months agoVertex Paint: apply when cursor isn't over faces
Campbell Barton [Thu, 5 Oct 2017 10:16:25 +0000 (21:16 +1100)]
Vertex Paint: apply when cursor isn't over faces

This behavior makes more sense for sculpt, less so for painting.
Restores non PBVH behavior, adding `BKE_pbvh_find_nearest_to_ray` -
similar to ray-cast except it finds the closest point on the surface.

22 months agoCleanup: rename dist -> depth
Campbell Barton [Thu, 5 Oct 2017 10:06:04 +0000 (21:06 +1100)]
Cleanup: rename dist -> depth

Prepare to add code that stores distance to the ray, avoid confusion.

22 months agoCleanup: remove unused struct member
Campbell Barton [Thu, 5 Oct 2017 06:52:05 +0000 (17:52 +1100)]
Cleanup: remove unused struct member

Merged with soc-2016-pbvh-painting, no longer needed.

22 months agoDisable cursor drawing while navigating
Campbell Barton [Thu, 5 Oct 2017 06:35:46 +0000 (17:35 +1100)]
Disable cursor drawing while navigating

Was performing ray-casts in sculpt mode on every update.

22 months agoFix sculpt secondary color missing some brushes
Campbell Barton [Thu, 5 Oct 2017 01:57:24 +0000 (12:57 +1100)]
Fix sculpt secondary color missing some brushes

D2841 by @uvwxyz w/ edits

22 months agoCleanup: use bool for brush checks
Campbell Barton [Thu, 5 Oct 2017 01:51:36 +0000 (12:51 +1100)]
Cleanup: use bool for brush checks

22 months agoFix brush reset (missing notifier)
Campbell Barton [Thu, 5 Oct 2017 01:32:24 +0000 (12:32 +1100)]
Fix brush reset (missing notifier)

D2843 by @uvwxyz

22 months agoCMake: use restrict w/ gcc, not clang
Campbell Barton [Thu, 5 Oct 2017 01:08:17 +0000 (12:08 +1100)]
CMake: use restrict w/ gcc, not clang

22 months agoPyAPI: fast keyword parsing for bpy modules
Campbell Barton [Wed, 4 Oct 2017 23:52:18 +0000 (10:52 +1100)]
PyAPI: fast keyword parsing for bpy modules

No functional changes.

22 months agoCMake: add -Wrestrict for GCC
Campbell Barton [Wed, 4 Oct 2017 23:50:02 +0000 (10:50 +1100)]
CMake: add -Wrestrict for GCC

22 months agoFix passing the same argument twice to BLI_strncpy
Campbell Barton [Wed, 4 Oct 2017 23:47:08 +0000 (10:47 +1100)]
Fix passing the same argument twice to BLI_strncpy

22 months agoFix setting the operator name in Py operator API
Campbell Barton [Wed, 4 Oct 2017 23:46:26 +0000 (10:46 +1100)]
Fix setting the operator name in Py operator API

22 months agoFix incorrect CUDA remaining time estimate after previous commit.
Brecht Van Lommel [Wed, 4 Oct 2017 21:25:51 +0000 (23:25 +0200)]
Fix incorrect CUDA remaining time estimate after previous commit.

22 months agoCycles: CUDA faster rendering of small tiles, using multiple samples like OpenCL.
Brecht Van Lommel [Tue, 26 Sep 2017 23:38:19 +0000 (01:38 +0200)]
Cycles: CUDA faster rendering of small tiles, using multiple samples like OpenCL.

The work size is still very conservative, and this doesn't help for progressive
refine. For that we will need to render multiple tiles at the same time. But this
should already help for denoising renders that require too much memory with big
tiles, and just generally soften the performance dropoff with small tiles.

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

22 months agoFix use of uninitialized memory in Cycles normal baking.
Brecht Van Lommel [Tue, 3 Oct 2017 22:28:32 +0000 (00:28 +0200)]
Fix use of uninitialized memory in Cycles normal baking.

22 months agoCode refactor: zero render buffers outside of kernel.
Brecht Van Lommel [Wed, 27 Sep 2017 01:53:03 +0000 (03:53 +0200)]
Code refactor: zero render buffers outside of kernel.

This was originally done with the first sample in the kernel for better
performance, but it doesn't work anymore with atomics. Any benefit was
very minor anyway, too small to measure it seems.

22 months agoCode refactor: use split variance calculation for mega kernels too.
Brecht Van Lommel [Tue, 26 Sep 2017 23:03:50 +0000 (01:03 +0200)]
Code refactor: use split variance calculation for mega kernels too.

There is no significant difference in denoised benchmark scenes and
denoising ctests, so might as well make it all consistent.

22 months agoCode refactor: remove rng_state buffer and compute hash on the fly.
Brecht Van Lommel [Tue, 26 Sep 2017 22:39:53 +0000 (00:39 +0200)]
Code refactor: remove rng_state buffer and compute hash on the fly.

A little faster on some benchmark scenes, a little slower on others, seems
about performance neutral on average and saves a little memory.

22 months agoCode refactor: add WorkTile struct for passing work to kernel.
Brecht Van Lommel [Tue, 26 Sep 2017 21:42:36 +0000 (23:42 +0200)]
Code refactor: add WorkTile struct for passing work to kernel.

This makes sharing some code between mega/split in following commits a bit
easier, and also paves the way for rendering multiple tiles later.

22 months agoFix T52645, T52645: AMD OpenCL compiler crash with recent drivers.
Brecht Van Lommel [Wed, 4 Oct 2017 18:45:20 +0000 (20:45 +0200)]
Fix T52645, T52645: AMD OpenCL compiler crash with recent drivers.

Work around the bug by reshuffling code.

22 months agoinstalldeps: Fix building numpy with newer py system...
Bastien Montagne [Wed, 4 Oct 2017 18:15:35 +0000 (20:15 +0200)]
installdeps: Fix building numpy with newer py system...

Many thanks to Jens Verwiebe for investigating and finding this fix.

22 months agoFix T42489 and T52936: Loading blend with minimized window results in crash or empty...
Ray Molenkamp [Wed, 4 Oct 2017 17:44:22 +0000 (11:44 -0600)]
Fix T42489 and T52936: Loading blend with minimized window results in crash or empty screen on windows.

Reviewed By: @brecht , @sergey

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

22 months agoFix error copying smoke modifier uv layer
Campbell Barton [Wed, 4 Oct 2017 15:44:02 +0000 (02:44 +1100)]
Fix error copying smoke modifier uv layer

22 months agoTssst, we use USA english, not Oxford one... :P
Bastien Montagne [Wed, 4 Oct 2017 10:42:33 +0000 (12:42 +0200)]
Tssst, we use USA english, not Oxford one... :P

22 months agoFix i18n messages extraction script, and a few more UI messages...
Bastien Montagne [Wed, 4 Oct 2017 10:38:40 +0000 (12:38 +0200)]
Fix i18n messages extraction script, and a few more UI messages...

22 months agoFix T52982: Join operator with context override crashes Blender 2.79
Sergey Sharybin [Wed, 4 Oct 2017 09:59:44 +0000 (14:59 +0500)]
Fix T52982: Join operator with context override crashes Blender 2.79

22 months agoFix T52923: Circle diameter is in fact radius
Campbell Barton [Wed, 4 Oct 2017 07:01:53 +0000 (18:01 +1100)]
Fix T52923: Circle diameter is in fact radius

22 months agoCleanup: redundant casts
Campbell Barton [Wed, 4 Oct 2017 05:44:45 +0000 (16:44 +1100)]
Cleanup: redundant casts

22 months agoDocs: remove outdated PyAPI guide
Campbell Barton [Wed, 4 Oct 2017 04:56:27 +0000 (15:56 +1100)]
Docs: remove outdated PyAPI guide

22 months agoPyAPI: fast keyword parsing for __import__
Campbell Barton [Wed, 4 Oct 2017 04:54:41 +0000 (15:54 +1100)]
PyAPI: fast keyword parsing for __import__

No functional changes.

22 months agoPyAPI: fast keyword parsing for bpy.props
Campbell Barton [Wed, 4 Oct 2017 04:13:52 +0000 (15:13 +1100)]
PyAPI: fast keyword parsing for bpy.props

No functional changes.

22 months agoSome UI/messages fixes.
Bastien Montagne [Tue, 3 Oct 2017 19:32:31 +0000 (21:32 +0200)]
Some UI/messages fixes.

22 months agoCMake: avoid naming collision
Campbell Barton [Tue, 3 Oct 2017 14:35:24 +0000 (01:35 +1100)]
CMake: avoid naming collision

22 months agoPython: bump minimum version to 3.6
Campbell Barton [Tue, 3 Oct 2017 12:50:34 +0000 (23:50 +1100)]
Python: bump minimum version to 3.6

22 months agoCleanup: remove unused vpaint projection handle
Campbell Barton [Tue, 3 Oct 2017 12:43:30 +0000 (23:43 +1100)]
Cleanup: remove unused vpaint projection handle

22 months agoWeight Paint: blend smear tool
Campbell Barton [Tue, 3 Oct 2017 12:35:30 +0000 (23:35 +1100)]
Weight Paint: blend smear tool

22 months agoVertex Paint: fix feedback loop w/ smear tool
Campbell Barton [Tue, 3 Oct 2017 12:04:22 +0000 (23:04 +1100)]
Vertex Paint: fix feedback loop w/ smear tool

Was reading and writing from same array,
this also makes smear thread-safe.

22 months agoFix bplayer (c)
Bastien Montagne [Tue, 3 Oct 2017 10:31:36 +0000 (12:31 +0200)]
Fix bplayer (c)

22 months agoFix T52981: 2D Curve shapes do not render untill extruded
Sergey Sharybin [Tue, 3 Oct 2017 10:28:57 +0000 (15:28 +0500)]
Fix T52981: 2D Curve shapes do not render untill extruded

Regression since 9298c53.

22 months agoChange weigth paint accumulate mechanics to fix problems with mirroring.
Alexander Gavrilov [Tue, 3 Oct 2017 09:28:07 +0000 (12:28 +0300)]
Change weigth paint accumulate mechanics to fix problems with mirroring.

Restoring weights is problematic when the stroke overlaps its mirror.
It's better to simply compute the new weight based on the saved data
rather than restoring things, and check that the change is monotonic.

This way is also closer to how things worked before the merge.

22 months agoVertex Paint: smear got wrong last-location
Campbell Barton [Tue, 3 Oct 2017 09:19:59 +0000 (20:19 +1100)]
Vertex Paint: smear got wrong last-location

22 months agoError in last commit, weight must be set for non-accumulate
Campbell Barton [Tue, 3 Oct 2017 08:24:02 +0000 (19:24 +1100)]
Error in last commit, weight must be set for non-accumulate

22 months agoVertex Paint: remove accumulate (soc-2017-vertex_paint)
Campbell Barton [Tue, 3 Oct 2017 07:50:34 +0000 (18:50 +1100)]
Vertex Paint: remove accumulate (soc-2017-vertex_paint)

This secondary accumulation option accumulated brush falloff.
The same option in image painting accumulates color
as vertex paiht 'Spray' does.

Giving this option different behavior for vertex paint seems strange.
Also this is basically increasing falloff over time.

Remove the new code, expose existing 'Spray' as 'Accumulate'
to match other paint modes.

22 months agoWeight Paint: don't set weight w/ average brush
Campbell Barton [Tue, 3 Oct 2017 07:43:18 +0000 (18:43 +1100)]
Weight Paint: don't set weight w/ average brush

Also use 'const' for brush.

22 months agoCorrect int division in last commit
Campbell Barton [Tue, 3 Oct 2017 06:36:55 +0000 (17:36 +1100)]
Correct int division in last commit

22 months agoWeight Paint: add some color blending modes
Campbell Barton [Tue, 3 Oct 2017 06:24:29 +0000 (17:24 +1100)]
Weight Paint: add some color blending modes

While these mostly make sense for color,
there is no harm in supporting.

22 months agoBuildbot: Re-enable cuda binaries, those should work
Sergey Sharybin [Mon, 2 Oct 2017 15:24:42 +0000 (20:24 +0500)]
Buildbot: Re-enable cuda binaries, those should work

22 months agoDisable multithreaded weight paint when mirroring is enabled.
Alexander Gavrilov [Mon, 2 Oct 2017 14:33:51 +0000 (17:33 +0300)]
Disable multithreaded weight paint when mirroring is enabled.

Mirroring writes to the mirror vertex within the direct vertex
draw function, which violates assumptions required for processing
vertices in parallel.

22 months agoRemove brush versioning (again!)
Campbell Barton [Mon, 2 Oct 2017 13:53:42 +0000 (00:53 +1100)]
Remove brush versioning (again!)

Causes crash, see c133927bb

Merging soc-2017-vertex_paint brought this back by accident.

22 months agoFix T52927: Compositor wrong scale when scale size input is connected to complex...
Sergey Sharybin [Mon, 2 Oct 2017 10:54:08 +0000 (15:54 +0500)]
Fix T52927: Compositor wrong scale when scale size input is connected to complex node

The issue here is that we can not read scale from socket when determining
dependent area of interest. This area will depend on current pixel. Now fall
back to more stupid but reliable thing: if scale size input is connected to some
nodes, we use the whole frame as area of interest.

22 months agoVertex Paint: projection options
Campbell Barton [Mon, 2 Oct 2017 10:07:25 +0000 (21:07 +1100)]
Vertex Paint: projection options

This makes vertex paint match image painting more closely.

- Add falloff shape option sphere/circle
  where sphere uses a 3D radius around the cursor and
  circle uses a 2D radius (projected), like previous releases.
- Add normal angle option so you can control the falloff.
- Add Cull option, to paint onto faces pointing away.

Disabling normals, culling and using circle falloff
allows you to paint through the mesh.

22 months agoSculpt: calculate plane instead of point,normal
Campbell Barton [Mon, 2 Oct 2017 02:21:23 +0000 (13:21 +1100)]
Sculpt: calculate plane instead of point,normal

No functional changes.

22 months agoCleanup: add 'sphere' to sculpt test function name
Campbell Barton [Mon, 2 Oct 2017 01:18:35 +0000 (12:18 +1100)]
Cleanup: add 'sphere' to sculpt test function name

22 months agoCleanup: indentation, whitespace
Campbell Barton [Mon, 2 Oct 2017 00:44:42 +0000 (11:44 +1100)]
Cleanup: indentation, whitespace

22 months agoMath Lib: distance to AABB
Campbell Barton [Mon, 2 Oct 2017 05:09:07 +0000 (16:09 +1100)]
Math Lib: distance to AABB

Original code by @mano-wii, modified for general use.

22 months agoCompositor: Fix strict compilation warnings when debug is enabled
Sergey Sharybin [Mon, 2 Oct 2017 10:18:10 +0000 (15:18 +0500)]
Compositor: Fix strict compilation warnings when debug is enabled

22 months agoCompositor: Fix compilation error with debug enabled
Sergey Sharybin [Mon, 2 Oct 2017 10:12:04 +0000 (15:12 +0500)]
Compositor: Fix compilation error with debug enabled

22 months agoFix T52920: Saving Tiff Files type Blender crashes
Sergey Sharybin [Mon, 2 Oct 2017 08:44:13 +0000 (13:44 +0500)]
Fix T52920: Saving Tiff Files type Blender crashes

Was only happening for 3 and 1 channel sources.

22 months agoFix gradient tool crash with recent changes
Campbell Barton [Sun, 1 Oct 2017 14:34:51 +0000 (01:34 +1100)]
Fix gradient tool crash with recent changes

Having gesture automatic free memory isn't practical if this
has it's own allocations.

Add option not to free userdata.

22 months agoVertex Paint: use squared distance test
Campbell Barton [Sun, 1 Oct 2017 13:44:04 +0000 (00:44 +1100)]
Vertex Paint: use squared distance test

Avoids sqrt for verts that are later ignored

22 months agoVertex Paint: respect 'normal' option
Campbell Barton [Sun, 1 Oct 2017 12:51:07 +0000 (23:51 +1100)]
Vertex Paint: respect 'normal' option

Recent changes ignored this option.

22 months agoCMake: support CUDA 9 toolkit, and automatically disable sm_2x binaries.
Brecht Van Lommel [Sun, 1 Oct 2017 12:04:34 +0000 (14:04 +0200)]
CMake: support CUDA 9 toolkit, and automatically disable sm_2x binaries.

Fermi cards (GTX 4xx and 5xx) are no longer supported with this version, so
we can keep supporting both CUDA 8 and 9 for a while.

22 months agoWeight Paint: restore non-spray functionality
Campbell Barton [Sun, 1 Oct 2017 10:12:14 +0000 (21:12 +1100)]
Weight Paint: restore non-spray functionality

When painting with spray disabled - we need to re-apply
on top of the original each time.

Applying the soc-2016-pbvh-painting branch removed this.
While I'd added back a simple previous weight array,
this won't work when multiple groups are painted at once.

22 months agoBuildbot: Use latest master config from buildbot
Sergey Sharybin [Sun, 1 Oct 2017 08:34:04 +0000 (10:34 +0200)]
Buildbot: Use latest master config from buildbot

22 months agoBuildbot: Extra tweaks to packing rules
Sergey Sharybin [Sun, 1 Oct 2017 08:01:45 +0000 (10:01 +0200)]
Buildbot: Extra tweaks to packing rules

22 months agoBuildbot: Tweaks to current macOS config
Sergey Sharybin [Sun, 1 Oct 2017 07:59:50 +0000 (09:59 +0200)]
Buildbot: Tweaks to current macOS config

Also disable CUDA binaries for now, those would need some extra work.

22 months agoFix weight paint Blur, Smear and Average breakage in multi-paint mode.
Alexander Gavrilov [Sun, 1 Oct 2017 07:00:14 +0000 (10:00 +0300)]
Fix weight paint Blur, Smear and Average breakage in multi-paint mode.

This is most pronounced in Auto-Normalize + Multi-Paint. Unlike
vertex paint, the weights being painted on in weight paint mode
don't necessarily correspond to the weight actually stored in
any one vertex group, and may instead be a computed aggregate.

This restores original code behavior lost in rB4f616c93f7cb.

22 months agoCleanup: Remove some old pre 2.5 IPO code
Aaron Carlisle [Sat, 30 Sep 2017 20:38:53 +0000 (16:38 -0400)]
Cleanup: Remove some old pre 2.5 IPO code

22 months agoFix vertex paint w/ subsurf drawing
Campbell Barton [Sat, 30 Sep 2017 09:20:04 +0000 (19:20 +1000)]
Fix vertex paint w/ subsurf drawing

Only use alpha blending when in vertex paint mode.

22 months agoVertex Paint minor improvement w/ smear
Campbell Barton [Fri, 29 Sep 2017 16:58:37 +0000 (02:58 +1000)]
Vertex Paint minor improvement w/ smear

Note that this tool seems like it might need to be rewritten
since results are quite strange.

Projecting on the view vector gives a small improvement though.

22 months agoFix vertex paint smear tool
Campbell Barton [Fri, 29 Sep 2017 16:56:31 +0000 (02:56 +1000)]
Fix vertex paint smear tool

Checking surrounding verts wasn't working properly.

22 months agoWeight Paint: accumulate support
Campbell Barton [Fri, 29 Sep 2017 15:36:41 +0000 (01:36 +1000)]
Weight Paint: accumulate support

- Clamp accumulate so it doesn't exceed brush strength.
- Was multiplying by brush strength twice.