7 years agoChecked each of my (jwilkins) XXX notes.
Jason Wilkins [Thu, 23 Oct 2014 01:03:25 +0000 (20:03 -0500)]
Checked each of my (jwilkins) XXX notes.

The ones in extern/glew-es have been changed to NOTE instead of XXX

GHOST_ContextEGL.cpp: It really does seem that it is not possible to query the swap interval using EGL

GHOST_WidnowCocoa.h: The comment referring to Carbon is clearly out of date, so I removed it.

math_geom.c: The node about not using tmax again is correct, but the code is kept for a future maintainer who will need to know how to compute it if they modify that code.

paint_image_proj.c (2698): The question about integer truncation does not appear to have been resolved.  It still seems to be an incorrectly implementation of rounding (I'd suggest using the round function instead of this hack).

7 years agoFix T42352.
Jonathan Williamson [Wed, 22 Oct 2014 21:25:31 +0000 (23:25 +0200)]
Fix T42352.

Add Recalcuate Normals to the Faces menu, next to other shading options.

Differential revision:
Signed-off-by: Thomas Dinges
7 years agoUsual UI messages fixes.
Bastien Montagne [Wed, 22 Oct 2014 20:26:45 +0000 (22:26 +0200)]
Usual UI messages fixes.

7 years agoOSX: as we cannot be sure to have ARC, better release allocated notification
Jens Verwiebe [Wed, 22 Oct 2014 18:17:04 +0000 (20:17 +0200)]
OSX: as we cannot be sure to have ARC, better release allocated notification

7 years agoOSX/GHOST: use notifications to inform user about a progress reached 100%
Jens Verwiebe [Wed, 22 Oct 2014 17:59:00 +0000 (19:59 +0200)]
OSX/GHOST: use notifications to inform user about a progress reached 100%
The occurance can be controlled in NotificationCenter, todo: move to own function ?

7 years agoRevert "Cycles: Implement Mitchell-Netravali pixel filter"
Sergey Sharybin [Wed, 22 Oct 2014 16:52:04 +0000 (22:52 +0600)]
Revert "Cycles: Implement Mitchell-Netravali pixel filter"

As it appears we can't really use mitchell filter together with the
current filter importance sampling,

This reverts commit 742911314322e5dae3a07469d0ca53b61427f978.

7 years agoCycles: Implement Mitchell-Netravali pixel filter
Sergey Sharybin [Wed, 22 Oct 2014 16:08:17 +0000 (18:08 +0200)]
Cycles: Implement Mitchell-Netravali pixel filter

It's the same filter which is used by default by Blender Internal renderer
and it gives crispier edges than gaussian filter.

Default filter for Cycles is unchanged because it's unclear if new filter
gives more noise or not. After some further real production tests we can
consider making Mitchell filter default for Cycles as well.

7 years agoCycles: Code cleanup -- use bitshifts instead of hardcoded constants
Sergey Sharybin [Wed, 22 Oct 2014 14:51:40 +0000 (20:51 +0600)]
Cycles: Code cleanup -- use bitshifts instead of hardcoded constants

This way it's easier to extend bitfields and see when we start running
out of free bits.

Plus added brief description of what SD_VOLUME_CUBIC flag means.

7 years agoCycles: Get rid of hardcoded enum values in the code
Sergey Sharybin [Wed, 22 Oct 2014 14:17:03 +0000 (16:17 +0200)]
Cycles: Get rid of hardcoded enum values in the code

Still need to keep enum definition in sync with the python code,
but the code itself is a bit more clear to understand now.

7 years agoCycles: Expose volume voxel data interpolation to the interface
Sergey Sharybin [Wed, 22 Oct 2014 13:23:45 +0000 (19:23 +0600)]
Cycles: Expose volume voxel data interpolation to the interface

It is per-material setting which could be found under the Volume settings
in the material and world context buttons.

There could still be some code-wise improvements, like using variable-size
macro for interp3d instead of having interp3d_ex to which you can pass the
interpolation method.

7 years agoCycles: Implement tricubic b-spline interpolation for CPU texture_image
Sergey Sharybin [Wed, 22 Oct 2014 11:43:33 +0000 (17:43 +0600)]
Cycles: Implement tricubic b-spline interpolation for CPU texture_image

This is the first step towards supporting cubic interpolation for voxel
data (such as smoke and fire). It is not epxosed to the interface at all
yet, this is to be done soon after this change.

7 years agoMeshdeform: Use SSE intrinsics in meshdeform_dynamic_bind()
Sergey Sharybin [Tue, 21 Oct 2014 09:37:29 +0000 (11:37 +0200)]
Meshdeform: Use SSE intrinsics in meshdeform_dynamic_bind()

Quite straightforward change, don't think some extra explanation is needed.

This gives about 15% speedup of the modifier evaluation on my laptop.

Reviewers: campbellbarton

Differential Revision:

7 years agoMeshdeform modifier: Use threaded evaluation
Sergey Sharybin [Wed, 22 Oct 2014 09:56:52 +0000 (11:56 +0200)]
Meshdeform modifier: Use threaded evaluation

This commit switches meshdeform modifier to use threads to evaluate
the vertices positions using the central task scheduler.

SO now we've got an utility function to help splitting the for loop
into tasks using BLI_task module which is pretty straightforward to
use: it gets range (which is an integer lower and higher bounds) and
the function and userdata to be invoked for each of the iterations.

The only weak point for now is the passing the data to the callback,
this isn't so trivial to improve in pure C.

Reviewers: campbellbarton

Differential Revision:

7 years agoOSX: fix T42325 by not letting .vob handled by qt, avoids a doublefree
Jens Verwiebe [Wed, 22 Oct 2014 09:59:54 +0000 (11:59 +0200)]
OSX: fix T42325 by not letting .vob handled by qt, avoids a doublefree

7 years agoCleanup: avoid loop-in-loop when mirror isn't used
Campbell Barton [Wed, 22 Oct 2014 09:53:10 +0000 (11:53 +0200)]
Cleanup: avoid loop-in-loop when mirror isn't used

Also name 'children' is normally used for a list

7 years agoFix T42334: x-mirror fails in armature with a partially mirrored chain.
Lukas Tönne [Wed, 22 Oct 2014 09:11:52 +0000 (11:11 +0200)]
Fix T42334: x-mirror fails in armature with a partially mirrored chain.

When resetting edit bones on cancel, they also have to reset connected
parent and child bone tips and heads respectively, since these can be
modified during the transform.

7 years agoCleanup: style
Campbell Barton [Tue, 21 Oct 2014 17:02:05 +0000 (19:02 +0200)]
Cleanup: style

7 years agoLinux/scons: fix compile, BF_BOOST_LIB_STATIC string was miising a space
Jens Verwiebe [Tue, 21 Oct 2014 16:47:52 +0000 (18:47 +0200)]
Linux/scons: fix compile, BF_BOOST_LIB_STATIC string was miising a space

7 years agoFix T42260: By repeatedly joining meshes, you could end up with thousands of UVLayers
Bastien Montagne [Tue, 21 Oct 2014 15:01:56 +0000 (17:01 +0200)]
Fix T42260: By repeatedly joining meshes, you could end up with thousands of UVLayers

This is only an indirect fix, in fact: this commit adds a public API to check
the maximum number of a given layer type (`CustomData_layertype_layers_max()`),
and uses it to forbid too much layer creation in `CustomData_merge()`.

This only affects UVs/VCol data though, but merge behavior in itself is not a bug
actually, how user managed to get thousands of different UV layer names remain
rather mysterious...

7 years agoFix T42278: Grease Pencil in Movie Clip Editor can not be erased in Track > Cursor...
Sergey Sharybin [Tue, 21 Oct 2014 14:09:25 +0000 (16:09 +0200)]
Fix T42278: Grease Pencil in Movie Clip Editor can not be erased in Track > Cursor mode

Eraser was not aware of possible transform matrix for the strokes.

7 years agoFix T42324: Curve deform modifier from mesh edge doesnt work properly
Sergey Sharybin [Tue, 21 Oct 2014 13:16:29 +0000 (19:16 +0600)]
Fix T42324: Curve deform modifier from mesh edge doesnt work properly

Curve parent requires valid path to exist for curve. If the path is disabled in
the curve settings, displist evaluation will check the dependency graph whether
the path is needed for parenting.

The issue was that changing relations in the scene chagned need of the curve path
but nothing tagged the curve to update it's path.

For now use direct call of DAG_id_tag_update from set_parent(). In the bright
future we might detect such a need in flush automatically in the depsgraph.

7 years agoSimplify GLSL in bump mapping, use gl_NormalMatrix where appropriate.
Antony Riakiotakis [Tue, 21 Oct 2014 13:00:12 +0000 (15:00 +0200)]
Simplify GLSL in bump mapping, use gl_NormalMatrix where appropriate.
tangents are directions and should be transformed like directions.

7 years agoFix T42257: Curve vertex parent not working with animation
Sergey Sharybin [Tue, 21 Oct 2014 12:44:08 +0000 (14:44 +0200)]
Fix T42257: Curve vertex parent not working with animation

Vertex parent was using original non-modified nurbs list, simply because
it didn't have something else to operate with.

Now we've got deformed by pre-tessellation modifiers nurbs in the curve
cache which might be used y the vertex parent.

7 years agoFix T42178: Cycles Film Exposure not triggering Viewport update
Sergey Sharybin [Tue, 21 Oct 2014 12:08:05 +0000 (14:08 +0200)]
Fix T42178: Cycles Film Exposure not triggering Viewport update

7 years agoListBase: use BLI_listbase_ for new api calls
Campbell Barton [Tue, 21 Oct 2014 12:06:16 +0000 (14:06 +0200)]
ListBase: use BLI_listbase_ for new api calls

7 years agoFix tgz script, addons_contrib was in release
Campbell Barton [Tue, 21 Oct 2014 11:57:03 +0000 (13:57 +0200)]
Fix tgz script, addons_contrib was in release

7 years agoShapeKeys: rework 'move skey' code, and add options to move to first/last position.
Bastien Montagne [Tue, 21 Oct 2014 09:59:14 +0000 (11:59 +0200)]
ShapeKeys: rework 'move skey' code, and add options to move to first/last position.

Main moving logic is moved to new `BKE_keyblock_move()`, which makes it available from anywhere.
In addition, move code was reworked so that it only loops once on whole keyblocks list,
and it accepts arbitrary org and dest indices, not only neighbor ones.

Partly based on work by revzin (Grigory Revzin) in his soc-2014-shapekey GSoC branch, thanks!

7 years agoBLI_listbase: add `BLI_swaplinks` which swaps given links' positions in given list.
Bastien Montagne [Tue, 21 Oct 2014 09:56:46 +0000 (11:56 +0200)]
BLI_listbase: add `BLI_swaplinks` which swaps given links' positions in given list.

Can be much simpler and quicker than using remlink/insert functions.

7 years agoUI Icons: add 'triangle-bar' left/right/up/down icons.
Bastien Montagne [Tue, 21 Oct 2014 09:55:36 +0000 (11:55 +0200)]
UI Icons: add 'triangle-bar' left/right/up/down icons.

7 years agoFix sequencer clipboard with meta's containing ID references
Campbell Barton [Tue, 21 Oct 2014 09:36:11 +0000 (11:36 +0200)]
Fix sequencer clipboard with meta's containing ID references

7 years agoFix sequencer duplicate with only handle selected
Campbell Barton [Tue, 21 Oct 2014 09:10:45 +0000 (11:10 +0200)]
Fix sequencer duplicate with only handle selected

7 years agoFix T42326 trim operator not cancelled by the escape key.
Antony Riakiotakis [Tue, 21 Oct 2014 09:03:46 +0000 (11:03 +0200)]
Fix T42326 trim operator not cancelled by the escape key.

7 years agoDon't change global compiler flags when FFmpeg is enabled
Sergey Sharybin [Mon, 20 Oct 2014 21:21:09 +0000 (03:21 +0600)]
Don't change global compiler flags when FFmpeg is enabled

It should no be longer needed. If it causes the issues please let me know
to find a more cleaner solution.

7 years agoFix T42311, too many paint slots added.
Antony Riakiotakis [Mon, 20 Oct 2014 18:08:22 +0000 (20:08 +0200)]
Fix T42311, too many paint slots added.

Don't allow the add paint slot operator to redo. Also guard better against
excessive slot addition

7 years agoTrim tool:
Antony Riakiotakis [Mon, 20 Oct 2014 16:51:46 +0000 (18:51 +0200)]
Trim tool:

Effects strips in metastrips could be erratic.

7 years agoBetter fix for previous trim fix.
Antony Riakiotakis [Mon, 20 Oct 2014 16:29:16 +0000 (18:29 +0200)]
Better fix for previous trim fix.

7 years agoFix T42313: Ruler always measures 0.0
Campbell Barton [Mon, 20 Oct 2014 15:06:49 +0000 (17:06 +0200)]
Fix T42313: Ruler always measures 0.0

Passing 'ar' to snapObjectsRayEx would apply a ray-offset.

7 years agoFix trim tools metastrip borders not getting updated correctly.
Antony Riakiotakis [Mon, 20 Oct 2014 15:37:13 +0000 (17:37 +0200)]
Fix trim tools metastrip borders not getting updated correctly.

7 years agoMerge trim tool from terrible_consequencer
Antony Riakiotakis [Mon, 20 Oct 2014 13:40:06 +0000 (15:40 +0200)]
Merge trim tool from terrible_consequencer

The trim tool (T key) allows users to change the position of the
contents of a strip without moving the strip itself.

7 years agoOptimization for mesh deform: use BLI_INLINE specifiers
Sergey Sharybin [Mon, 20 Oct 2014 10:40:41 +0000 (16:40 +0600)]
Optimization for mesh deform: use BLI_INLINE specifiers

This helps compiler to do detect stuff which might be inlined,
gives around 30% speedup on my laptop with test files from ZanQdo.

7 years agoFix T42189
Antony Riakiotakis [Mon, 20 Oct 2014 10:35:35 +0000 (12:35 +0200)]
Fix T42189

Own mistake - not copying enough data.

7 years agoFix T42264: Negative scale & clipped-select fails
Campbell Barton [Mon, 20 Oct 2014 09:14:02 +0000 (11:14 +0200)]
Fix T42264: Negative scale & clipped-select fails

Thanks to mont29 for finding the cause.

7 years agoFix T42304: blender 2.72a 3D view object selected color wrong in 2.4x theme.
Bastien Montagne [Sun, 19 Oct 2014 18:50:13 +0000 (20:50 +0200)]
Fix T42304: blender 2.72a 3D view object selected color wrong in 2.4x theme.

I would not have endured such a critical and monstruous bug one more femtosecond!

And even worse - active color was awfully wrong too! Shocking!

7 years agoFix T42303 Icons lost after loading window
Antony Riakiotakis [Sun, 19 Oct 2014 18:50:43 +0000 (20:50 +0200)]
Fix T42303 Icons lost after loading window

The issue here is that if no matching winid is found, we destroy all
windows and their context with them. This will also delete the OpenGL
textures associated with the initial context, thus we lose the icons.
This patch makes sure a window is always kept for later so the initial
context does not get lost.

Thanks to Campbell and Ton for the discussion on the issue.

7 years agoFix typo in calculateCenterMedian that could give computed median point wrong values.
Grigory Revzin [Sun, 19 Oct 2014 18:13:05 +0000 (20:13 +0200)]
Fix typo in calculateCenterMedian that could give computed median point wrong values.

From soc-2014-shapekey branch, with minor edits by mont29 (Bastien Montagne).

7 years agoRevert "Freestyle: Built-in SVG exporter."
Campbell Barton [Sun, 19 Oct 2014 17:10:06 +0000 (19:10 +0200)]
Revert "Freestyle: Built-in SVG exporter."

This reverts commit 61a330baca0ff9bb3cf477c04f539ef276a0356f.

This completes reverting D785

This feature is to be reworked into an addon.

7 years agoRevert "Fix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8."
Campbell Barton [Sun, 19 Oct 2014 17:09:58 +0000 (19:09 +0200)]
Revert "Fix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8."

This reverts commit 490f2aeb8247463a7ea1a86a3a8c4246fcf45f23.

7 years agoRevert "Freestyle: rename module to export_svg"
Campbell Barton [Sun, 19 Oct 2014 17:09:49 +0000 (19:09 +0200)]
Revert "Freestyle: rename module to export_svg"

This reverts commit db249b787fe0875944e00df1a3d12a58d9a07249.

7 years agoRevert "Freestyle: add GPL headers"
Campbell Barton [Sun, 19 Oct 2014 17:09:41 +0000 (19:09 +0200)]
Revert "Freestyle: add GPL headers"

This reverts commit 3cbb066b838b4d52673f3fd76c2f695a3491b8b6.

7 years agoRevert "Cleanup: pep8"
Campbell Barton [Sun, 19 Oct 2014 17:09:33 +0000 (19:09 +0200)]
Revert "Cleanup: pep8"

This reverts commit 06cdc35a68d9a0bd2a84fd92bda2be11318d46ff.

7 years agoRevert "Cleanup: unused import"
Campbell Barton [Sun, 19 Oct 2014 17:09:26 +0000 (19:09 +0200)]
Revert "Cleanup: unused import"

This reverts commit fc7752b53c793a6985525d4c099108a97cd7867e.

7 years agoRevert "Freestyle: lazy load 'export_svg'"
Campbell Barton [Sun, 19 Oct 2014 17:09:18 +0000 (19:09 +0200)]
Revert "Freestyle: lazy load 'export_svg'"

This reverts commit c35a649a0a6c3c07bb8d56caba680887f726b9e9.

7 years agoReports: include parent library in readfile report
Campbell Barton [Sun, 19 Oct 2014 10:49:01 +0000 (12:49 +0200)]
Reports: include parent library in readfile report

Helps troubleshooting indirect links.

7 years agoFreestyle: lazy load 'export_svg'
Campbell Barton [Sat, 18 Oct 2014 15:46:09 +0000 (17:46 +0200)]
Freestyle: lazy load 'export_svg'

Loading XML module, registering etree namespaces... etc
on startup for everyone on chance someone may want to export
an SVG from Freestyle is unacceptable.

This shouldn't have got through the review.

also disable loading when built without freestyle.

7 years agoCleanup: unused import
Campbell Barton [Sat, 18 Oct 2014 15:32:05 +0000 (17:32 +0200)]
Cleanup: unused import

7 years agoCleanup: pep8
Campbell Barton [Sat, 18 Oct 2014 15:30:46 +0000 (17:30 +0200)]
Cleanup: pep8

7 years agoFreestyle: add GPL headers
Campbell Barton [Sat, 18 Oct 2014 15:28:24 +0000 (17:28 +0200)]
Freestyle: add GPL headers

7 years agoFreestyle: rename module to export_svg
Campbell Barton [Sat, 18 Oct 2014 15:02:38 +0000 (17:02 +0200)]
Freestyle: rename module to export_svg

Convention for existing export modules

7 years agoFix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8.
Tamito Kajiyama [Sat, 18 Oct 2014 14:41:19 +0000 (23:41 +0900)]
Fix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8.

7 years agoFix T42281, crash in subsurf with texture painting.
Antony Riakiotakis [Sat, 18 Oct 2014 11:17:45 +0000 (13:17 +0200)]
Fix T42281, crash in subsurf with texture painting.

7 years agoFreestyle: Built-in SVG exporter.
Tamito Kajiyama [Sat, 18 Oct 2014 09:35:29 +0000 (18:35 +0900)]
Freestyle: Built-in SVG exporter.

* Both still image and animation rendering, as well as polygon
  fills are supported.
* The exporter creates a new SVG layer for every Freestyle line
  set. The different layers are correctly sorted.
* SVG paths use data from line styles, so the base color of a
  line style becomes the color of paths, idem for dashes and
  stroke thickness.
* Strokes can be split at invisible parts.  This functionality is
  useful when exporting for instance dashed lines or line styles
  with a Blue Print shader
* The exporter can be used not only in the Parameter Editor mode,
  but also from within style modules written for the Python
  Scripting mode.

The author would like to thank Francesco Fantoni and Jarno
Leppänen for their [[ | Freestyle SVG exporter ]].

Differential revision:

Author: flokkievids (Folkert de Vries)

Reviewed by: kjym3 (Tamito Kajiyama)

7 years agoOSX/PLAYER/cmake: fix player install python bundling, overlloked player has its own...
Jens Verwiebe [Fri, 17 Oct 2014 20:16:53 +0000 (22:16 +0200)]
OSX/PLAYER/cmake: fix player install python bundling, overlloked player has its own PLAYER_TARGETDIR_VER

7 years agoFix for align bone to cursor (missing normalize)
Campbell Barton [Fri, 17 Oct 2014 20:11:14 +0000 (22:11 +0200)]
Fix for align bone to cursor (missing normalize)

7 years agoCleanup, since we don't put Cycles compat into regular bl_ui files. ;)
Bastien Montagne [Fri, 17 Oct 2014 19:07:21 +0000 (21:07 +0200)]
Cleanup, since we don't put Cycles compat into regular bl_ui files. ;)

7 years agoFix python module (bpy) compilation - broken since 8d084e8c
Dalai Felinto [Fri, 17 Oct 2014 14:39:14 +0000 (11:39 -0300)]
Fix python module (bpy) compilation - broken since 8d084e8c

(reported on bf-python mailing-list and in my github (!), let's hope in
the future we get more reports in instead ;))

7 years agoFix for pose bones not restoring selection index properly
Sergey Sharybin [Fri, 17 Oct 2014 14:48:09 +0000 (16:48 +0200)]
Fix for pose bones not restoring selection index properly

7 years agoMore fixes:
Antony Riakiotakis [Fri, 17 Oct 2014 12:25:50 +0000 (14:25 +0200)]
More fixes:

* Fill brush did not do proper srgb conversion for byte images (reported
by Sebastian Koenig, thanks!)
* Color sampling for palettes did not refresh the toolbar.

7 years agoFix issue reported by Sebastian Koenig on irc, Clone brush would paint
Antony Riakiotakis [Fri, 17 Oct 2014 12:11:13 +0000 (14:11 +0200)]
Fix issue reported by Sebastian Koenig on irc, Clone brush would paint
trash with float images.

Issue is uninitialized alpha in the clone brush + a clamping issue for
float images. There's still some 'swimming' and brightness issue here
but I have to do work for the weekly, will investigate further later.

7 years agoFix typo
Antony Riakiotakis [Fri, 17 Oct 2014 10:37:40 +0000 (12:37 +0200)]
Fix typo

7 years agoCycles: Fix for possibly uninitialized variable
Sergey Sharybin [Fri, 17 Oct 2014 08:56:36 +0000 (10:56 +0200)]
Cycles: Fix for possibly uninitialized variable

That's rather harmless in the master, just could cause some issues with the patches.

7 years agoSmall fix for own commit, added new theme color defines but forgot to
Lukas Tönne [Fri, 17 Oct 2014 08:18:40 +0000 (10:18 +0200)]
Small fix for own commit, added new theme color defines but forgot to
actually use them, thanks to Kevin Dietrich for noticing.

7 years agoUI: disable area emboss when it's maximized
Campbell Barton [Thu, 16 Oct 2014 22:12:31 +0000 (00:12 +0200)]
UI: disable area emboss when it's maximized

7 years agoSequencer: jump now takes end-points into account
Campbell Barton [Thu, 16 Oct 2014 21:17:20 +0000 (23:17 +0200)]
Sequencer: jump now takes end-points into account

Useful because it's effectively the start-point for any strip which is obscured.

7 years agoDifferent fix for T42262, we don't put Cycles compat into regular bl_ui files.
Thomas Dinges [Thu, 16 Oct 2014 21:27:38 +0000 (23:27 +0200)]
Different fix for T42262, we don't put Cycles compat into regular bl_ui files.

7 years agoCorrect recent commit
Campbell Barton [Thu, 16 Oct 2014 21:18:49 +0000 (23:18 +0200)]
Correct recent commit

7 years agoCleanup: use SQUARED macro
Campbell Barton [Tue, 14 Oct 2014 18:54:29 +0000 (20:54 +0200)]
Cleanup: use SQUARED macro

7 years agoFix T42262: Ocean texture options cannot be edited while in Cycles
Bastien Montagne [Thu, 16 Oct 2014 21:02:23 +0000 (23:02 +0200)]
Fix T42262: Ocean texture options cannot be edited while in Cycles

7 years agoRevert "Minor typo".
Antony Riakiotakis [Thu, 16 Oct 2014 18:33:19 +0000 (20:33 +0200)]
Revert "Minor typo".

This was supposed to be an experimental commit, shouldn't be in master at all, sorry for that

This reverts commit 0750e4c4c7eee9ad8f57ebf1243960bd46c7c1f9.

7 years agoFix bad typo in undo code that invalidated all image caches on undo.
Antony Riakiotakis [Thu, 16 Oct 2014 18:07:44 +0000 (20:07 +0200)]
Fix bad typo in undo code that invalidated all image caches on undo.

7 years agoMinor typo
Antony Riakiotakis [Thu, 16 Oct 2014 17:08:32 +0000 (19:08 +0200)]
Minor typo

7 years agoFix T42258: Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works
Bastien Montagne [Thu, 16 Oct 2014 14:30:52 +0000 (16:30 +0200)]
Fix T42258: Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works

'PROP_XYZ_LENGTH' subtype was missing from list of valid '.x/y/z/w' ones.

7 years agoFix T42256: Translation operator moves Child-Of constrained objects in wrong space...
Bastien Montagne [Thu, 16 Oct 2014 13:42:46 +0000 (15:42 +0200)]
Fix T42256: Translation operator moves Child-Of constrained objects in wrong space when only using parent's rotation and parent is rotated.

Just do not use crazyspace correction with childof constraints in this case.

Note this is only a very partial fix (partial use of parent loc on some axes
is still broken in transform), a real fix would probably require a full rewrite
of constraints handling in transform code (a mere static correction matrix
just cannot work in all possible cases, we'd need a full dynamic correction system here).
Anyway, transform code as a whole is horrible. :/

7 years agoCycles: Implement an area preserving parameterization sampling for area lamps
Sergey Sharybin [Fri, 10 Oct 2014 13:24:12 +0000 (19:24 +0600)]
Cycles: Implement an area preserving parameterization sampling for area lamps

Replace old code for area lamps which was more like incorrect with more correct
one using the following paper as a reference:

  Carlos Urena et al.
  An Area-Preserving Parametrization for Spherical Rectangles.

Implementation is straight from the paper, currently the rectangle constants are
calculated for each of the samples. Ideally we need to pre-calculate them.

Some comparison images are available there

Reviewers: brecht, juicyfruit

Subscribers: dingto, ton

Differential Revision:

7 years agoFix T42222
Antony Riakiotakis [Thu, 16 Oct 2014 10:04:25 +0000 (12:04 +0200)]
Fix T42222

Avoid using roundf function, since it's oly defined in C99

7 years agoSequencer: draw metastrip range while editing
Campbell Barton [Thu, 16 Oct 2014 10:01:01 +0000 (12:01 +0200)]
Sequencer: draw metastrip range while editing

7 years agoSequencer: maintain start/end when exiting a meta
Campbell Barton [Thu, 16 Oct 2014 09:44:42 +0000 (11:44 +0200)]
Sequencer: maintain start/end when exiting a meta

Old behavior of shuffling the meta made it hard to use metas
in a complex edit since you couldn't be sure if exiting a meta would move it in the stack.

7 years agoFix T42247 rolling did not support the rotation value in the user
Antony Riakiotakis [Thu, 16 Oct 2014 09:34:32 +0000 (11:34 +0200)]
Fix T42247 rolling did not support the rotation value in the user

After discussion with Campbell left the explicit angle property in for
use with NDOF devices.

7 years agoFix T42160: CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize()
Sergey Sharybin [Wed, 15 Oct 2014 14:25:04 +0000 (16:25 +0200)]
Fix T42160: CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize()

This is so-called GPU limitation boundary hit, told compiler to NOT include
volume bound function, otherwise some real weird things used to happen.

We actually might want to do the same for CPU, inlining everything is not
the way to get fastest code.

7 years agoSCons: Fix compilation error with booleans disabled
Sergey Sharybin [Wed, 15 Oct 2014 12:51:22 +0000 (18:51 +0600)]
SCons: Fix compilation error with booleans disabled

7 years agoFuther tweaks to WITH_CPU_SSE option
Sergey Sharybin [Wed, 15 Oct 2014 12:43:47 +0000 (18:43 +0600)]
Futher tweaks to WITH_CPU_SSE option

Explicitly disable SSE kernels in Cycles when this option is used.

7 years agoDisable color editing for bone group color sets unless custom colors is
Lukas Tönne [Wed, 15 Oct 2014 11:52:43 +0000 (13:52 +0200)]
Disable color editing for bone group color sets unless custom colors is

The bone group colors are not actually used _unless_ when the set is
"custom colors". But they were still editable, which is very confusing.

7 years agoBuildbot: Correct folder for experimetnal builds
Sergey Sharybin [Wed, 15 Oct 2014 10:16:56 +0000 (16:16 +0600)]
Buildbot: Correct folder for experimetnal builds

7 years agoBuildbot: Fix for branch detection from the file name
Sergey Sharybin [Wed, 15 Oct 2014 10:06:48 +0000 (16:06 +0600)]
Buildbot: Fix for branch detection from the file name

7 years agoBuildbot: Rename testbuild branch to experimental-build and put the builds to dedicat...
Bastien Montagne [Wed, 15 Oct 2014 09:27:40 +0000 (15:27 +0600)]
Buildbot: Rename testbuild branch to experimental-build and put the builds to dedicated folder

7 years agoFix T42239, missing redraw notifier when switching collision shapes.
Lukas Tönne [Wed, 15 Oct 2014 09:36:06 +0000 (11:36 +0200)]
Fix T42239, missing redraw notifier when switching collision shapes.

7 years agoBetter fix for T42139
Antony Riakiotakis [Wed, 15 Oct 2014 09:04:41 +0000 (11:04 +0200)]
Better fix for T42139

Noise function's significant bits are up to 31st bit. This should now
give the same visual result as before, minus the stripes.

Issue pointed out by Anthony Edlin, thanks!

7 years agoCMake: Add a flag to explicitly disable SSE/SSE2 intrinsics
Sergey Sharybin [Wed, 15 Oct 2014 08:53:12 +0000 (14:53 +0600)]
CMake: Add a flag to explicitly disable SSE/SSE2 intrinsics

The flag is called WITH_CPU_SSE, it is ON by default so no one should
be affected by the change really.

This should hopefully fix

7 years agoFix T42237: Added a soft limit to 3D view grid scale; a value of 0.0
Lukas Tönne [Wed, 15 Oct 2014 08:11:31 +0000 (10:11 +0200)]
Fix T42237: Added a soft limit to 3D view grid scale; a value of 0.0
can otherwise give 0.0 object scale.

7 years agoCorrect last commit
Campbell Barton [Wed, 15 Oct 2014 08:10:05 +0000 (10:10 +0200)]
Correct last commit

7 years agoCleanup: unused var
Campbell Barton [Wed, 15 Oct 2014 07:24:50 +0000 (09:24 +0200)]
Cleanup: unused var