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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 years agoCleanup: de-duplicate copied code w/ vertex paint
Campbell Barton [Fri, 29 Sep 2017 12:47:08 +0000 (22:47 +1000)]
Cleanup: de-duplicate copied code w/ vertex paint

4 years agoFix T52943: don't export curves objects with no faces to Cycles.
Brecht Van Lommel [Fri, 29 Sep 2017 01:56:14 +0000 (03:56 +0200)]
Fix T52943: don't export curves objects with no faces to Cycles.

Also skip any objects with zero ray visibility and meshes with
zero faces.

4 years agoFix Cycles OpenCL compiler error after recent changes.
Brecht Van Lommel [Fri, 29 Sep 2017 12:51:35 +0000 (14:51 +0200)]
Fix Cycles OpenCL compiler error after recent changes.

4 years agoCleanup: split out tools & utils from vertex paint
Campbell Barton [Fri, 29 Sep 2017 10:03:58 +0000 (20:03 +1000)]
Cleanup: split out tools & utils from vertex paint

paint_vertex.c was getting too big, move all code unrelated to
mode switching and modal painting into their own files.

Also replace vertex-color operators region redraw tag /w notifiers.

4 years agoDrop platform support for Solaris & AIX
Campbell Barton [Fri, 29 Sep 2017 09:10:08 +0000 (19:10 +1000)]
Drop platform support for Solaris & AIX

These platforms didn't see maintenance in years.
This commit just removes ifdef's & cmake check.

4 years agoGNUmakefile: add back 'git pull'
Campbell Barton [Fri, 29 Sep 2017 09:02:20 +0000 (19:02 +1000)]
GNUmakefile: add back 'git pull'

Seems this was removed by accident.

4 years agoCollada: export vertex-color alpha
Campbell Barton [Fri, 29 Sep 2017 08:12:14 +0000 (18:12 +1000)]
Collada: export vertex-color alpha

4 years agoRNA: expose mesh vertex alpha
Campbell Barton [Fri, 29 Sep 2017 08:10:25 +0000 (18:10 +1000)]
RNA: expose mesh vertex alpha

Note that some import/export scripts will need updating

4 years agoVertex Paint: Alpha Support
Campbell Barton [Fri, 29 Sep 2017 07:10:15 +0000 (17:10 +1000)]
Vertex Paint: Alpha Support

GSOC 2017 by Darshan Kadu, see: D2859.

This is a partial merge of some of the features from
the soc-2017-vertex_paint branch.

- Alpha painting & drawing.
- 10 new color blending modes.
- Support for vertex select in vertex paint mode.

4 years agoCode cleanup: remove unnecessary buildbot code after macOS library upgrade.
Brecht Van Lommel [Thu, 28 Sep 2017 21:21:27 +0000 (23:21 +0200)]
Code cleanup: remove unnecessary buildbot code after macOS library upgrade.

4 years agomacOS: officially upgrade to 10.9 libraries from lib/darwin.
Brecht Van Lommel [Thu, 28 Sep 2017 18:52:22 +0000 (20:52 +0200)]
macOS: officially upgrade to 10.9 libraries from lib/darwin.

This removes a bunch of code that is no longer needed, and running
"make update" will now automatically download the new libraries.

Differential Revision:

4 years agoFix T52574: make Cycles rendered tile counter more clear.
Kim Christensen [Wed, 27 Sep 2017 23:59:11 +0000 (01:59 +0200)]
Fix T52574: make Cycles rendered tile counter more clear.

Differential Revision:

4 years agoCycles: reduce subsurface stack memory usage.
Brecht Van Lommel [Wed, 23 Aug 2017 01:57:27 +0000 (03:57 +0200)]
Cycles: reduce subsurface stack memory usage.

This is done by storing only a subset of PathRadiance, and by storing
direct light immediately in the main PathRadiance. Saves about 10% of
CUDA stack memory, and simplifies subsurface indirect ray code.

4 years agoFix T52086: Graph editor "normalize" drag errors for integers
Sergey Sharybin [Thu, 28 Sep 2017 12:08:43 +0000 (17:08 +0500)]
Fix T52086: Graph editor "normalize" drag errors for integers

4 years agoFix T52932: Driver with target of custom property from scene fails to update
Sergey Sharybin [Thu, 28 Sep 2017 11:13:28 +0000 (16:13 +0500)]
Fix T52932: Driver with target of custom property from scene fails to update

Note that this is only supported in new depsgraph.

4 years agoCurves: Fix wrong bitset being checked against CYCLIC bit flag
Sergey Sharybin [Thu, 28 Sep 2017 09:33:59 +0000 (14:33 +0500)]
Curves: Fix wrong bitset being checked against CYCLIC bit flag

Based on report from Talos Security Advisory.

4 years agoCMake: move MSVC warnings to central location
Campbell Barton [Thu, 28 Sep 2017 02:59:28 +0000 (12:59 +1000)]
CMake: move MSVC warnings to central location

4 years agoCleanup: switch fall-through warning
Campbell Barton [Thu, 28 Sep 2017 03:39:32 +0000 (13:39 +1000)]
Cleanup: switch fall-through warning

4 years agoAdding paint brushes crashes w/ linked libs
Campbell Barton [Thu, 28 Sep 2017 03:33:09 +0000 (13:33 +1000)]
Adding paint brushes crashes w/ linked libs

While we could skip this for linked files,
convention so far is to only update startup.

4 years agobgl module: extend `gl_buffer_type_from_py_format_char` function to work with more...
Germano [Wed, 27 Sep 2017 19:07:06 +0000 (16:07 -0300)]
bgl module: extend `gl_buffer_type_from_py_format_char` function to work with more string formats

Only basic types of character codes were being used

4 years ago[build_deps.cmd] Turn down logging verbosity to normal.
Ray Molenkamp [Wed, 27 Sep 2017 16:54:27 +0000 (10:54 -0600)]
[build_deps.cmd] Turn down logging verbosity to normal.

4 years ago[msvc] treat C4133 as error instead of a warning to mimic gcc's -Werror=incompatible...
Ray Molenkamp [Wed, 27 Sep 2017 16:11:00 +0000 (10:11 -0600)]
[msvc] treat C4133 as error instead of a warning to mimic gcc's -Werror=incompatible-pointer-types

as requested by @campbellbarton and @mano-wii

4 years agoCleanup: warning
Campbell Barton [Wed, 27 Sep 2017 16:04:58 +0000 (02:04 +1000)]
Cleanup: warning

4 years agoVertex/Weight Paint: Use PBVH for painting
Campbell Barton [Wed, 27 Sep 2017 15:38:17 +0000 (01:38 +1000)]
Vertex/Weight Paint: Use PBVH for painting

2016 GSOC project by @nathanvollmer, see D2150

- Mirrored painting and radial symmetry, like in sculpt mode.
- Volume based splash prevention,
  which avoids painting vertices far away from the 3D brush location.
- Normal based splash prevention,
  which avoids painting vertices with normals opposite the normal
  at the 3D brush location.
- Blur mode now uses a nearest neighbor average.
- Average mode, which averages the color/weight
  of the vertices within the brush
- Smudge mode, which pulls the colors/weights
  along the direction of the brush
- RGB^2 color blending, which gives a more accurate
  blend between two colors
- multithreading support. (PBVH leaves are painted in parallel.)
- Foreground/background color picker in vertex paint

4 years agobgl module: Interpret a buffer as a bgl.Buffer
Germano [Wed, 27 Sep 2017 14:20:00 +0000 (11:20 -0300)]
bgl module: Interpret a buffer as a bgl.Buffer

Differential Revision:

4 years agoCode refactor: simplify CUDA context push/pop.
Brecht Van Lommel [Sat, 23 Sep 2017 22:18:28 +0000 (00:18 +0200)]
Code refactor: simplify CUDA context push/pop.

Makes it possible to call a function like mem_alloc() when the context is
already active. Also fixes some missing pops in case of errors.

4 years agoMath Lib: Add non-clamped round_* functions
Campbell Barton [Wed, 27 Sep 2017 01:13:03 +0000 (11:13 +1000)]
Math Lib: Add non-clamped round_* functions

Replace iroundf with round_fl_to_int, add other types

4 years agoCleanup: indentation
Campbell Barton [Tue, 26 Sep 2017 14:17:28 +0000 (00:17 +1000)]
Cleanup: indentation

4 years agoCleanup: remove bounds runtime data from scene
Campbell Barton [Tue, 26 Sep 2017 12:27:15 +0000 (22:27 +1000)]
Cleanup: remove bounds runtime data from scene

4 years agoBeauty fill was skipping small faces
Campbell Barton [Tue, 26 Sep 2017 02:59:23 +0000 (12:59 +1000)]
Beauty fill was skipping small faces

4 years agoFix T52871: beauty fill error
Campbell Barton [Tue, 26 Sep 2017 02:14:46 +0000 (12:14 +1000)]
Fix T52871: beauty fill error

Only lock tri's facing different directions.
Needed because scanfill creates zero area faces.

4 years agoRevert "Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly consid...
Campbell Barton [Mon, 25 Sep 2017 06:54:36 +0000 (16:54 +1000)]
Revert "Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly considering the state as degenerated"

This reverts commit a8f11f5422afa01608817755eea310e987f896be.

Result is no longer symmetrical, will investigate a different fix.

4 years agoAdd missing header
Campbell Barton [Tue, 26 Sep 2017 02:13:33 +0000 (12:13 +1000)]
Add missing header

4 years agoFix T52901: New Depsgraph - Driver using "self" needs reloading file to work
Joshua Leung [Tue, 26 Sep 2017 00:29:48 +0000 (13:29 +1300)]
Fix T52901: New Depsgraph - Driver using "self" needs reloading file to work

4 years agoFix: When transforming GP strokes in "Local" mode, the strokes would get obscured
Joshua Leung [Mon, 25 Sep 2017 23:56:24 +0000 (12:56 +1300)]
Fix: When transforming GP strokes in "Local" mode, the strokes would get obscured
by the transform constraint lines

Ported over e7395c75d504af2c2f720f43ea27b93e04a378e4 from the
greasepencil-object branch. I should've fixed this ages ago, but
couldn't figure out why at the time.

4 years agodeps libs: fix xiph library support on sndfile on macOS
Arto Kitula [Mon, 25 Sep 2017 23:17:39 +0000 (02:17 +0300)]
deps libs: fix xiph library support on sndfile on macOS

4 years agoFix T52835: When driven IK influence change, ik animation have 1 frame delay
Sergey Sharybin [Mon, 25 Sep 2017 13:48:38 +0000 (18:48 +0500)]
Fix T52835: When driven IK influence change, ik animation have 1 frame delay

4 years agoFix T52865: Improve wording of error message when saving packed images fails
Joshua Leung [Mon, 25 Sep 2017 12:24:13 +0000 (01:24 +1300)]
Fix T52865: Improve wording of error message when saving packed images fails

Make it clear that the packed file could not be saved back out to disk
at the specified path (e.g. destination directory doesn't exist).

4 years agoOpenVDB: Fix compilation error against OpenVDB 4
Sergey Sharybin [Mon, 25 Sep 2017 09:41:30 +0000 (14:41 +0500)]
OpenVDB: Fix compilation error against OpenVDB 4

One crucial thing here: OpenVDB shoudl be compiled WITHOUT
OPENVDB_ENABLE_3_ABI_COMPATIBLE flag. This is how OpenVDB's Makefile is
configured and it's not really possible to detect this for a compiled library.

If we ever want to support that option, we need to add extra CMake argument and
use old version 3 API everywhere.

4 years agoAdd an 'atomic cas' wrapper for pointers.
Bastien Montagne [Mon, 25 Sep 2017 08:40:50 +0000 (10:40 +0200)]
Add an 'atomic cas' wrapper for pointers.

Avoids having to repeat obfuscating castings everywhere...

4 years agoTweak to fix for thread concurency in looptri generation.
Bastien Montagne [Mon, 25 Sep 2017 07:56:02 +0000 (09:56 +0200)]
Tweak to fix for thread concurency in looptri generation.

Even if pointer assignment may be atomic, it does not prevent reordering
and other nifty compiler tricks, we need a memory barrier to ensure not
only that transferring pointer from wip array to final one is atomic,
but also that all previous writing to memory are “flushed” to
(visible by) all CPUs...

Thanks @sergey for finding the potential (though quite unlikely) issue.

4 years agoCycles: Cleanup, indentation
Sergey Sharybin [Sat, 23 Sep 2017 12:36:04 +0000 (17:36 +0500)]
Cycles: Cleanup, indentation

4 years agoMirror Modifier: option to offset UV's
Campbell Barton [Mon, 25 Sep 2017 04:11:27 +0000 (14:11 +1000)]
Mirror Modifier: option to offset UV's

Useful for baking, so UV's can be moved outside the image
and not used to bake pixels (but still used for display).

D2801 by @Zuorion

4 years agoFix T52890: Crash unlinking sequencer sound
Campbell Barton [Mon, 25 Sep 2017 00:28:17 +0000 (10:28 +1000)]
Fix T52890: Crash unlinking sequencer sound

4 years agoFix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly considering...
Germano [Sat, 23 Sep 2017 15:59:02 +0000 (12:59 -0300)]
Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly considering the state as degenerated

4 years agoCycles: Fix compilation error of OpenCL megakernel on Apple
Sergey Sharybin [Sat, 23 Sep 2017 12:07:19 +0000 (17:07 +0500)]
Cycles: Fix compilation error of OpenCL megakernel on Apple

4 years agoCycles: Fix compilation error of megakernel on NVidia device
Sergey Sharybin [Sat, 23 Sep 2017 12:02:38 +0000 (17:02 +0500)]
Cycles: Fix compilation error of megakernel on NVidia device

It is more readable to explicitly compare to NULL anyway.