blender.git
3 years agoCode comments regarding last commit (forgotten to add before)
Luca Rood [Wed, 5 Jul 2017 14:16:57 +0000 (16:16 +0200)]
Code comments regarding last commit (forgotten to add before)

Using an arbitrary face as the source of the UV data is mostly fine, as
vertices on seams will generally map to different parts of the texture
that have the same color.

This is regarding fed853ea782211298c902759ec8cd8e455d8b41d

3 years agoFix T51296: UVs not working for hair emitted from vertices
Luca Rood [Wed, 5 Jul 2017 10:23:42 +0000 (12:23 +0200)]
Fix T51296: UVs not working for hair emitted from vertices

3 years agoCompositor: Fix compilation error and crash when using defocus search
Sergey Sharybin [Wed, 5 Jul 2017 13:37:33 +0000 (15:37 +0200)]
Compositor: Fix compilation error and crash when using defocus search

Was just wondering what the option is doing. Not sure yet, but let's fix
couple of issues here.

3 years agoCycles: Pass string by const reference rather than by value
Sergey Sharybin [Wed, 5 Jul 2017 10:27:41 +0000 (12:27 +0200)]
Cycles: Pass string by const reference rather than by value

Some of the functions might have been inlined, but others i don't see
how that was possible (don't think virtual functions can be inlined here).

In any case, better be explicitly optimal in the code.

3 years agoCycles: Fix compilation error when building without Glog and no C++11
Sergey Sharybin [Wed, 5 Jul 2017 10:01:12 +0000 (12:01 +0200)]
Cycles: Fix compilation error when building without Glog and no C++11

3 years agoFix T51834: Active Object and Groups color difference imperceptible
Bastien Montagne [Tue, 4 Jul 2017 14:01:16 +0000 (16:01 +0200)]
Fix T51834: Active Object and Groups color difference imperceptible

16 was not enough here, -32 seems to give OK results.

3 years agoFix T51965: Custom Bone Shape Wireframe setting affects wireframe thickness.
Bastien Montagne [Tue, 4 Jul 2017 11:10:08 +0000 (13:10 +0200)]
Fix T51965: Custom Bone Shape Wireframe setting affects wireframe thickness.

Clearing of custom bones outline's line thickness was not done at proper
point, wireframe drawing never changes line thickness, only solid draw
with outline does...

3 years agoFix T51703: Rigid body with delta transform jumps when transforming
Luca Rood [Tue, 4 Jul 2017 08:12:09 +0000 (10:12 +0200)]
Fix T51703: Rigid body with delta transform jumps when transforming

When doing any transformation on a rigid body object that has delta
transforms, the object would be offset by the amount of the delta
transform.

3 years agoBetter fix for rigid body not resimulating
Luca Rood [Tue, 4 Jul 2017 08:57:57 +0000 (10:57 +0200)]
Better fix for rigid body not resimulating

Last fix only accounted for direct changes to the RB settings, but
failed for, say, object transformations. This fix accounts for any
change that might invalidate the RB cache.

3 years agoFix rigid body not resimulating after cache invalidation
Luca Rood [Tue, 4 Jul 2017 07:20:02 +0000 (09:20 +0200)]
Fix rigid body not resimulating after cache invalidation

Fix 9cd6b03187b91bb2c267a45eac3cee7738e0e220 introduced a bug that
prevented simulation after a cache invalidation (for instance when
changing a setting after simulating). This fixes that.

3 years agoFix T51950: Abnormally long Cycles OpenCL GPU render times with certain panoramic...
Lukas Stockner [Mon, 3 Jul 2017 16:22:35 +0000 (18:22 +0200)]
Fix T51950: Abnormally long Cycles OpenCL GPU render times with certain panoramic camera settings

The problem here was that when a "invalid" path is generated by the panoramic camera, it was tagged
as RAY_TO_REGENERATE with the intention of generating a new path in kernel_buffer_update.

However, since that state was not handled in kernel_queue_enqueue, kernel_buffer_update did not
process the path which resulted in an infinite loop.

3 years agoCycles: Add missing split kernel to CPUDevice
Lukas Stockner [Mon, 3 Jul 2017 16:22:20 +0000 (18:22 +0200)]
Cycles: Add missing split kernel to CPUDevice

3 years agoFix T51523: Lattice modifier affecting particles even when disabled
Luca Rood [Mon, 3 Jul 2017 16:00:13 +0000 (18:00 +0200)]
Fix T51523: Lattice modifier affecting particles even when disabled

Particles were ignoring the lattice modifier visibility, and
"influence" property.

3 years agoFixed build error on Windows / VS2015
Sybren A. Stüvel [Mon, 3 Jul 2017 13:50:19 +0000 (15:50 +0200)]
Fixed build error on Windows / VS2015

3 years agoAlembic: fix T51820 for sequence files not loading properly.
Sybren A. Stüvel [Mon, 3 Jul 2017 11:49:16 +0000 (13:49 +0200)]
Alembic: fix T51820 for sequence files not loading properly.

3 years agoAlembic: avoid crashing when doing certain file operations.
Sybren A. Stüvel [Mon, 3 Jul 2017 13:28:19 +0000 (15:28 +0200)]
Alembic: avoid crashing when doing certain file operations.

Things like missing directories are now properly checked for, rather than
crashing Blender.

This also adds support for relative paths when opening an ABC file.

3 years agoAlembic: renamed offset → sequence_offset
Sybren A. Stüvel [Mon, 3 Jul 2017 10:29:01 +0000 (12:29 +0200)]
Alembic: renamed offset → sequence_offset

3 years agoFix T51883: Wrong matrix computation in "Make Duplicates Real"
Luca Rood [Mon, 3 Jul 2017 10:41:40 +0000 (12:41 +0200)]
Fix T51883: Wrong matrix computation in "Make Duplicates Real"

3 years agoFix missing return error introduced by last commit
Luca Rood [Mon, 3 Jul 2017 10:12:27 +0000 (12:12 +0200)]
Fix missing return error introduced by last commit

End of non-void function was being reached since
f5535fcb83fd7c1374697923b43565c9e303d225

3 years agoFi T51023: MixRGB constant folding not effective with clamp option.
Brecht Van Lommel [Mon, 3 Jul 2017 03:25:27 +0000 (05:25 +0200)]
Fi T51023: MixRGB constant folding not effective with clamp option.

3 years agoFix T51855: Cycles emssive objects with NaN transform break lighting.
Brecht Van Lommel [Mon, 3 Jul 2017 03:04:43 +0000 (05:04 +0200)]
Fix T51855: Cycles emssive objects with NaN transform break lighting.

3 years agoFix T51889: broken UI after File > New without a userpref.blend.
Brecht Van Lommel [Mon, 3 Jul 2017 00:24:40 +0000 (02:24 +0200)]
Fix T51889: broken UI after File > New without a userpref.blend.

BLO_update_defaults_userpref_blend() was being run when no user preferences
were loaded from memory.

3 years agoFix T51734: batch-generate previews crashes on some materials.
Brecht Van Lommel [Sun, 2 Jul 2017 21:35:40 +0000 (23:35 +0200)]
Fix T51734: batch-generate previews crashes on some materials.

3 years agoFix T51759: fluid simulation particles not remoevd when colliding with outflow objects.
Lucas Veber [Sun, 2 Jul 2017 20:38:16 +0000 (22:38 +0200)]
Fix T51759: fluid simulation particles not remoevd when colliding with outflow objects.

Reviewed By: brecht

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

3 years agoFix T51951: cell noise texture precision issue at unit vertex coordinates.
Brecht Van Lommel [Sun, 2 Jul 2017 19:53:23 +0000 (21:53 +0200)]
Fix T51951: cell noise texture precision issue at unit vertex coordinates.

Solution is to bias the coordinates a little, same as Cycles checker texture.

3 years agoFix T51746: normal map tangents not working correctly when there are no UV maps.
Alexander Romanov [Sun, 2 Jul 2017 18:21:19 +0000 (20:21 +0200)]
Fix T51746: normal map tangents not working correctly when there are no UV maps.

Patch by Alexander, with some refactoring by Brecht.

Reviewed By: brecht

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

3 years agoFix T51772: double undo entry for color picker editing.
Brecht Van Lommel [Sun, 2 Jul 2017 19:25:25 +0000 (21:25 +0200)]
Fix T51772: double undo entry for color picker editing.

3 years agoFix T51956: color noise with principled sss, radius 0 and branched path.
Brecht Van Lommel [Sun, 2 Jul 2017 17:10:11 +0000 (19:10 +0200)]
Fix T51956: color noise with principled sss, radius 0 and branched path.

3 years agoFix T51957: principled BSDF mismatches in GLSL viewport.
Brecht Van Lommel [Sun, 2 Jul 2017 15:59:31 +0000 (17:59 +0200)]
Fix T51957: principled BSDF mismatches in GLSL viewport.

3 years agoFix principled BSDF incorrectly missing subsurface component with base color black.
Brecht Van Lommel [Sun, 2 Jul 2017 16:16:39 +0000 (18:16 +0200)]
Fix principled BSDF incorrectly missing subsurface component with base color black.

3 years agoFix T51947: failure setting sequence.use_proxy/crop/translation to False
Brecht Van Lommel [Sat, 1 Jul 2017 20:14:34 +0000 (22:14 +0200)]
Fix T51947: failure setting sequence.use_proxy/crop/translation to False

3 years agoFix ED_OT_undo_redo operator
Aleksandr Zinovev [Sat, 1 Jul 2017 07:50:29 +0000 (10:50 +0300)]
Fix ED_OT_undo_redo operator

3 years agoFix T50230: Rigid Body simulation shouldn't step when time is beyond cached area
Luca Rood [Fri, 30 Jun 2017 13:56:44 +0000 (15:56 +0200)]
Fix T50230: Rigid Body simulation shouldn't step when time is beyond cached area

This makes the last time (`ltime`) stored in the rigid body world (`rbw`)
only be updated once a simulation step actually occurs, this prevents
another simulation step from being solved unless the current time is
exactly one frame after the last cached frame. Thus this prevents the
formation of gaps in the cache, such as seen in T50230.

Reviewers: mont29, sergey, angavrilov

Tags: #physics

Maniphest Tasks: T50230

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

3 years agoBetter fix for isfinite problem - works in older gcc's too.
Howard Trickey [Fri, 30 Jun 2017 13:04:01 +0000 (09:04 -0400)]
Better fix for isfinite problem - works in older gcc's too.

Previous fix relying on __cplusplus value didn't fix for older
gcc's on linux, but this fix does.

3 years agoFix compile error after recent 9c2bbfb6 commit.
Howard Trickey [Fri, 30 Jun 2017 11:47:37 +0000 (07:47 -0400)]
Fix compile error after recent 9c2bbfb6 commit.

Older C++ compilers use finite instead of isfinite.

3 years agoCycles: Use float constants instead of double
Mai Lavelle [Fri, 30 Jun 2017 02:52:31 +0000 (22:52 -0400)]
Cycles: Use float constants instead of double

3 years agoCycles: Disable baking in mega kernel when not in use to improve build times
Mai Lavelle [Fri, 30 Jun 2017 02:50:00 +0000 (22:50 -0400)]
Cycles: Disable baking in mega kernel when not in use to improve build times

3 years agoFix T50887: Holes in fluid mesh on Windows
Campbell Barton [Fri, 30 Jun 2017 01:30:15 +0000 (11:30 +1000)]
Fix T50887: Holes in fluid mesh on Windows

D2556 by @chrisr

3 years agoFix unpredictable trackball rotation
Campbell Barton [Fri, 30 Jun 2017 00:33:42 +0000 (10:33 +1000)]
Fix unpredictable trackball rotation

D2729 by @IgorNull

Currently, trackball rotation sequentially applies rotation across x axis and y axis,
which produces a strange/unusable result on diagonal pointer motion.

This change fixes the problem by using a single axis which is orthogonal
and proportional to mouse delta - matching view-port trackball.

3 years agoWorkaround T51934: Array's > SHRT_MAX aren't supported
Campbell Barton [Fri, 30 Jun 2017 00:04:32 +0000 (10:04 +1000)]
Workaround T51934: Array's > SHRT_MAX aren't supported

3 years agoFix T51890: Turning off viewport display for array modifier is blocking dupliface...
Bastien Montagne [Thu, 29 Jun 2017 13:44:00 +0000 (15:44 +0200)]
Fix T51890: Turning off viewport display for array modifier is blocking dupliface in final render

DupliVert/Face were not using render DM at render time.

3 years agoFix T51926: Selecting pose icon under expanded group in outliner causes crash.
Bastien Montagne [Thu, 29 Jun 2017 08:09:17 +0000 (10:09 +0200)]
Fix T51926: Selecting pose icon under expanded group in outliner causes crash.

Cannot switch uninstantiated armature to Pose mode...

3 years agoFix T51909: Cycles: Uninitialized closure normals for the Hair BSDF
Lukas Stockner [Wed, 28 Jun 2017 19:25:30 +0000 (21:25 +0200)]
Fix T51909: Cycles: Uninitialized closure normals for the Hair BSDF

As the title says, the normal wasn't set for the Hair BSDF because it wasn't
needed before. However, the denoiser uses it to store the feature passes, so
it needs to be set now.

3 years agoFix node UI not using translation context correctly.
Bastien Montagne [Wed, 28 Jun 2017 18:50:21 +0000 (20:50 +0200)]
Fix node UI not using translation context correctly.

Now that some node types may have custom context, we need to handle that
in the (convoluted :| ) UI code of nodes as well.

Reported in T43295 by Gabriel Gazzán (@gab3d), thanks.

3 years agoFix own really stupid mistake/typo in previous commit...
Bastien Montagne [Wed, 28 Jun 2017 11:21:04 +0000 (13:21 +0200)]
Fix own really stupid mistake/typo in previous commit...

3 years agoFix T51900: Crash after pressing "F" multiple times.
Bastien Montagne [Wed, 28 Jun 2017 08:53:52 +0000 (10:53 +0200)]
Fix T51900: Crash after pressing "F" multiple times.

`BMO_iter_as_array()` may fill less items than requested in given array,
so we have to update number of items to work on from its returned value,
otherwise code might try to use uninitialized memory.

3 years agoFix T51913: Context tab for textures issue
Dalai Felinto [Tue, 27 Jun 2017 14:53:43 +0000 (16:53 +0200)]
Fix T51913: Context tab for textures issue

The original code was doing a sanity check to see if existing index was
out of range. However the comparison was wrong.

So if the previous ct->user (active index of texture node) was larger
than then number of available texture nodes + 1 in the other material,
we would never re-set the index to 0.

Bug introduced on c31f74de6bb7.

There was an early attempt of fixing this (2b2ac5d3cc) but it was just working
by pure, luck. And failing in cases like the one from this bug report.

3 years agoCleanup: remove unused function
Campbell Barton [Tue, 27 Jun 2017 08:05:44 +0000 (18:05 +1000)]
Cleanup: remove unused function

3 years agoCMake: Only set CMAKE_BUILD_TYPE_INIT when not set
Campbell Barton [Mon, 26 Jun 2017 23:50:35 +0000 (09:50 +1000)]
CMake: Only set CMAKE_BUILD_TYPE_INIT when not set

Convenience makefile now uses CMAKE_BUILD_TYPE_INIT,
this means you can change the build type of an existing build
and it won't be overwritten when running `make`.

Useful if you want to add debug info to a release build for profiling.

3 years agoAdd warning that 'purge all' action in Outliner does save to current .blend file.
Bastien Montagne [Mon, 26 Jun 2017 17:00:45 +0000 (19:00 +0200)]
Add warning that 'purge all' action in Outliner does save to current .blend file.

This is a very important, potentially deadly side-effect of this
operator. If something goes wrong, it can save a broken .blend file.

Ideally we could get rid of that operation anyway, once ID management if
fully renewed, but for now would rather keep it around.

Related to T51902.

3 years agoFix T51902: Severe problem with relocating linked libraries when using proxies.
Bastien Montagne [Mon, 26 Jun 2017 16:55:30 +0000 (18:55 +0200)]
Fix T51902: Severe problem with relocating linked libraries when using proxies.

Fix is a bit ugly, but cannot think of another solution for now, at
least this **should** not break anything else.

And now I go find myself a very remote, high and lonely mountain, climb
to its top, roar "I hate proxies!" a few times, and relax hearing the echos...

3 years agoEnable optional jack in install_deps.sh
Bastien Montagne [Mon, 26 Jun 2017 14:12:32 +0000 (16:12 +0200)]
Enable optional jack in install_deps.sh

Based on D2578, now you can install JACK audio server and use it in
Blender build without having to specify the `--with-all` option (that
one still enables also JACK of course).

Reviewers: mont29

Maniphest Tasks: T51033

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

3 years agoBuilding w/o Python works again
Campbell Barton [Mon, 26 Jun 2017 03:25:51 +0000 (13:25 +1000)]
Building w/o Python works again

3 years agoFix freestyle lineset panels being animatable
Aaron Carlisle [Mon, 26 Jun 2017 00:03:19 +0000 (20:03 -0400)]
Fix freestyle lineset panels being animatable

3 years agoUI: Fix Capitalization Inconsistency
Aaron Carlisle [Sun, 25 Jun 2017 23:55:05 +0000 (19:55 -0400)]
UI: Fix Capitalization Inconsistency

3 years agoDocs: correct doc-strings
Campbell Barton [Sun, 25 Jun 2017 21:36:29 +0000 (07:36 +1000)]
Docs: correct doc-strings

3 years agoCollada: Exporter now only exports either 'Materials' or 'UV Textures as Materials...
Gaia Clary [Sun, 25 Jun 2017 20:06:04 +0000 (22:06 +0200)]
Collada: Exporter now only exports either 'Materials' or 'UV Textures as Materials'. This makes the user interface more streight

3 years agofix: overlooked the RET_ZERO appendix
Gaia Clary [Sun, 25 Jun 2017 15:04:47 +0000 (17:04 +0200)]
fix: overlooked the RET_ZERO appendix

3 years agofix: T51622 The exporter now exports meshes as <Triangles> when all contained polygon...
Gaia Clary [Sun, 25 Jun 2017 12:51:51 +0000 (14:51 +0200)]
fix: T51622 The exporter now exports meshes as <Triangles> when all contained polygons are tris

3 years agofix: Collada fprintf needs std::string be converted to char *
Gaia Clary [Sun, 25 Jun 2017 11:18:21 +0000 (13:18 +0200)]
fix: Collada fprintf needs std::string be converted to char *

3 years agofix: collada: removed unnecessary extra qualification
Gaia Clary [Sun, 25 Jun 2017 11:10:03 +0000 (13:10 +0200)]
fix: collada: removed unnecessary extra qualification

3 years agofix: adjusted collada declaration after changes in collada module.
Gaia Clary [Sun, 25 Jun 2017 08:50:03 +0000 (10:50 +0200)]
fix: adjusted collada declaration after changes in collada module.
@campbell Barton: Why is this declaration needed at all in stubs.c?
Further up the file collada.h is imported and that already decalres
the function and results in a duplicate declaration.

3 years agoCollada: Fix: Geometry exporter did not create all polylist when meshes are only...
Gaia Clary [Sat, 24 Jun 2017 21:33:34 +0000 (23:33 +0200)]
Collada: Fix: Geometry exporter did not create all polylist when meshes are only partially textured

3 years agocollada: export UV Textures as materials. Note: the reimport of the exported collada...
Gaia Clary [Sat, 24 Jun 2017 20:16:32 +0000 (22:16 +0200)]
collada: export UV Textures as materials. Note: the reimport of the exported collada files will have materials assigned instead of UV Face Textures! This is expected behavior

3 years agocollada: change image export: export either UV Textures or Materials. This
Gaia Clary [Sat, 24 Jun 2017 20:09:08 +0000 (22:09 +0200)]
collada: change image export: export either UV Textures or Materials. This
avoids wrong texture data when multiple objects are exported. Note: This
commit might possiblyt not work fully. The full feature is added with the
next commit)

3 years agoCollada: improved Error handling: Avoid shutdown of Blender when the Collada importer...
Gaia Clary [Sat, 24 Jun 2017 19:50:04 +0000 (21:50 +0200)]
Collada: improved Error handling: Avoid shutdown of Blender when the Collada importer finds Syntax errors in import data

3 years agoCollada: added new functions for improved material exporter (not used yet)
Gaia Clary [Sat, 24 Jun 2017 19:36:03 +0000 (21:36 +0200)]
Collada: added new functions for improved material exporter (not used yet)

3 years agoFix T50856: crash when minimizing window on AMD / Windows.
Brecht Van Lommel [Sat, 24 Jun 2017 14:44:48 +0000 (16:44 +0200)]
Fix T50856: crash when minimizing window on AMD / Windows.

3 years agoFix T51792: crash calling bpy.ops.screen.animation_cancel while scrubbing.
Brecht Van Lommel [Sat, 24 Jun 2017 16:02:30 +0000 (18:02 +0200)]
Fix T51792: crash calling bpy.ops.screen.animation_cancel while scrubbing.

3 years agoGrease Pencil: Fix hardcoded DKEY for continous drawing
Dalai Felinto [Fri, 23 Jun 2017 08:32:03 +0000 (10:32 +0200)]
Grease Pencil: Fix hardcoded DKEY for continous drawing

3 years agoFix T51845
raa [Fri, 23 Jun 2017 08:04:58 +0000 (11:04 +0300)]
Fix T51845

3 years agoFix T51867: Insert Keyframe I - L / I - R / I - S key combos are broken.
Bastien Montagne [Thu, 22 Jun 2017 08:26:27 +0000 (10:26 +0200)]
Fix T51867: Insert Keyframe I - L / I - R / I - S key combos are broken.

Reorder keyingsets registration order, since it also afects order of I
menu options, better show most used ones first, pure alphabetical order
is not great here... Will likely break some muscle memory though. :|

Based on D2720 by Carlo Andreacchio (@candreacchio), thanks.

3 years agoFix T51863: CompositorNodeSwitchView have the wrong rna API
Dalai Felinto [Thu, 22 Jun 2017 08:25:05 +0000 (10:25 +0200)]
Fix T51863: CompositorNodeSwitchView have the wrong rna API

Although the original report was about the docs, the real issue was in
the API.

My original commit started from a copy-paste from the Switch
Node. However I don't use custom1 for thew Switch View node.

The docs is slightly incomplete since it would be nice to mention the
views here. Or maybe even expose them via Python. But honestly they are
generated depending on the scene multi-view settings.

3 years agoCycles: Fix excessive sampling weight of glossy Principled BSDF components
Lukas Stockner [Wed, 21 Jun 2017 00:57:58 +0000 (02:57 +0200)]
Cycles: Fix excessive sampling weight of glossy Principled BSDF components

If there was any specularity in the Principled BSDF, it would get a sampling
weight of one regardless of its actual impact.

This commit makes Cycles estimate the contribution of the component and adjust
the weighting accordingly, which greatly improves the noise characteristics of
the Principled BSDF in many cases.

Note that this commit might slightly change the brightness of areas when using
MultiGGX and high roughnesses, but the new brightness is more accurate and
closer to the result of Branched Path Tracing. See T51836 for details.

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

3 years agoFix T51836: Cycles: Fix incorrect PDF approximations of the MultiGGX closures
Lukas Stockner [Wed, 21 Jun 2017 00:51:34 +0000 (02:51 +0200)]
Fix T51836: Cycles: Fix incorrect PDF approximations of the MultiGGX closures

The PDF of the MultiGGX sampling is approximated by the singlescattering GGX
term as well as a scaled diffuse term that makes up for the energy in the
multiscattering component that's missed by GGX.

However, there were two problems with the glossy terms: The diffuse term missed
a normalization factor, and the singlescattering term was not properly scaled
down based on the albedo estimate.

The glass term was completely wrong and has been rewritten. It uses the fresnel
factor to weight reflection vs. refraction and uses the glossy MultiGGX model
for reflection.
For refraction, the correct singlescattering term is now used, and a new
albedo approximation is used that was derived by evaluating GGX albedo for
roughnesses from 0 to 1 and IORs from 1 to 3 and fitting numerical
approximations to it. The resulting model has a mean relative error of 9e-5,
but could probably be simplified without losing noticable accuracy in the
final render.

The improved PDFs help with glossy highlights (due to better light sampling vs.
closure sampling MIS) and fix the situation described in T51836 where mixing
MultiGGX with other closures (as it happens in e.g. the Principled
BSDF) causes incorrect darkening.

3 years agoFix T51862: principled shader GLSL artifacts in ortho mode.
Brecht Van Lommel [Wed, 21 Jun 2017 19:31:08 +0000 (21:31 +0200)]
Fix T51862: principled shader GLSL artifacts in ortho mode.

3 years agoFix T51849: change Cycles clearcoat gloss to roughness.
Brecht Van Lommel [Wed, 21 Jun 2017 17:24:57 +0000 (19:24 +0200)]
Fix T51849: change Cycles clearcoat gloss to roughness.

This is compatible with UE4 and more consistent with specular and transmission
roughness, even if it deviates from the original Disney BRDF.

3 years agoFix typo in builtbot config
Dalai Felinto [Wed, 21 Jun 2017 12:05:23 +0000 (14:05 +0200)]
Fix typo in builtbot config

3 years agoFix T51856: `BKE_mesh_new_from_object()` would often generate default 'Mesh' named...
Bastien Montagne [Wed, 21 Jun 2017 08:30:38 +0000 (10:30 +0200)]
Fix T51856: `BKE_mesh_new_from_object()` would often generate default 'Mesh' named datablock.

This is annoying especially for exporters who do use mesh name, since it
broke any relation with actual Mesh naming in original Blend file.

Unfortunately, we cannot avoid the extra .xxx digits. ;)

3 years agoFix: Icon alignment for scaled pie buttons with no text
raa [Tue, 20 Jun 2017 17:15:04 +0000 (20:15 +0300)]
Fix: Icon alignment for scaled pie buttons with no text

3 years agoFix (unreported) missing Image usercount increase when copying UVProject modifier.
Bastien Montagne [Mon, 19 Jun 2017 13:05:08 +0000 (15:05 +0200)]
Fix (unreported) missing Image usercount increase when copying UVProject modifier.

3 years agoAlembic tests: make failures a bit easier to diagnose.
Sybren A. Stüvel [Mon, 19 Jun 2017 15:55:51 +0000 (17:55 +0200)]
Alembic tests: make failures a bit easier to diagnose.

3 years agoFix T51762: Unit test script_alembic_import is failing.
Sybren A. Stüvel [Mon, 19 Jun 2017 15:50:43 +0000 (17:50 +0200)]
Fix T51762: Unit test script_alembic_import is failing.

Implemented workaround for use with the legacy depsgraph.

3 years agoFixed bl_load_py_modules / script_load_modules unit test
Sybren A. Stüvel [Mon, 19 Jun 2017 13:28:28 +0000 (15:28 +0200)]
Fixed bl_load_py_modules / script_load_modules unit test

It tried to assert that
addons/io_blend_utils/blender_bam-unpacked.whl/__init__.py was loaded when
the io_blend_utils module was imported. However, this happens only on
demand, and not directly when importing the add-on.

3 years agoUse for/else instead of setting 'ok' variable.
Sybren A. Stüvel [Mon, 19 Jun 2017 13:25:58 +0000 (15:25 +0200)]
Use for/else instead of setting 'ok' variable.

This is more efficient, and this use case is exactly what the else clause
is for.

3 years agoRemoved trailing spaces
Sybren A. Stüvel [Mon, 19 Jun 2017 08:46:07 +0000 (10:46 +0200)]
Removed trailing spaces

3 years agoFix (unreported) bad copying code of Surface Deform modifier.
Bastien Montagne [Mon, 19 Jun 2017 12:57:40 +0000 (14:57 +0200)]
Fix (unreported) bad copying code of Surface Deform modifier.

3 years agoFix compiler warnings from own recent rB0d5c7e5e36b9.
Bastien Montagne [Mon, 19 Jun 2017 12:43:44 +0000 (14:43 +0200)]
Fix compiler warnings from own recent rB0d5c7e5e36b9.

3 years agoFix (unreported) bad copying of Ocean modifier.
Bastien Montagne [Mon, 19 Jun 2017 12:40:08 +0000 (14:40 +0200)]
Fix (unreported) bad copying of Ocean modifier.

Was needlessly complicated code, forgot to copy a value (foam_fade), and
was utterly leaking memory!

3 years agoFix (unreported) bad copying code in Mesh Deform modifier.
Bastien Montagne [Mon, 19 Jun 2017 10:55:11 +0000 (12:55 +0200)]
Fix (unreported) bad copying code in Mesh Deform modifier.

3 years agoFix (unreported) Dynamic Paint modifier not increasing ID usercount in copy function.
Bastien Montagne [Mon, 19 Jun 2017 10:25:41 +0000 (12:25 +0200)]
Fix (unreported) Dynamic Paint modifier not increasing ID usercount in copy function.

*Sigh* One more example of why we should keep ID management handling in
as few places as possible! It's impossible to keep more than a few
places in sync regarding which ID pointer is refcounted etc.

3 years agoFix (unreported) memory leak in Fluid modifier copying.
Bastien Montagne [Mon, 19 Jun 2017 10:21:14 +0000 (12:21 +0200)]
Fix (unreported) memory leak in Fluid modifier copying.

Also generally simplify/sanitize this copy code.

3 years agoCleanup: doxygen comments
Campbell Barton [Sun, 18 Jun 2017 23:33:23 +0000 (09:33 +1000)]
Cleanup: doxygen comments

Also remove duplicate & mismatching comments from grease-pencil header.
Keep comments close to implementation to avoid getting out of sync.

3 years agoFix T51774: Children particles hair interpolation not correct with textures or dp.
Bastien Montagne [Sun, 18 Jun 2017 21:54:52 +0000 (23:54 +0200)]
Fix T51774: Children particles hair interpolation not correct with textures or dp.

Children where always getting at least one segment of fixed length...

Now fully hidden ones (zero length) get no segment at all.

Note that even very short ones keep getting one 'unit' length segment - would
rather avoid changing that at this point, given how complex children
particles 'length' can get with all kind of modifiers... Think we can
live with that for now anyway.

3 years agoFix T51840: UI redraw in node editor header missing on pointcache bake
Thomas Beck [Sun, 18 Jun 2017 14:26:09 +0000 (16:26 +0200)]
Fix T51840: UI redraw in node editor header missing on pointcache bake

Missing a notifier handler in the node editor

3 years agoFix unreported: Copy-pasting nodes crashes when they have an undefined type
Lukas Stockner [Sun, 18 Jun 2017 03:13:32 +0000 (05:13 +0200)]
Fix unreported: Copy-pasting nodes crashes when they have an undefined type

3 years agoDocs: Fix file:line links in generated API docs
Campbell Barton [Sat, 17 Jun 2017 16:33:13 +0000 (02:33 +1000)]
Docs: Fix file:line links in generated API docs

3 years agoAdd Cone: tip soft-min should be zero
Campbell Barton [Sat, 17 Jun 2017 16:07:22 +0000 (02:07 +1000)]
Add Cone: tip soft-min should be zero

Default value should be included in range.

3 years agoGuarded allocator: Fix type in macro definition
Sergey Sharybin [Sat, 17 Jun 2017 14:13:30 +0000 (16:13 +0200)]
Guarded allocator: Fix type in macro definition

The crash did not happen yet because we always had proper vmemh defined in
the parent scope.

Patch by Ivan Ivanov (aka obiwanus), thanks!

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

3 years agoPyAPI: Fix warning about indent
Aaron Carlisle [Fri, 16 Jun 2017 16:30:18 +0000 (12:30 -0400)]
PyAPI: Fix warning about indent