blender.git
5 years agoBMesh: simple edge boundary walker
Campbell Barton [Thu, 6 Mar 2014 20:58:22 +0000 (07:58 +1100)]
BMesh: simple edge boundary walker

5 years agoFix T39000: Align Objects Axis button is not redraw.
Bastien Montagne [Thu, 6 Mar 2014 20:56:32 +0000 (21:56 +0100)]
Fix T39000: Align Objects Axis button is not redraw.

We have to apply button *before* checking others in the ROW, else changes are not propagated to them yet.

5 years agoCycles: Use Displacement type in OSL ShadingSystem.
Thomas Dinges [Thu, 6 Mar 2014 20:02:41 +0000 (21:02 +0100)]
Cycles: Use Displacement type in OSL ShadingSystem.

Reviewed by: brecht
Differential Revision: https://developer.blender.org/D386

5 years agoCuda use streams and async to avoid busywaiting
Martijn Berger [Thu, 6 Mar 2014 19:51:13 +0000 (20:51 +0100)]
Cuda use streams and async to avoid busywaiting

This switches api usage for cuda towards using more of the Async calls.

Updating only once every second is sufficiently cheap that I don't think it is worth doing it less often.

Reviewed By: brecht

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

5 years agoExperimental dyntopo feature:
Antony Riakiotakis [Thu, 6 Mar 2014 18:04:57 +0000 (20:04 +0200)]
Experimental dyntopo feature:

Dyntopo detail in object space. This allows to set the detail in
percentage of blender units and sculpt in this detail constantly,
regardless of the distance to the mesh.

This commit just enables the functionality, which is really trivial.
There will be some more commits like detail flood fill and
detail sampling in the future.

5 years agoForgo one rect union function, partial rect is inferred from nodes that
Antony Riakiotakis [Thu, 6 Mar 2014 17:54:44 +0000 (19:54 +0200)]
Forgo one rect union function, partial rect is inferred from nodes that
are tagged for update anyway. The important part of the fix was updating
the previous rectangle in the draw function.

5 years agoFinal fix (I hope!) for partial redraw.
Antony Riakiotakis [Thu, 6 Mar 2014 17:26:41 +0000 (19:26 +0200)]
Final fix (I hope!) for partial redraw.

The problem here is that the redraw rectangle can be calculated many
times before actual redraw (for instance due to repetitive calls to the
paint step function for space strokes). Those redraw rectangles need to
be accumulated and finally flushed when the draw call is done.

Also, it is this accumulated rectangle that must account for the
previously drawn rectangle to avoid artifacts due to drawing.

Now all looks like it works correctly :)

5 years agoFix T37867: scroll bar in text editor shows the wrong mouse cursor.
Brecht Van Lommel [Thu, 6 Mar 2014 17:20:59 +0000 (18:20 +0100)]
Fix T37867: scroll bar in text editor shows the wrong mouse cursor.

Patch by chipgw.

5 years agoFix X11 mouse cursor flickering briefly to the standard cursor when changing it.
Brecht Van Lommel [Thu, 6 Mar 2014 17:08:59 +0000 (18:08 +0100)]
Fix X11 mouse cursor flickering briefly to the standard cursor when changing it.

Not very visible now but it matters for the next commit.

5 years agoBetter handling for previous fix: Make sure previous redraw rect stays
Antony Riakiotakis [Thu, 6 Mar 2014 16:18:37 +0000 (18:18 +0200)]
Better handling for previous fix: Make sure previous redraw rect stays
after the stroke so that it can be unioned with current rect correctly
during the draw update. For some reason dyntopo clipping misbehaved
before that.

5 years agoFix T37510 Knife missed cuts on small faces.
Howard Trickey [Thu, 6 Mar 2014 15:55:12 +0000 (10:55 -0500)]
Fix T37510 Knife missed cuts on small faces.

For very thin faces, knife sometimes missed cutting a few.
Problem was that a test for edges being totally inside a face
was being applied in inappropriate circumstances. An assumed
invariant about the knife hit structure is not true when
actually in the middle of making cuts.
Also make a 'big epsilon' a little smaller, though don't think
that was the problem in this bug.

5 years agoFix error in previous commit. Included dubious fix for smooth brush by mistake
Antony Riakiotakis [Thu, 6 Mar 2014 14:37:53 +0000 (16:37 +0200)]
Fix error in previous commit. Included dubious fix for smooth brush by mistake

5 years agoSolve partial redraw issues in sculpting.
Antony Riakiotakis [Thu, 6 Mar 2014 14:30:16 +0000 (16:30 +0200)]
Solve partial redraw issues in sculpting.

* Do union with previous partial redraw before overwriting with self and
store unmodified new rect to avoid rect getting bigger.
* Make rect one pixel wider instead of smaller so edges do not get left
outside. Overall this looks quite better.

5 years agoHiding plane tracks was never implemented
Sergey Sharybin [Thu, 6 Mar 2014 14:07:14 +0000 (20:07 +0600)]
Hiding plane tracks was never implemented

5 years agoFix T38955: Misleading tooltip for Clean Tool in Weight Tools Toolshelf.
Bastien Montagne [Thu, 6 Mar 2014 13:30:44 +0000 (14:30 +0100)]
Fix T38955: Misleading tooltip for Clean Tool in Weight Tools Toolshelf.

5 years agoFix T38987 Dope sheet is inoperable with "view slected" when nothing is selected.
Bastien Montagne [Thu, 6 Mar 2014 13:17:26 +0000 (14:17 +0100)]
Fix T38987 Dope sheet is inoperable with "view slected" when nothing is selected.

Code was unconditionnaly setting view's xmin and xmax, even when it was aborting afterward.

5 years agoFixes for proxies color space
Sergey Sharybin [Thu, 6 Mar 2014 11:27:16 +0000 (17:27 +0600)]
Fixes for proxies color space

Basically proxy colorspace didn't work well enough.

It is still a bit weird and mainly:

- Proxies for image sequences are built in the image color space.

- Proxies for movies are built in the movie color space.

This could be unified but would need some work in proxy build
to make it not just pipe frames from one FFmpeg context to
another but also apply OCIO on it.

5 years agoOSX: adapt codesigning_rules_<binary>r.plist’s to 2.70
Jens Verwiebe [Thu, 6 Mar 2014 09:16:03 +0000 (10:16 +0100)]
OSX: adapt codesigning_rules_<binary>r.plist’s to 2.70

5 years agoFix T38973: GLSL error, when using Cycles Light Path node.
Thomas Dinges [Thu, 6 Mar 2014 08:06:20 +0000 (09:06 +0100)]
Fix T38973: GLSL error, when using Cycles Light Path node.

5 years agoUpdate submdules hashes v2.70-rc
Sergey Sharybin [Wed, 5 Mar 2014 18:37:30 +0000 (00:37 +0600)]
Update submdules hashes

- Addons and locales now points to v2.70-rc tag
- Also updated hashes for addons_contrib and scons
  to make them up-to-date while i'm on updating this
  hashes.

5 years agoBump version to Blender2.70rc and new splash
Campbell Barton [Wed, 5 Mar 2014 17:37:14 +0000 (04:37 +1100)]
Bump version to Blender2.70rc and new splash

Splash concept art & paint-over: David Revoy. 3D artwork by Mathieu Auvray.

5 years agoMove do-versions functions for 2.70
Campbell Barton [Wed, 5 Mar 2014 17:33:15 +0000 (04:33 +1100)]
Move do-versions functions for 2.70

5 years agoDon't show branch name on the splash if it's a release branch
Sergey Sharybin [Wed, 5 Mar 2014 17:10:37 +0000 (23:10 +0600)]
Don't show branch name on the splash if it's a release branch

5 years agoFix T38969: RenderResult in RenderPart can be NULL if multithreaded
Lukas Tönne [Wed, 5 Mar 2014 16:42:48 +0000 (17:42 +0100)]
Fix T38969: RenderResult in RenderPart can be NULL if multithreaded
renders are cancelled early.

5 years agoAlternative fix for T38753, use existing __file__ in namespace
Tamito Kajiyama [Wed, 5 Mar 2014 16:27:14 +0000 (03:27 +1100)]
Alternative fix for T38753, use existing __file__ in namespace

5 years agoFix T38970: Invert weights remove weights option not working
Campbell Barton [Wed, 5 Mar 2014 16:07:31 +0000 (03:07 +1100)]
Fix T38970: Invert weights remove weights option not working

Patch D382 from Henrik Aarnio

5 years agoPrevious linestyle icon was old patch, commit right one this time
Campbell Barton [Wed, 5 Mar 2014 15:38:29 +0000 (02:38 +1100)]
Previous linestyle icon was old patch, commit right one this time

5 years agoFix for invalid custom data checks in armature and lattice functions.
Lukas Tönne [Wed, 5 Mar 2014 14:11:36 +0000 (15:11 +0100)]
Fix for invalid custom data checks in armature and lattice functions.

Testing for custom data availability with getVertData and index 0 fails
on assert for empty meshes (the index must be in valid range). Better
use getVertDataArray which has no requirement for specific index.

5 years agoFix for un-subdivide creating duplicate faces
Campbell Barton [Wed, 5 Mar 2014 14:00:18 +0000 (01:00 +1100)]
Fix for un-subdivide creating duplicate faces

5 years agoFreestyle: Fix for incorrect comparisons of Nature values with integer and boolean...
Tamito Kajiyama [Wed, 5 Mar 2014 12:54:50 +0000 (21:54 +0900)]
Freestyle: Fix for incorrect comparisons of Nature values with integer and boolean values.

The problem is that comparisons involving the constants Nature.POINT (for vertices) and
Nature.NO_FEATURE (for edges) were evaluated in a wrong way.  It is recalled that the
Nature class is a subclass of Python's built-in int type, and that these two constants are zero
when evaluated as numbers.  The issue was caused by the implementation of the constants
in an incompatible way for comparison with Python int (and boolean) values.  Specifically,
the zero of Python int is represented by an empty array of digits, whereas the zero-valued
Nature constants were represented by an array of size 1.  Python int comparison operators
first check the lengths of the arrays of two operands, and then start comparing the digits
only when the array length is the same.  For this reason, the two Nature constants were
not properly compared with int values (and thus with boolean values).  It is noted that the
zero-valued Nature constants may result from bitwise operations on other Nature constants
(e.g., Nature.SILHOUETTE & Nature.BORDER), so this issue must have affected many
existing style modules.

The problem was reported by Folkert de Vries (flokkievids) through personal communications.
Thanks a lot!

5 years agoCode cleanup: remove long unused gamma correction tables
Campbell Barton [Wed, 5 Mar 2014 11:36:38 +0000 (22:36 +1100)]
Code cleanup: remove long unused gamma correction tables

5 years agoFix for negative gamma correction rounding to int
Campbell Barton [Wed, 5 Mar 2014 11:33:47 +0000 (22:33 +1100)]
Fix for negative gamma correction rounding to int

5 years agoFix for potential memory leak in Bullet API: freeing dynamic arrays
Lukas Tönne [Wed, 5 Mar 2014 09:00:46 +0000 (10:00 +0100)]
Fix for potential memory leak in Bullet API: freeing dynamic arrays
should use the delete[] operator instead of the plain pointer delete.

5 years agoAdded back code which was commented out for debug reasons
Sergey Sharybin [Wed, 5 Mar 2014 08:52:00 +0000 (14:52 +0600)]
Added back code which was commented out for debug reasons

Also added a patchset for Carve's memory leak fix.

5 years agoFix T38962: Boolean modifier crashes when only right operand has UV layer
Sergey Sharybin [Wed, 5 Mar 2014 08:29:02 +0000 (14:29 +0600)]
Fix T38962: Boolean modifier crashes when only right operand has UV layer

5 years agoEnable requests for buildbot and release builder
Sergey Sharybin [Wed, 5 Mar 2014 08:00:58 +0000 (14:00 +0600)]
Enable requests for buildbot and release builder

5 years agoOSX/scons: according to last commit, , use the version variable
Jens Verwiebe [Tue, 4 Mar 2014 20:08:23 +0000 (21:08 +0100)]
OSX/scons: according to last commit, , use the version variable

5 years agoEdit to last commit, use the version veriable
Campbell Barton [Tue, 4 Mar 2014 19:45:29 +0000 (06:45 +1100)]
Edit to last commit, use the version veriable

5 years agoBuild system: option to copy 'requests' from scons.
Campbell Barton [Tue, 4 Mar 2014 19:36:50 +0000 (06:36 +1100)]
Build system: option to copy 'requests' from scons.

5 years agoOSX/cmake: copy release/site-packages for OSX ( static py for now )
Jens Verwiebe [Tue, 4 Mar 2014 19:31:07 +0000 (20:31 +0100)]
OSX/cmake: copy release/site-packages for OSX ( static py for now )

5 years agoBuild system: add cmake option to install requests
Campbell Barton [Tue, 4 Mar 2014 18:39:53 +0000 (05:39 +1100)]
Build system: add cmake option to install requests

5 years agoFollow up to the offset scale fix for texture painting: texture mask had
Antony Riakiotakis [Tue, 4 Mar 2014 18:35:39 +0000 (20:35 +0200)]
Follow up to the offset scale fix for texture painting: texture mask had
the same issue.

5 years agoOSX/scons: copy release/site-packages for OSX ( static py for now )
Jens Verwiebe [Tue, 4 Mar 2014 17:41:19 +0000 (18:41 +0100)]
OSX/scons: copy release/site-packages for OSX ( static py for now )

5 years agoBuild system: use lstrip with scons
Campbell Barton [Tue, 4 Mar 2014 17:19:55 +0000 (04:19 +1100)]
Build system: use lstrip with scons

5 years agoBuild system copy release/site-packages for windows
Campbell Barton [Tue, 4 Mar 2014 17:12:21 +0000 (04:12 +1100)]
Build system copy release/site-packages for windows

5 years agoFix simplify brush not supporting autosmooth. There is no reason why
Antony Riakiotakis [Tue, 4 Mar 2014 16:57:30 +0000 (18:57 +0200)]
Fix simplify brush not supporting autosmooth. There is no reason why
this should be so and it's useful to quickly decimate and smooth at the
same time.

5 years agoFix volume scatter render issue introduced by recent bugfix.
Brecht Van Lommel [Tue, 4 Mar 2014 16:17:33 +0000 (17:17 +0100)]
Fix volume scatter render issue introduced by recent bugfix.

5 years agoFix T38945, empty "System Bookmarks" and "Recent" panel were drawn in the File Browse...
Thomas Dinges [Tue, 4 Mar 2014 15:47:07 +0000 (16:47 +0100)]
Fix T38945, empty "System Bookmarks" and "Recent" panel were drawn in the File Browser, although these were disabled in User Preferences.

5 years agoFix compilation error windows
Sergey Sharybin [Tue, 4 Mar 2014 14:36:05 +0000 (20:36 +0600)]
Fix compilation error windows

5 years agoFix T38936 Bevel strange flickering on big meshes.
Howard Trickey [Tue, 4 Mar 2014 14:29:31 +0000 (09:29 -0500)]
Fix T38936 Bevel strange flickering on big meshes.

Last change to bevel had a check for what was supposed
to be an "on edge" new vertex being off the edge.
The test tolerance was too small. This fixes that.

5 years agoFix T38918: Boolean modifier crashes when using specific topology
Sergey Sharybin [Tue, 4 Mar 2014 14:01:58 +0000 (20:01 +0600)]
Fix T38918: Boolean modifier crashes when using specific topology

There were loads of issues in the code still which are mow likely fixed:

- Hole resolver hook had memory leak -- it didn't free face with holes
  when triangulating it.

- Original edge mapping didn't work correct. old code related on the fact
  that loop order is not changing when constructing the MeshSet class, but
  in fact it does change.

  Currently used edge map for this because it was easiest way to do it now,
  but after the release we're to change it. Main reason is that face mapping
  is not correct as well (and it was never correct actually). So we'll need
  to construct Mesh structures by our own to be sure we're using correct
  original index mapping.

- Carve might produce faces with ears, which is forbidden in Blender.
  it wasn't an issue in old integration because triangulation will remove
  the ears. So for now simply added ears removing back as a hook.

  But actual reason of the ears is to be investigated really.

  This hook will only work for NGons, quads are assumed not be able to
  have ears. So this additional hook shouldn't slow down things much.

- Carve's hole resolver produces duplicated faces in some cases. Still not
  sure what is the reason of this. Code here is not so much straightforward,
  this is to be investigated later.

  For now solved the issue as own hole resolver which checks for duplicated
  faces after the hole resolving.

  The additional checks here will only run if the mesh actually have hole
  and wouldn't introduce slowdown for faces which doesn't have holes.

- Made it so if edge user triangulation gets a split (for example, in cases
  when this edge intersects with the second operand) it wouldn't be dissolved.

  This prevents cases of crappy topology after dissolving in several cases.

- Edge dissolver didn't check for whether edge is a non-manifold. We couldn't
  really dissolve open manifold edges.

  The bad thing about this is that mesh triangulation might produce non-manifold
  edges and they wouldn't be dissolved. Not worst case in the world, but would
  be nice to have it solved somehow.

- Exporting mesh form Carve to Blender might have produced duplicated edges
  in cases when several non-manifold faces shared the edge. This is also fixed
  now.

- Mesh triangulation might have produced duplicated faces, which is really bad.
  Fixed by keeping a track on which faces we've created and skipping adding new
  triangle if we already have one.

This all might introduce some slowdown, but we're too close to the release now,
so would rather have it slower but robust. After the release we might look into
ways to speed things up.

5 years agoFix T38944, Fonts too small in Movie Clip Editor on Retina display.
Thomas Dinges [Tue, 4 Mar 2014 13:26:31 +0000 (14:26 +0100)]
Fix T38944, Fonts too small in Movie Clip Editor on Retina display.

Thanks to Sergey for suggesting this fix.

5 years agoBuild system support for numpy on ms-windows
Campbell Barton [Tue, 4 Mar 2014 13:20:11 +0000 (00:20 +1100)]
Build system support for numpy on ms-windows

5 years agoFix F62828. UV stitch code did not handle non manifold edges very well.
Antony Riakiotakis [Tue, 4 Mar 2014 12:36:46 +0000 (14:36 +0200)]
Fix F62828. UV stitch code did not handle non manifold edges very well.
This made loops in linked lists of uvedges from duplicate members
causing a hang. Now check all previous links before adding a new one. It
is not much slower in practice because non-manifolds are not that
frequent.

5 years agoFix for regression noted in T38942: Blender Internal rendering can lead
Lukas Tönne [Tue, 4 Mar 2014 10:22:56 +0000 (11:22 +0100)]
Fix for regression noted in T38942: Blender Internal rendering can lead
to wrong obmats of nested dupli objects.

Restoring obmats after BI nested dupli object rendering has to happen
in reverse order, so higher level omats are applied last.

5 years agoFix T38941: Laplacian Deform crashes on OSX
Bastien Montagne [Tue, 4 Mar 2014 08:09:38 +0000 (09:09 +0100)]
Fix T38941: Laplacian Deform crashes on OSX

When vgroup was invalid somehow (e.g. empty, as in this case) and bind could not happen, code was dereferencing a NULL pointer...

5 years agoScons: remove lcms reference
Campbell Barton [Tue, 4 Mar 2014 01:42:17 +0000 (12:42 +1100)]
Scons: remove lcms reference

5 years agoIcon for LineStyle
Campbell Barton [Mon, 3 Mar 2014 16:47:58 +0000 (03:47 +1100)]
Icon for LineStyle

patch T37008 from Michael P.

5 years agoFix T36496: unwanted behavior with NLA strip blend mode Replace.
Brecht Van Lommel [Mon, 3 Mar 2014 15:34:10 +0000 (16:34 +0100)]
Fix T36496: unwanted behavior with NLA strip blend mode Replace.

If you have two overlapping NLA strips it automatically blends between them.
However it was also blending between the first strip and the rest pose
(e.g. 0,0,0 for locations and 1,1,1 for scale).

This is ok if the blend mode is Add or Multiply since then you are adding onto
the rest pose, but for Replace you want to be able to mix between two poses
and not take the rest pose into account at all.

What this does is that to not do any blending for the first strip if it has
blend mode Replace. If someone wants the old behavior (from bugfix commit
27d792fa9ca1) they can still make an action with the rest pose and use that
as the first strip.

5 years agoFix for bmesh triangulate creating duplicate edges
Campbell Barton [Mon, 3 Mar 2014 15:07:23 +0000 (02:07 +1100)]
Fix for bmesh triangulate creating duplicate edges

5 years agoDebug function to check valid bmesh now detects duplicate edges
Campbell Barton [Mon, 3 Mar 2014 14:48:16 +0000 (01:48 +1100)]
Debug function to check valid bmesh now detects duplicate edges

5 years agoUI: "Option" panel in 'Particle Edit' mode was appearing in Tools and GP tab, now...
Thomas Dinges [Mon, 3 Mar 2014 09:37:27 +0000 (10:37 +0100)]
UI: "Option" panel in 'Particle Edit' mode was appearing in Tools and GP tab, now only show in Tools.

Patch by Kévin Dietrich.

Reviewed by: dingto
Differential Revision: https://developer.blender.org/D378

5 years agoUI: Splash text for 'a' releases and the upcoming 'Release Candidate'
Campbell Barton [Mon, 3 Mar 2014 06:29:03 +0000 (17:29 +1100)]
UI: Splash text for 'a' releases and the upcoming 'Release Candidate'

This avoids re-uploading splashes for minor version changes.

Enabling now so any glitches can be found before we do the real rc.

5 years agoFixes for view3d rotate axis snapping
Campbell Barton [Mon, 3 Mar 2014 03:58:07 +0000 (14:58 +1100)]
Fixes for view3d rotate axis snapping

- turntable would lockup when snapping, not allowing further rotation.
- userpref rotate-about-selection was ignored (causing strange panning)

5 years agoFix issue with texture painting: Tex slot scale was being applied twice.
Antony Riakiotakis [Sun, 2 Mar 2014 17:40:39 +0000 (19:40 +0200)]
Fix issue with texture painting: Tex slot scale was being applied twice.

5 years agoFix for own mistake: arc diff swallowed a commit somehow, breaking
Lukas Tönne [Sun, 2 Mar 2014 16:04:24 +0000 (17:04 +0100)]
Fix for own mistake: arc diff swallowed a commit somehow, breaking
compilation.

5 years agoSwitch Dyntopo enable back to Ctrl-D.
Antony Riakiotakis [Sun, 2 Mar 2014 15:21:41 +0000 (17:21 +0200)]
Switch Dyntopo enable back to Ctrl-D.

Grease pencil straight line can still be enabled by first pressing D
then Ctrl and looks like there is no final consensus on key shortcut.
Better leave this as before and solve after release.

5 years agoFix T37334: Better "internal links" function for muting and node disconnect.
Lukas Tönne [Sun, 2 Mar 2014 15:04:25 +0000 (16:04 +0100)]
Fix T37334: Better "internal links" function for muting and node disconnect.

Implements a more flexible internal connect function for standard nodes
(compositor, shader, texture). Allow feasible datatype connections by
priority.

The priorities for common datatypes in compositor, shader and texture
nodes are encoded in a simple function. Certain impossible connections
(e.g. color -> cycles shader) are excluded by giving them -1 priority.

Priority overrides link status: If a higher priority input can be found,
this will be used regardless of link status. Link status only comes into
play for inputs with same priority.

Reviewers: brecht

CC: sebastian_k
Differential Revision: https://developer.blender.org/D356

5 years agoFix for problem with fly speed, caused by other speed tweaks.
Campbell Barton [Sun, 2 Mar 2014 14:08:55 +0000 (01:08 +1100)]
Fix for problem with fly speed, caused by other speed tweaks.

5 years agoFound another place where nproc can be used
Lawrence D'Oliveiro [Sun, 2 Mar 2014 09:28:42 +0000 (10:28 +0100)]
Found another place where nproc can be used

/proc/cpuinfo is a Linux-specific thing. Using GNU [[ http://www.gnu.org/software/coreutils/manual/html_node/nproc-invocation.html | nproc ]] should be more portable.

Reviewers: mont29

Reviewed By: mont29

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

5 years agoCycles: remove ccl_align macro for GPU as unused and unsupported in OpenCL
Sv. Lockal [Sun, 2 Mar 2014 08:44:52 +0000 (12:44 +0400)]
Cycles: remove ccl_align macro for GPU as unused and unsupported in OpenCL

5 years agoFix for collapse ignoring pinned panels
Campbell Barton [Sun, 2 Mar 2014 01:15:09 +0000 (12:15 +1100)]
Fix for collapse ignoring pinned panels

5 years agoFix T38873: Crashing on undo of ocean modifier.
Bastien Montagne [Sat, 1 Mar 2014 19:46:58 +0000 (20:46 +0100)]
Fix T38873: Crashing on undo of ocean modifier.

Issue of this bug is that most part of fftw is not thread safe, only compute-intensive fftw_execute & co are.

Since smoke was affected by this issue as well, a global fftw mutex was added to BLI_threads.
Audaspace also uses fftw in one of its readers (AUD_BandPassReader.cpp),
but this is not an issue currently since this code is disabled in CMake/scons files.

There was another threading issue with smoke, we need to copy dm used by emit_from_derivedmesh(),
as it is modified by this func.

Reviewers: sergey, brecht

Reviewed By: brecht

CC: brecht
Differential Revision: https://developer.blender.org/D374

5 years agoFix T38900: cycles OSL crash running getmessage("trace", "geom:name", name)
Brecht Van Lommel [Sat, 1 Mar 2014 13:57:25 +0000 (14:57 +0100)]
Fix T38900: cycles OSL crash running getmessage("trace", "geom:name", name)

5 years agoNDOF: add navigation modes to user preferences
Campbell Barton [Sat, 1 Mar 2014 10:47:46 +0000 (21:47 +1100)]
NDOF: add navigation modes to user preferences

also comment debug prints for raytracing

5 years agoFix for using non camera objects as a camera having zero area view-frame
Campbell Barton [Sat, 1 Mar 2014 10:41:07 +0000 (21:41 +1100)]
Fix for using non camera objects as a camera having zero area view-frame

5 years agoFix for some unlikely memory leaks, remove redundant checks
Campbell Barton [Sat, 1 Mar 2014 09:14:20 +0000 (20:14 +1100)]
Fix for some unlikely memory leaks, remove redundant checks

5 years agoResolve T38899: changes to Ctrl+Selectmouse conflict with LMB select
Campbell Barton [Sat, 1 Mar 2014 08:26:55 +0000 (19:26 +1100)]
Resolve T38899: changes to Ctrl+Selectmouse conflict with LMB select

5 years agoFix for memory leak in particle brush
Campbell Barton [Sat, 1 Mar 2014 05:25:37 +0000 (16:25 +1100)]
Fix for memory leak in particle brush

5 years agoFix Snap to Symmetry failing to select the vertex from the right side
Campbell Barton [Sat, 1 Mar 2014 04:40:20 +0000 (15:40 +1100)]
Fix Snap to Symmetry failing to select the vertex from the right side

5 years agoFix for own error with updating view2d for NDOF
Campbell Barton [Sat, 1 Mar 2014 04:28:51 +0000 (15:28 +1100)]
Fix for own error with updating view2d for NDOF

5 years agoCode cleanup: correct abs use and quiet warnings
Campbell Barton [Sat, 1 Mar 2014 03:20:54 +0000 (14:20 +1100)]
Code cleanup: correct abs use and quiet warnings

5 years agoFix for baked FCurve subframe interpolation (bad abs use)
Campbell Barton [Sat, 1 Mar 2014 03:12:11 +0000 (14:12 +1100)]
Fix for baked FCurve subframe interpolation (bad abs use)

5 years agoFix for sequencer invalid rounding, double wipe at 0 angle
Campbell Barton [Sat, 1 Mar 2014 02:39:36 +0000 (13:39 +1100)]
Fix for sequencer invalid rounding, double wipe at 0 angle

5 years agoFCurve Transform: scaling no longer changes hansle types
Campbell Barton [Sat, 1 Mar 2014 02:06:07 +0000 (13:06 +1100)]
FCurve Transform: scaling no longer changes hansle types

This matches 3d view and means you can change the amplitude of a curve
while keeping auto-clamped handles.

5 years agoCode cleanup: comment unused code in calchandleNurb_intern
Campbell Barton [Sat, 1 Mar 2014 01:57:15 +0000 (12:57 +1100)]
Code cleanup: comment unused code in calchandleNurb_intern

Also remove outdated comments.

5 years agoReadme: Small adjustment for IRC link.
Thomas Dinges [Sat, 1 Mar 2014 00:25:46 +0000 (01:25 +0100)]
Readme: Small adjustment for IRC link.

5 years agoCleanup: Fix some typos in the code.
Thomas Dinges [Sat, 1 Mar 2014 00:21:25 +0000 (01:21 +0100)]
Cleanup: Fix some typos in the code.

5 years agoPartial fix for T38871, Bevel could create a far-out spike.
Howard Trickey [Fri, 28 Feb 2014 16:05:53 +0000 (11:05 -0500)]
Partial fix for T38871, Bevel could create a far-out spike.

There needed to be a check that when a newly created point is
supposed to be on an edge, that it stays within the bounds
of either end of the edge.
This fixes the hole-in-cube example in the bug, but not
the boolean modifier one, which still needs more work.

5 years agoFix T38887: error in (still unused) freestyle math function implementation.
Brecht Van Lommel [Fri, 28 Feb 2014 17:15:24 +0000 (18:15 +0100)]
Fix T38887: error in (still unused) freestyle math function implementation.

5 years agoFix T38885: missing image editor paint brush updates after recent UI changes.
Brecht Van Lommel [Fri, 28 Feb 2014 17:12:05 +0000 (18:12 +0100)]
Fix T38885: missing image editor paint brush updates after recent UI changes.

5 years agoFix T38881: cloth preset rubber not working with "translated data names" i18n option
Bastien Montagne [Fri, 28 Feb 2014 16:28:01 +0000 (17:28 +0100)]
Fix T38881: cloth preset rubber not working with "translated data names" i18n option

Actually, was broken for any custom modifier name, since it was explicitly using 'Cloth' one. Changed to mimic other cloth pressets (wonder why this one was different!).

5 years agoFix for transform setting T_CAMERA
Campbell Barton [Fri, 28 Feb 2014 14:21:25 +0000 (01:21 +1100)]
Fix for transform setting T_CAMERA

This was only set when the camera was active, however non active cameras
can be transformed too.

5 years agoUpdate patch for mesh_simplifier
Sergey Sharybin [Fri, 28 Feb 2014 13:09:22 +0000 (19:09 +0600)]
Update patch for mesh_simplifier

5 years agoProper solution for crash of GP when marker is not exist on current frame
Sergey Sharybin [Fri, 28 Feb 2014 13:05:09 +0000 (19:05 +0600)]
Proper solution for crash of GP when marker is not exist on current frame

5 years agoFix for crash copying from non RNA color buttons
Campbell Barton [Fri, 28 Feb 2014 12:45:31 +0000 (23:45 +1100)]
Fix for crash copying from non RNA color buttons

5 years agoNDOF: minor tweaks based on feedback.
Campbell Barton [Fri, 28 Feb 2014 11:07:53 +0000 (22:07 +1100)]
NDOF: minor tweaks based on feedback.

- invert Y axis when swap YZ is enabled.
- allow rotating when not in ortho mode.

5 years agoCrazyspace: calculate normal around a (0,0,0)
Campbell Barton [Fri, 28 Feb 2014 10:23:06 +0000 (21:23 +1100)]
Crazyspace: calculate normal around a (0,0,0)

instead of creating a new triangle in the models space and using that.

5 years agoFix Crazyspace with proportional editing
Campbell Barton [Fri, 28 Feb 2014 10:10:32 +0000 (21:10 +1100)]
Fix Crazyspace with proportional editing

5 years agoPyAPI: correct warning with dynamic enums
Campbell Barton [Fri, 28 Feb 2014 09:35:47 +0000 (20:35 +1100)]
PyAPI: correct warning with dynamic enums