blender.git
3 years agoFix T51998: Anim player uses 100% CPU
Campbell Barton [Mon, 10 Jul 2017 07:37:00 +0000 (17:37 +1000)]
Fix T51998: Anim player uses 100% CPU

The loop running with no events didn't sleep.
Now wait for events when paused.

3 years agoFix T51052: CacheFile Open crashes from Python
Campbell Barton [Mon, 10 Jul 2017 07:06:25 +0000 (17:06 +1000)]
Fix T51052: CacheFile Open crashes from Python

Note that bpy.data access makes more sense here,
but better not crash when called from Python.

3 years agoCurve: add assert for invalid next/prev use
Campbell Barton [Mon, 10 Jul 2017 06:27:15 +0000 (16:27 +1000)]
Curve: add assert for invalid next/prev use

3 years agoFix T51665: No orientation for nurbs, polygons
Campbell Barton [Mon, 10 Jul 2017 04:37:20 +0000 (14:37 +1000)]
Fix T51665: No orientation for nurbs, polygons

3 years agoFix T52007: Cancel bezier curve transform fails
Campbell Barton [Mon, 10 Jul 2017 03:38:28 +0000 (13:38 +1000)]
Fix T52007: Cancel bezier curve transform fails

Auto & aligned handles wouldn't restore to their correct locations.

Note that a more direct fix for the bug is possible
(storing the handle locations to restore on cancel).

But that still gives some odd behavior, see code-comments for details.

3 years agoFix T51898: missing sequence strip color space validation on load.
Brecht Van Lommel [Sun, 9 Jul 2017 23:03:20 +0000 (01:03 +0200)]
Fix T51898: missing sequence strip color space validation on load.

3 years agoFix T52001: material draw mode principled BSDF artifacts at some angles.
Brecht Van Lommel [Sat, 8 Jul 2017 21:37:16 +0000 (23:37 +0200)]
Fix T52001: material draw mode principled BSDF artifacts at some angles.

The default anisotropic tangent computation could fail in some cases,
leading to NaNs and artifacts. Use a simpler formulation that doesn't
suffer from this.

3 years agoFix T51959: Windows + Intel GPU offset between UI drawing and mouse.
Brecht Van Lommel [Sat, 8 Jul 2017 20:08:38 +0000 (22:08 +0200)]
Fix T51959: Windows + Intel GPU offset between UI drawing and mouse.

Unfortunately this means disabling the code that ensures the title
bar is properly scaled with DPI, however better to have that as a
cosmetic issue than Blender being unusable with a lot of Intel GPUs.

3 years agoFix T51967: OSL crash after rendering finished (mainly on Windows).
Brecht Van Lommel [Sat, 8 Jul 2017 00:46:06 +0000 (02:46 +0200)]
Fix T51967: OSL crash after rendering finished (mainly on Windows).

3 years agoFix build after previous commit.
Brecht Van Lommel [Sat, 8 Jul 2017 00:07:39 +0000 (02:07 +0200)]
Fix build after previous commit.

3 years agoFix T51889: new file or load factory settings results in broken UI.
Brecht Van Lommel [Fri, 7 Jul 2017 22:44:31 +0000 (00:44 +0200)]
Fix T51889: new file or load factory settings results in broken UI.

Fix some cases that still assumed there to be a global DPI, instead of a per
window DPI that needs to be set before reading U.dpi.

3 years agoFix T51977: New depsgraph removes the grass in victor scene
Sergey Sharybin [Fri, 7 Jul 2017 14:38:56 +0000 (16:38 +0200)]
Fix T51977: New depsgraph removes the grass in victor scene

For now just make new depsgraph do similar updates to the old one.

See bug report for more detailed information about what was going on.

3 years agoFix T51991: Disabled for viewport particle system becomes visible after BI render
Sergey Sharybin [Fri, 7 Jul 2017 14:13:50 +0000 (16:13 +0200)]
Fix T51991: Disabled for viewport particle system becomes visible after BI render

Move check for psys render data before it is actually requested for creation.

3 years agoFix T50973: Directional blur node doesn't clamp value if using driver
Sergey Sharybin [Fri, 7 Jul 2017 10:08:14 +0000 (12:08 +0200)]
Fix T50973: Directional blur node doesn't clamp value if using driver

The issue was caused by combination of following factors:

- Blender Internal viewport render can not distinguish between which parts of
  main database changed, so it does full database re-sync when anything is
  tagged for an update.

  This way, if any NodeTree (including compositor) is changed, Blender Internal
  viewport is tagged for full render database update.

- With old dependency graph, scene-level drivers are evaluated on every
  iteration of scene_update_tagged, even if nothing is tagged for an update.

  This causes compositor drivers be evaluated quite often.

- Driver evaluation checks whether value was changed, and if so it tags
  corresponding ID type as updated (this is what was telling viewport to do
  render database update).

  This check was quite stupid: current property value was checked against the
  one coming from driver expression. This means, if driver value is outside
  of the hard limit range of the property, the property will always be
  considered updated.

The fix is to compare current property value against clamped value from the
driver.

3 years agoCycles: Fix ambiguity in call of min() function
Sergey Sharybin [Fri, 7 Jul 2017 08:40:19 +0000 (10:40 +0200)]
Cycles: Fix ambiguity in call of min() function

3 years agoFix T51978: Setup Tracking Scene after Motion Tracking fails the first time
Sergey Sharybin [Fri, 7 Jul 2017 07:36:25 +0000 (09:36 +0200)]
Fix T51978: Setup Tracking Scene after Motion Tracking fails the first time

3 years agoFix T51980: Motion Tracking - png image files appear in the Blender program directory...
Sergey Sharybin [Fri, 7 Jul 2017 07:27:24 +0000 (09:27 +0200)]
Fix T51980: Motion Tracking - png image files appear in the Blender program directory when using refine

Residue of debug code remained form some older bug fix.

3 years agoAdd option to OpenImage operator not to detect sequences.
Bastien Montagne [Thu, 6 Jul 2017 12:50:10 +0000 (14:50 +0200)]
Add option to OpenImage operator not to detect sequences.

Otherwise, there would be no way to load a bunch of pictures with
'sequence pattern' in name in a single operation.

Related to T51778.

3 years agoFix T51955: Changing Auto-IK length crashes Blender (with new-depsgraph)
Sergey Sharybin [Wed, 5 Jul 2017 15:52:42 +0000 (17:52 +0200)]
Fix T51955: Changing Auto-IK length crashes Blender (with new-depsgraph)

New dependency graph is tacking root bone into account when building the graph.
This is required in order to get proper dependencies between bones. so we can
reliably use bones as targets from the same rig (and even indirect relations
via external objects). This forces us to tag relations for update when we change
root IK chain bone.

Since relations rebuild is not fully trivial operation, we only do it for
the new dependency graph. In the future it'll be nice to avoid whole graph
rebuild for such cases, but that's mentioned as a TODO.

3 years agoFix T51015: Pack all into blend automatically leaves checkbox enabled.
Bastien Montagne [Thu, 6 Jul 2017 09:52:44 +0000 (11:52 +0200)]
Fix T51015: Pack all into blend automatically leaves checkbox enabled.

Makes absolutely no sense to forcefully enable that automatic packing option here,
user can do this himself if they likes, from the very same menu...

3 years agoCycles: Add artificial memory limit debug option for OpenCL
Mai Lavelle [Thu, 6 Jul 2017 00:16:41 +0000 (20:16 -0400)]
Cycles: Add artificial memory limit debug option for OpenCL

3 years agoRevert "Cycles: use std::min and max for extra overloads"
Mai Lavelle [Thu, 6 Jul 2017 08:21:29 +0000 (04:21 -0400)]
Revert "Cycles: use std::min and max for extra overloads"

We already have this in util_algorithm.h

This reverts commit cff172c7621d89773baa99a9460f19056efb5f1e.

3 years agoCycles: Dont allow global size to fall to zero
Mai Lavelle [Thu, 6 Jul 2017 00:15:47 +0000 (20:15 -0400)]
Cycles: Dont allow global size to fall to zero

3 years agoCycles: Detect out of memory before buffer allocation in OpenCL devices
Mai Lavelle [Wed, 5 Jul 2017 23:44:18 +0000 (19:44 -0400)]
Cycles: Detect out of memory before buffer allocation in OpenCL devices

3 years agoCycles: use std::min and max for extra overloads
Mai Lavelle [Wed, 5 Jul 2017 23:43:34 +0000 (19:43 -0400)]
Cycles: use std::min and max for extra overloads

3 years agoBetter fix for sequencer crash when text strip doesn't have effect data.
Sybren A. Stüvel [Wed, 5 Jul 2017 20:18:36 +0000 (22:18 +0200)]
Better fix for sequencer crash when text strip doesn't have effect data.

This situation happens when a file with a text effect sequencer strip is
loaded in Blender < 2.76 and saved. This destroys the effect data, causing
a crash in Blender ≥ 2.76.

d2f748a222ad19f prevented the crash when opening such a file, but accessing
the strip still caused a crash. This commit fixes that by actually
initialising the invalid strip. Of course this still causes data loss, but
that already happened by opening & overwriting the file in Blender < 2.76.

3 years agoCycles: Fix compilation error after recent logging changes
Sergey Sharybin [Wed, 5 Jul 2017 18:39:34 +0000 (20:39 +0200)]
Cycles: Fix compilation error after recent logging changes

This file uses std::ostream for helper << operators, so need to make sure
corresponding header is included.

3 years agoSequencer: Prevent crash when text strip doesn't have effect data.
Sybren A. Stüvel [Wed, 5 Jul 2017 18:22:28 +0000 (20:22 +0200)]
Sequencer: Prevent crash when text strip doesn't have effect data.

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.