5 years agoDocs: disable sharing docs within a group
Campbell Barton [Sun, 14 Feb 2016 11:08:57 +0000 (22:08 +1100)]
Docs: disable sharing docs within a group

This made using groups apply docstrings to undocumented functions in the group
(and give errors that the args didnt match).

5 years agoCleanup: braces
Sergey Sharybin [Sun, 14 Feb 2016 09:14:28 +0000 (10:14 +0100)]
Cleanup: braces

5 years agoCompositor: Cleanup, don't shortcut float values
Sergey Sharybin [Sun, 14 Feb 2016 09:12:45 +0000 (10:12 +0100)]
Compositor: Cleanup, don't shortcut float values

Use 0.0f instead of 0.f and so on.

5 years agoFix T47405: subsurf inconsistent triangulation in OpenGL compared to applied modifier...
Brecht Van Lommel [Sun, 14 Feb 2016 02:50:41 +0000 (03:50 +0100)]
Fix T47405: subsurf inconsistent triangulation in OpenGL compared to applied modifier and render.

5 years agoFix T45606: cycles multires tangent space normal map bake issues.
Brecht Van Lommel [Sun, 14 Feb 2016 00:54:09 +0000 (01:54 +0100)]
Fix T45606: cycles multires tangent space normal map bake issues.

5 years agoFix T47404: Bones get draw fat line in pose mode
Julian Eisel [Sat, 13 Feb 2016 22:16:04 +0000 (23:16 +0100)]
Fix T47404: Bones get draw fat line in pose mode

Removed this glLineWidth call in rBe8d7a0206e99, thought it wasn't needed. Really hope this was the last line width issue for now :/

5 years agoFix crash when cancelling cycles bake in some cases.
Brecht Van Lommel [Sat, 13 Feb 2016 20:07:55 +0000 (21:07 +0100)]
Fix crash when cancelling cycles bake in some cases.

5 years agoFix cmd+z for undo not working when editing text objects on OS X.
Brecht Van Lommel [Sat, 13 Feb 2016 20:07:32 +0000 (21:07 +0100)]
Fix cmd+z for undo not working when editing text objects on OS X.

5 years agoFix T47393: mouse wheel scroll no longer zooms with mighty mouse on OS X.
Brecht Van Lommel [Sat, 13 Feb 2016 12:13:59 +0000 (13:13 +0100)]
Fix T47393: mouse wheel scroll no longer zooms with mighty mouse on OS X.

Hopefully this is the last fix, using the method explained here:

5 years agoCleanup: Move Cycles sky model data to util.
Thomas Dinges [Sat, 13 Feb 2016 12:40:48 +0000 (13:40 +0100)]
Cleanup: Move Cycles sky model data to util.

5 years agoCycles: Remove meaningless expression
Sergey Sharybin [Sat, 13 Feb 2016 12:29:50 +0000 (13:29 +0100)]
Cycles: Remove meaningless expression

5 years agoCycles: Fix compilation error on Windows
Sergey Sharybin [Sat, 13 Feb 2016 12:28:51 +0000 (13:28 +0100)]
Cycles: Fix compilation error on Windows

5 years agoCycles: Fixes for Burley BSSRDF
Sergey Sharybin [Fri, 12 Feb 2016 10:42:33 +0000 (11:42 +0100)]
Cycles: Fixes for Burley BSSRDF

There are several fixes in here, which hopefully will make the shader
working correct without too much magic in there.

First of all, this commit brings BURLEY_TRUNCATE down from 30 to 16
which reduces noise a lot. It's still higher than original truncate
from Brecht, but this reduces PDF value at a cutoff distance by an
order of magnitude (now it's 0.008387, previously it was 0.063521
for the albedo of 0.8 and radius 1.0). This should converge to a
proper result faster and don't have artifacts.

This kind of reverts fix for T47356, but after additional thinking
came to conclusion Burley is not being totally smooth, it is about
giving less waxy results which it's kind of doing in the file.

Second of all, this commit fixes burley_eval() to use normalized
diffusion reflectance. This matches the way we calculate CDF and
solves numeric instability close to 0, making PDF profile looking
closer to other SSS profiles:

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

5 years agoCleanup: Remove some OIIO code for versions prior to 1.5.
Thomas Dinges [Sat, 13 Feb 2016 12:21:47 +0000 (13:21 +0100)]
Cleanup: Remove some OIIO code for versions prior to 1.5.

5 years agoCycles: Fix crash caused by the guarded allocation commit
Sergey Sharybin [Sat, 13 Feb 2016 11:35:33 +0000 (12:35 +0100)]
Cycles: Fix crash caused by the guarded allocation commit

C++ requires specific alignment of the allocations which was not an
issue when using GCC but uncovered issue when using Clang on OSX.
Perhaps some versions of Clang might show errors on other platforms
as well.

5 years agoDocs: remove bmesh py api warning
Campbell Barton [Sat, 13 Feb 2016 09:43:19 +0000 (20:43 +1100)]
Docs: remove bmesh py api warning

5 years agoSculpt: avoid double-hash for pbvh building
Campbell Barton [Sat, 13 Feb 2016 06:45:41 +0000 (17:45 +1100)]
Sculpt: avoid double-hash for pbvh building

Gives minor speedup entering sculpt mode and with undo.

5 years agoOptimize sculpt undo, avoid redundant updates
Campbell Barton [Sat, 13 Feb 2016 06:58:44 +0000 (17:58 +1100)]
Optimize sculpt undo, avoid redundant updates

On undo, sculpting regular meshes would update _all_ GPU VBO's.
Avoiding the update gives noticeably faster undo.

This is also a fix/workaround for strange behavior with NVidia's driver (T47232),
Where locking and unlocking all buffers for updating
slows down redraw speed permanently after the first undo.

However the problem isn't avoided entirely since a single brush stroke might modify most of the mesh.

5 years agoBLI_bitmap: add flip macro
Campbell Barton [Sat, 13 Feb 2016 06:47:38 +0000 (17:47 +1100)]
BLI_bitmap: add flip macro

5 years agoSet alpha clip to lower value
Campbell Barton [Fri, 12 Feb 2016 15:23:41 +0000 (02:23 +1100)]
Set alpha clip to lower value

Workaround for T46962 still works

5 years agoCycles: Fix compilation error with MinGW
Sergey Sharybin [Fri, 12 Feb 2016 19:21:13 +0000 (20:21 +0100)]
Cycles: Fix compilation error with MinGW

Was using some C++0 which we don't officially enabled yet.

5 years agoFix/workaround compilation error in dds
Sergey Sharybin [Fri, 12 Feb 2016 19:14:39 +0000 (20:14 +0100)]
Fix/workaround compilation error in dds

CLAMP was conflicting between Common.h and BLI_utildefines.h

Ideally we would use macro from BLI, but it's a bit involved change
to make it working with C++, will keep it for later.

5 years agoFix error in bvhtree_walk_dfs_recursive
Germano Cavalcante [Fri, 12 Feb 2016 14:50:08 +0000 (01:50 +1100)]
Fix error in bvhtree_walk_dfs_recursive

5 years agoCycles: Always use guarded allocator of vectors
Sergey Sharybin [Sat, 6 Feb 2016 22:40:41 +0000 (03:40 +0500)]
Cycles: Always use guarded allocator of vectors

We don't have vectors re-allocation happening multiple times from inside
a loop anymore, so we can safely switch to a memory guarded allocator for
vectors and keep track on the memory usage at various stages of rendering.

Additionally, when building from inside Blender repository, Cycles will
use Blender's guarded allocator, so actual memory usage will be displayed
in the Space Info header.

There are couple of tricky aspects of the patch:

- TaskScheduler::exit() now explicitly frees memory used by `threads`.
  This is needed because `threads` is a static member which destructor
  isn't getting called on Blender's exit which caused memory leak print
  to happen.

  This shouldn't give any measurable speed issues, reallocation of that
  vector is only one of fewzillion other allocations happening during

- Use regular guarded malloc (not aligned one). No idea why it was
  made to be aligned in the first place. Perhaps some corner case tests
  or so. Vector was never expected to be aligned anyway. Let's see if
  we'll have actual bugs with this.

Reviewers: dingto, lukasstockner97, juicyfruit, brecht

Reviewed By: brecht

Differential Revision:

5 years agoCycles: Make Blender importer more forward compatible
Sergey Sharybin [Wed, 10 Feb 2016 14:09:45 +0000 (15:09 +0100)]
Cycles: Make Blender importer more forward compatible

Basically the idea is to make code robust against extending
enum options in the future by falling back to a known safe
default setting when RNA is set to something unknown.

While this approach solves the issues similar to T47377,
but it wouldn't really help when/if any of the RNA values
gets ever deprecated and removed. There'll be no simple
solution to that apart from defining explicit mapping from
RNA value to Cycles one.

Another part which isn't so great actually is that we now
have to have some enum guards and give some explicit values
to the enum items, but we can live with that perhaps.

Reviewers: dingto, juicyfruit, lukasstockner97, brecht

Reviewed By: brecht

Differential Revision:

5 years agoFix: OSX - Cmd + A doesn't work for Font objects editing
Dalai Felinto [Fri, 12 Feb 2016 13:54:47 +0000 (11:54 -0200)]
Fix: OSX - Cmd + A doesn't work for Font objects editing

Since Cmd + A works elsewhere, it should work during font objects editing as well.

There is still a mysterious issue with Cmd + Z not working for UNDO the edited
text in OSX (probably GHOST related).

5 years agoIntegrate font objects copy/paste with system clipboard
Dalai Felinto [Fri, 12 Feb 2016 12:57:58 +0000 (10:57 -0200)]
Integrate font objects copy/paste with system clipboard

When pasting text, the style (bold, material, ...) is maintained, if it was originally copied from Blender.

This fixes the issue of missing copy/paste options for font objects
(they were present back in Blender 2.49)

Reviewers: Severin, campbellbarton, brecht

5 years agoFix crash in bvhtree.FromPolygons
Campbell Barton [Fri, 12 Feb 2016 08:12:58 +0000 (19:12 +1100)]
Fix crash in bvhtree.FromPolygons

5 years agoFix T47379: crash appending materials with node trees.
Brecht Van Lommel [Thu, 11 Feb 2016 21:32:11 +0000 (22:32 +0100)]
Fix T47379: crash appending materials with node trees.

5 years agoFix more cases where gpencil thickness controls line thickness of 3D view elements
Julian Eisel [Thu, 11 Feb 2016 19:54:24 +0000 (20:54 +0100)]
Fix more cases where gpencil thickness controls line thickness of 3D view elements

We now simple set glLineWidth to 1 once before drawing objects. This way we don't have to do it all over.

Fixes T47396.

5 years agoFix T47314: Misaligned DataBlock Previews for groups with custom center coordinates
Bastien Montagne [Thu, 11 Feb 2016 16:32:21 +0000 (17:32 +0100)]
Fix T47314: Misaligned DataBlock Previews for groups with custom center coordinates

Now take into account `dupli_offset` of groups.

Also fixed another issue related to objects renderability, previous code was giving
bad results due to added temp objects to generate previews (camera, lamp...).

5 years agoFix T47387: Cycles Point Density Render Issues
Sergey Sharybin [Thu, 11 Feb 2016 14:48:29 +0000 (15:48 +0100)]
Fix T47387: Cycles Point Density Render Issues

5 years agoFix T47378: Separate images popup UI does nothing
Campbell Barton [Thu, 11 Feb 2016 13:42:37 +0000 (00:42 +1100)]
Fix T47378: Separate images popup UI does nothing

Use confirm popup instead of redo popup

5 years agoCycles: Remove some ifdefs for OSL < 1.7.1.
Thomas Dinges [Thu, 11 Feb 2016 12:57:39 +0000 (13:57 +0100)]
Cycles: Remove some ifdefs for OSL < 1.7.1.

That means that we now only support OSL 1.7.1 or newer. Please update libs or re-run

5 years agoFix for cursor not being reset on file load
Campbell Barton [Thu, 11 Feb 2016 12:47:17 +0000 (23:47 +1100)]
Fix for cursor not being reset on file load

caused by 6081f6c3

5 years agoCycles: Fix typo in network device
Sergey Sharybin [Thu, 11 Feb 2016 12:05:55 +0000 (13:05 +0100)]
Cycles: Fix typo in network device

Spotted by jesterKing, thanks!

5 years agoinstall_deps: fix boost installation on Fedora/Suze & co.
Bastien Montagne [Thu, 11 Feb 2016 09:19:05 +0000 (10:19 +0100)]
install_deps: fix boost installation on Fedora/Suze & co.

Was only trying to install $BOOST_VERSION or higher boost - being fairly recent
this always failed. We can live with older versions too, so now using
*BOOST_VERSION_MIN as with other distros.

5 years agocorrect error in last commit
Campbell Barton [Thu, 11 Feb 2016 09:06:13 +0000 (20:06 +1100)]
correct error in last commit

5 years agoDisable bmesh-boolean modifier for 2.77 release
Campbell Barton [Thu, 11 Feb 2016 08:53:36 +0000 (19:53 +1100)]
Disable bmesh-boolean modifier for 2.77 release

Edit-mode boolean is still available

5 years agoRevert "CMake: remove ".svn" checks"
Campbell Barton [Thu, 11 Feb 2016 08:09:12 +0000 (19:09 +1100)]
Revert "CMake: remove ".svn" checks"

This reverts commit 00fbc326e31b67c41a023ef9a23bc44ed965268d.

Still needed for svn <1.8

5 years agoFix T47389: WPaint + texture entirely transparent
Campbell Barton [Thu, 11 Feb 2016 07:48:28 +0000 (18:48 +1100)]
Fix T47389: WPaint + texture entirely transparent

5 years agoBLI_kdopbvh: test root node before traversing
Germano Cavalcante [Thu, 11 Feb 2016 07:22:19 +0000 (18:22 +1100)]
BLI_kdopbvh: test root node before traversing

5 years agoCleanup: naming for NearestRayToAABB_Precalc
Germano Cavalcante [Thu, 11 Feb 2016 07:20:23 +0000 (18:20 +1100)]
Cleanup: naming for NearestRayToAABB_Precalc

5 years agoCMake: remove ".svn" checks
Campbell Barton [Thu, 11 Feb 2016 04:59:51 +0000 (15:59 +1100)]
CMake: remove ".svn" checks

5 years agoFix camera border controlled by gpencil thickness
Julian Eisel [Wed, 10 Feb 2016 22:14:29 +0000 (23:14 +0100)]
Fix camera border controlled by gpencil thickness

This only happened when looking through camera which is only selected object. Reported @quollism, thanks :)

5 years agoFix T47382: incorrect tooltip for mirror tool in object mode.
Brecht Van Lommel [Wed, 10 Feb 2016 20:08:44 +0000 (21:08 +0100)]
Fix T47382: incorrect tooltip for mirror tool in object mode.

5 years agoCleanup: remove unused radius argument
Campbell Barton [Wed, 10 Feb 2016 18:47:05 +0000 (05:47 +1100)]
Cleanup: remove unused radius argument

5 years agoDocs: use doxygen sections
Campbell Barton [Wed, 10 Feb 2016 18:36:56 +0000 (05:36 +1100)]
Docs: use doxygen sections

5 years agoFix T47332: Face select masks display glitch
Campbell Barton [Wed, 10 Feb 2016 16:53:54 +0000 (03:53 +1100)]
Fix T47332: Face select masks display glitch

5 years agoOutliner: omit active-unselected in "Selected" view
Campbell Barton [Wed, 10 Feb 2016 13:55:11 +0000 (00:55 +1100)]
Outliner: omit active-unselected in "Selected" view

This isn't selected, so misleading to include in selection list.

5 years agoadd openvdb to blender config (and buildbot)
Martijn Berger [Wed, 10 Feb 2016 13:04:05 +0000 (14:04 +0100)]
add openvdb to blender config (and buildbot)

5 years agoWindows MSVC allow building with openvdb / tbb
Martijn Berger [Wed, 10 Feb 2016 12:59:04 +0000 (13:59 +0100)]
Windows MSVC allow building with openvdb / tbb

5 years agoDocs: minor comment edits to smallhash
Campbell Barton [Wed, 10 Feb 2016 12:28:16 +0000 (23:28 +1100)]
Docs: minor comment edits to smallhash

5 years agoTweaks to the comments of smallhash
Sergey Sharybin [Wed, 10 Feb 2016 09:52:24 +0000 (10:52 +0100)]
Tweaks to the comments of smallhash

Collaboration between russki guy working from Netherlands and
ausie bloke working from Australia (not Austria).

5 years agoCycles: Fix an AttributeErro exceptionr on missing object context
Sergey Sharybin [Wed, 10 Feb 2016 09:34:19 +0000 (10:34 +0100)]
Cycles: Fix an AttributeErro exceptionr on missing object context

This happens when the properties panel is pinned to the material tab.

Patch by Ralf Hölzemer (aka cheleb), thanks!

Differential Revision:

5 years agoCleanup: double promotion
Campbell Barton [Wed, 10 Feb 2016 02:59:57 +0000 (13:59 +1100)]
Cleanup: double promotion

Also remove null checks from args with non-null attribute.

5 years agoFix screenshot adding image extension after .blend
Campbell Barton [Wed, 10 Feb 2016 02:57:54 +0000 (13:57 +1100)]
Fix screenshot adding image extension after .blend

5 years agoUpdate link to avoid redirect
Aaron Carlisle [Wed, 10 Feb 2016 00:01:53 +0000 (01:01 +0100)]
Update link to avoid redirect

5 years agoNode Editor: Another missing glLineWidth reset
Julian Eisel [Tue, 9 Feb 2016 23:41:45 +0000 (00:41 +0100)]
Node Editor: Another missing glLineWidth reset

Caused too thick outlines around nodes and around preview image in node.

5 years agoFix T47377: Newer file crashes at render on official 2.76b version
Sergey Sharybin [Tue, 9 Feb 2016 23:00:29 +0000 (04:00 +0500)]
Fix T47377: Newer file crashes at render on official 2.76b version

Really annoying bug, the code was not forward compatible at all and
resulted in crash. And it is really good to keep at least one release
forward compatibility so possible regressions could be verified easily.

The idea now is to use new property name for the pixel filter type,
but keep old property around for a couple of releases, so we have at
least some forward compatibility.

Don't like this situation at all, but seems it's least of the evil
we can choose.

Thanks Brecht for the review!

5 years agoFix manipulator drawing width controlled by gpencil thickness!1!!
Julian Eisel [Tue, 9 Feb 2016 23:01:25 +0000 (00:01 +0100)]
Fix manipulator drawing width controlled by gpencil thickness!1!!

5 years agoFix curves drawn with wrong line width
Julian Eisel [Tue, 9 Feb 2016 22:48:04 +0000 (23:48 +0100)]
Fix curves drawn with wrong line width

Selected/Active curves were drawn with too high line width in Object mode.

5 years agoCycles: Cleanp, avoid direct calls of RNA_enum_get, we've got utility for that
Sergey Sharybin [Tue, 9 Feb 2016 22:25:53 +0000 (03:25 +0500)]
Cycles: Cleanp, avoid direct calls of RNA_enum_get, we've got utility for that

5 years agoTypo: Open GL -> OpenGL
Aaron Carlisle [Tue, 9 Feb 2016 20:03:17 +0000 (21:03 +0100)]
Typo: Open GL -> OpenGL

5 years agoFix T47370: untranslateable bake panel strings.
Brecht Van Lommel [Tue, 9 Feb 2016 18:44:15 +0000 (19:44 +0100)]
Fix T47370: untranslateable bake panel strings.

Reorder buttons a bit so that these strings are not even needed, makes more
sense to have this grouped anyway.

5 years agoFix T47339: Unified color not used w/ radial control
Campbell Barton [Tue, 9 Feb 2016 14:48:02 +0000 (01:48 +1100)]
Fix T47339: Unified color not used w/ radial control

5 years agoFix T47366: Single slope linear curve was wrongly using vector handle
Sergey Sharybin [Tue, 9 Feb 2016 13:51:32 +0000 (14:51 +0100)]
Fix T47366: Single slope linear curve was wrongly using vector handle

Vector handle is only required for a symmetric curve to give nice a /\ shape.
Single slope curves better to use AUTO handle by default.

5 years agoFix make.bat checking 64bit systems
Campbell Barton [Tue, 9 Feb 2016 13:26:12 +0000 (00:26 +1100)]
Fix make.bat checking 64bit systems

5 years agoAdd BLI_bvhtree_walk_dfs utility function
Germano Cavalcante [Tue, 9 Feb 2016 11:12:05 +0000 (22:12 +1100)]
Add BLI_bvhtree_walk_dfs utility function

This generic function allows callers to walk the tree using callbacks to define behavior.

5 years agoBLI_kdopbvh: expose bvhtree_kdop_axes array
Campbell Barton [Tue, 9 Feb 2016 10:53:35 +0000 (21:53 +1100)]
BLI_kdopbvh: expose bvhtree_kdop_axes array

So future callbacks can make use of the axis index.

5 years agoFix T47371 - add access to 'static' enum items.
Bastien Montagne [Tue, 9 Feb 2016 11:44:06 +0000 (12:44 +0100)]
Fix T47371 - add access to 'static' enum items.

Some dynamic enums, which do not need a valid context pointer, have their 'itemf'
callback always called. This is annoying for introspection tools (like the ones generating
translations, or API documentation), because it means they never have access to all possible
options (enum items).

So now, there is also an `enum_items_static` accessor to get only statically-defined
enum items.

Note: only i18n tools take advantage of this currently, others are still to be updated.

Reviewers: campbellbarton, sergey

Differential Revision:

5 years agoAdd missing gl line width for curve normals
Campbell Barton [Tue, 9 Feb 2016 09:53:33 +0000 (20:53 +1100)]
Add missing gl line width for curve normals

5 years agoFix: Transform constraint/helper line drawing had incorrect thickness when GPencil...
Joshua Leung [Tue, 9 Feb 2016 08:54:44 +0000 (21:54 +1300)]
Fix: Transform constraint/helper line drawing had incorrect thickness when GPencil strokes are shown

5 years agoFix T47368: Crash re-linking object to scene
Campbell Barton [Tue, 9 Feb 2016 07:06:06 +0000 (18:06 +1100)]
Fix T47368: Crash re-linking object to scene

5 years agoDocs: correct description
Campbell Barton [Tue, 9 Feb 2016 05:29:16 +0000 (16:29 +1100)]
Docs: correct description

5 years agoFix T47367: Segfault in BIF_draw_manipulator() with "around active" and the active...
Joshua Leung [Tue, 9 Feb 2016 02:27:26 +0000 (15:27 +1300)]
Fix T47367: Segfault in BIF_draw_manipulator() with "around active" and the active object hidden

Accidentally left off null check when cleaning up the code there in
34993bf97dcbfd29289d14228ac10f1cfa206a15  (GPencil_Editing_Stage3 branch)

Thanks to Sami Pelkonen (pltsi) who reported this bug, along with
some nice and detailed backtraces which made it easy to locate
the problem :)

5 years agoSet clip alpha to small non-zero value
Campbell Barton [Tue, 9 Feb 2016 00:56:40 +0000 (11:56 +1100)]
Set clip alpha to small non-zero value

This amends 089d2a18 which was a known driver bug (T46962),
increasing the clipping to avoid precision issues.

5 years agoCycles: Fix Burley's CDF truncation after recent radius fix
Sergey Sharybin [Mon, 8 Feb 2016 20:49:59 +0000 (21:49 +0100)]
Cycles: Fix Burley's CDF truncation after recent radius fix

This is all not really ideal, but good enough for tonight.
More thoughts and investigation tomorrow!

5 years agoFix: Empty > Image not working in some hardwares
Dalai Felinto [Mon, 8 Feb 2016 17:12:11 +0000 (15:12 -0200)]
Fix: Empty > Image not working in some hardwares

Basically the default U.glalphaclip was 1.8367099231598242e-40 in some
computers (e.g., OSX 10.11, AMD Radeon HD 6750M) this value would need for bad
gl clipping.

The new default is 0.0. To test this before/after the fix, just run:

$ blender -b --factory-startup --python-expr "import bpy; print(bpy.context.user_preferences.system.gl_clip_alpha)"

5 years agoFix T47354: Garbage key events (UNKOWNKEY) would remain in backup event's keymodifier.
Bastien Montagne [Mon, 8 Feb 2016 14:41:39 +0000 (15:41 +0100)]
Fix T47354: Garbage key events (UNKOWNKEY) would remain in backup event's keymodifier.

For some reason, using 'dead keys' to compose some accentuated latin chars will generate
some 'unknown' key events, and in this case, direct `event.keymodifier` was correctly
cleared, but not its 'backup' version in `win->eventstate`, so all further events would
get an invalid modifier until some real one would be pressed again...

5 years agoFix T47356: Too sharp falloww with Burley BSSRDF
Sergey Sharybin [Mon, 8 Feb 2016 13:51:57 +0000 (14:51 +0100)]
Fix T47356: Too sharp falloww with Burley BSSRDF

After the clamping commit we need to bump BURLEY_TRUNCATE
constant a bit, otherwise mean free path does not really
match the disk radius needed for importance sampling.

5 years agoGPencil: Layers with alpha = 0 should not be editable
Joshua Leung [Mon, 8 Feb 2016 13:44:02 +0000 (02:44 +1300)]
GPencil: Layers with alpha = 0 should not be editable

* Added a new API function to test if a GPencil layer is visible or not
* Replaced all editability checks with this new "super check"
* Replaced all magic number thresholds for opacity visiblity with a single define

5 years agoCode Cleanup: Use bool instead of int for "setactive" param
Joshua Leung [Mon, 8 Feb 2016 13:22:16 +0000 (02:22 +1300)]
Code Cleanup: Use bool instead of int for "setactive" param

5 years agoFix: ANIM_animdata_update() was not handling post-edit updates on GP channels
Joshua Leung [Mon, 8 Feb 2016 13:18:05 +0000 (02:18 +1300)]
Fix: ANIM_animdata_update() was not handling post-edit updates on GP channels

This may have resulted in situations where the order of GP keyframes was
incorrect (leading to some frames not being able to be found), or in some
redraw problems when trying to delete GP keyframes (that I was getting earlier,
but can't seem to reproduce now)

TODO: We now need to hook up a proper api to do the GP key sorting

5 years agoFix: "Speaker" Icon for "Muting" in GPencil Dopesheet mode was confusing and used...
Joshua Leung [Mon, 8 Feb 2016 13:08:55 +0000 (02:08 +1300)]
Fix: "Speaker" Icon for "Muting" in GPencil Dopesheet mode was confusing and used incorrectly

In the other Dopesheet modes, the "Speaker" icon was used to refer to
"animation playback muting", while for GP layers, this was being incorrectly
abused for "layer visibility in viewport".

This commit fixes that by making the following changes:
* A new "eye" icon toggle is added for controlling GP Layer visibility
* The "speaker" icon toggle now controls "Lock Frame to Current" functionality,
  which functions more like the "animation playback muting" that is generally

5 years agoGPencil: Numpad 0 and Numpad view rotation keys now work in Continuous Drawing Mode
Joshua Leung [Mon, 8 Feb 2016 12:52:05 +0000 (01:52 +1300)]
GPencil: Numpad 0 and Numpad view rotation keys now work in Continuous Drawing Mode

When animating to the camera, and working in "Continuous Drawing Mode",
it be necessary to return to the active camera viewport, after briefly pivoting
the view using MMB (to check on perspective or something like that). However,
before this fix, you would have had to exit drawing mode to do this.

5 years agoGPencil Eraser: Do not allow eraser radius to get smaller than 1 pixel
Joshua Leung [Mon, 8 Feb 2016 12:47:32 +0000 (01:47 +1300)]
GPencil Eraser: Do not allow eraser radius to get smaller than 1 pixel

5 years agoGPencil UI: Show selection mask toggle in 3D view header to make it easier to access
Joshua Leung [Mon, 8 Feb 2016 11:51:07 +0000 (00:51 +1300)]
GPencil UI: Show selection mask toggle in 3D view header to make it easier to access

5 years agoGPencil UI: Expand Sculpt Settings panel by default
Joshua Leung [Mon, 8 Feb 2016 11:18:37 +0000 (00:18 +1300)]
GPencil UI: Expand Sculpt Settings panel by default

Sculpt settings are often quite handy to be able to easily access while drawing,
so make it easier to access these when drawing without having to first expand
the panel.

(On the other hand, the "Edit Strokes" panel contains tools already found in
various other places - menus,etc. - so no need to expand it by default)

5 years agoGPencil: If "onion skinning" toggle on header is enabled, new layers will have onions...
Joshua Leung [Mon, 8 Feb 2016 11:14:45 +0000 (00:14 +1300)]
GPencil: If "onion skinning" toggle on header is enabled, new layers will have onionskinning enabled too

5 years agoFix: Renaming Grease Pencil layers doesn't update the Dopesheet Channels Region
Joshua Leung [Mon, 8 Feb 2016 11:05:09 +0000 (00:05 +1300)]
Fix: Renaming Grease Pencil layers doesn't update the Dopesheet Channels Region

5 years agoFix group flipping when syncing mirror weights
Alexander Gavrilov [Mon, 8 Feb 2016 13:18:45 +0000 (00:18 +1100)]
Fix group flipping when syncing mirror weights

Corrects mirror syncing for invert, levels & smooth.

Note that the code changed to process mirroring even if both verts are selected,
since group flipping can mean that is still meaningful.

5 years agoCleanup: use doxy comments for deform.c
Campbell Barton [Mon, 8 Feb 2016 11:40:57 +0000 (22:40 +1100)]
Cleanup: use doxy comments for deform.c

5 years agoCLeanup: style
Campbell Barton [Mon, 8 Feb 2016 11:28:06 +0000 (22:28 +1100)]
CLeanup: style

5 years agoImprove make.bat final message
Campbell Barton [Mon, 8 Feb 2016 10:12:03 +0000 (21:12 +1100)]
Improve make.bat final message

5 years agoFix RenderEngine API docs
Campbell Barton [Mon, 8 Feb 2016 09:08:21 +0000 (20:08 +1100)]
Fix RenderEngine API docs

Correct access to passes, D1779 by @levon.

Also use is_preview attr and use register/unregister functions.

5 years agoFix for non-bool return values of a few common RNA functions with declared boolean...
Lukas Tönne [Mon, 8 Feb 2016 09:13:09 +0000 (10:13 +0100)]
Fix for non-bool return values of a few common RNA functions with declared boolean return.

Since rBbbc7dc169dc365889bad3f3aed7b868efb432710 bool-valued RNA functions are expected to
return only 0 or 1. For flag tests as in these functions the returned int value needs to be
explicitly converted to bool.

5 years agoFix T47360: Image loading fails when accessible from the CWD
Campbell Barton [Mon, 8 Feb 2016 07:19:50 +0000 (18:19 +1100)]
Fix T47360: Image loading fails when accessible from the CWD

5 years agoFix T47347: Z-pass defaults to zero
Campbell Barton [Mon, 8 Feb 2016 02:36:41 +0000 (13:36 +1100)]
Fix T47347: Z-pass defaults to zero

Use the same default value for Z-depth in the compositor as everywhere else.

5 years agoFix T47353: Project paint ignores small faces
Campbell Barton [Mon, 8 Feb 2016 00:48:03 +0000 (11:48 +1100)]
Fix T47353: Project paint ignores small faces

When zoomed out - faces < 0.5 pixels across a diagonal aren't so rare,
so culling them can ignore small faces.