5 years agoCycles: Implement preliminary test for volume stack update from SSS
Sergey Sharybin [Fri, 3 Oct 2014 08:52:04 +0000 (10:52 +0200)]
Cycles: Implement preliminary test for volume stack update from SSS

This adds an AABB collision check for objects with volumes and if there's a
collision detected then the object will have SD_OBJECT_INTERSECTS_VOLUME flag.

This solves a speed regression introduced by the fix for T39823 by skipping
volume stack update in cases no volumes intersects the current SSS object.

5 years agoCycles: Fix for non-initialized variable
Sergey Sharybin [Fri, 3 Oct 2014 08:44:24 +0000 (10:44 +0200)]
Cycles: Fix for non-initialized variable

5 years agoCycles: Make camera-in-volume an official feature
Sergey Sharybin [Thu, 2 Oct 2014 21:46:31 +0000 (03:46 +0600)]
Cycles: Make camera-in-volume an official feature

This means it's no longer needed to enable experimental feature set in order to
have proper camera in volume support. And this also means if there's something
wrong going on, or if there's speed regression for cases when camera is obviously
not in the volume -- this issues are to be reported and handled in the regular

Happy blending!

5 years agoCycles: Speedup of kernel side camera-in-volume detection
Sergey Sharybin [Thu, 2 Oct 2014 21:42:16 +0000 (03:42 +0600)]
Cycles: Speedup of kernel side camera-in-volume detection

The idea is to only count intersections with objects which has volumetric shader
and ignore all other objects.

This is probably as fast as we can go without involving some forth level magic.

5 years agoCleanup: spelling, ws
Campbell Barton [Fri, 3 Oct 2014 06:09:00 +0000 (08:09 +0200)]
Cleanup: spelling, ws

5 years agoComments: note on bmesh_region_match
Campbell Barton [Fri, 3 Oct 2014 06:10:02 +0000 (08:10 +0200)]
Comments: note on bmesh_region_match

also correct buffer type

5 years agoUpdate link to the Support an Animation Movie link
Sergey Sharybin [Thu, 2 Oct 2014 18:47:24 +0000 (20:47 +0200)]
Update link to the Support an Animation Movie link

This is to be in the final release.

5 years agoCycles: optimization of panoramic camera in volume
Sergey Sharybin [Thu, 2 Oct 2014 18:37:05 +0000 (20:37 +0200)]
Cycles: optimization of panoramic camera in volume

Now we do much better preliminary check for panoramic camera is inside the
volume object boundings.

Also we're now cacheing the has_volume in the mesh, which makes it unneeded
iterations for each object's shaders.

Should be no functional changes, just faster sync and panoramic-in-volume

5 years agoCode cleanup:
Antony Riakiotakis [Thu, 2 Oct 2014 18:18:42 +0000 (20:18 +0200)]
Code cleanup:

calc_manipulator_stats is only used in manipulator (and soon will only
use the context for such queries)

5 years agoFix for wrong bit mask magic happening in gpu_update_lamps_shadows()
Sergey Sharybin [Thu, 2 Oct 2014 16:19:54 +0000 (18:19 +0200)]
Fix for wrong bit mask magic happening in gpu_update_lamps_shadows()

5 years agoFix black matcap when using particle system
Sergey Sharybin [Thu, 2 Oct 2014 16:17:33 +0000 (18:17 +0200)]
Fix black matcap when using particle system

Using matcap with a displist is not really good thing to try
and it's actually a regression since we've enabled matcaps
for all objects instead of just an active one.

5 years agoLibmv: Fix wrong variable use in scons
Sergey Sharybin [Thu, 2 Oct 2014 14:51:58 +0000 (16:51 +0200)]
Libmv: Fix wrong variable use in scons

5 years agoFix error in last commit
Campbell Barton [Thu, 2 Oct 2014 15:10:24 +0000 (17:10 +0200)]
Fix error in last commit

5 years agoFix T42049: Crash exiting /w GL1.1
Campbell Barton [Thu, 2 Oct 2014 14:21:26 +0000 (16:21 +0200)]
Fix T42049: Crash exiting /w GL1.1

5 years agoFix T42030: Grabbing the whole mask interfere with grabbing individual curve
Sergey Sharybin [Thu, 2 Oct 2014 13:28:07 +0000 (19:28 +0600)]
Fix T42030: Grabbing the whole mask interfere with grabbing individual curve

This fix is for the final 2.72 release.

5 years agoFreestyle: For until c++11 is accepted only static members could b initialized in...
Sergey Sharybin [Thu, 2 Oct 2014 13:24:16 +0000 (19:24 +0600)]
Freestyle: For until c++11 is accepted only static members could b initialized in-lined

5 years agoFix T42008: Dragging and packing issue about new blank image
Sergey Sharybin [Thu, 2 Oct 2014 13:04:38 +0000 (19:04 +0600)]
Fix T42008: Dragging and packing issue about new blank image

The issue was caused by the fact that we never used to store the
generated image color in DNA, so image reload will loose this

Now we store the color in DNA, making ti so re-loading the image
will preserve it's generated color.

It is now also possible to change generated image color using the
color swatch in image properties after the image was created.

5 years agoFix T42033 UVs shown while rendering in texture paint mode.
Antony Riakiotakis [Thu, 2 Oct 2014 12:34:53 +0000 (14:34 +0200)]
Fix T42033 UVs shown while rendering in texture paint mode.

This should be included in final release build.

5 years agoFix for regression on bevel material: need do_version support for earlier files.
Howard Trickey [Thu, 2 Oct 2014 11:49:11 +0000 (07:49 -0400)]
Fix for regression on bevel material: need do_version support for earlier files.

5 years agoFix freestyle/bplayer build (usual stub stuff).
Bastien Montagne [Thu, 2 Oct 2014 10:47:05 +0000 (12:47 +0200)]
Fix freestyle/bplayer build (usual stub stuff).

5 years agoFreestyle: Fix for a compiler failure in makesrna.
Tamito Kajiyama [Thu, 2 Oct 2014 08:49:35 +0000 (17:49 +0900)]
Freestyle: Fix for a compiler failure in makesrna.

5 years agoFreestyle: Fix for destructive view map modifications during chaining operations.
Tamito Kajiyama [Thu, 2 Oct 2014 06:26:53 +0000 (15:26 +0900)]
Freestyle: Fix for destructive view map modifications during chaining operations.

The view map is mostly treated as a read-only data structure by line stylization
operations (i.e., selection, chaining, splitting, sorting and stroke creation).  The
only exception is the chaining operation in some cases where insertion of extra
FEdge objects is necessary to ensure the continuity of underlying FEdges from
which a chain is constructed.

The present revision addresses the removal of extra FEdges so to keep the view
map clean and suitable for reuse in subsequent render frames.

5 years agoFreestyle: Finer memory statistics with CXX_GUARDEDALLOC.
Tamito Kajiyama [Thu, 2 Oct 2014 06:18:10 +0000 (15:18 +0900)]
Freestyle: Finer memory statistics with CXX_GUARDEDALLOC.

5 years agoFreestyle: View map caching.
Tamito Kajiyama [Tue, 28 Jan 2014 14:24:59 +0000 (23:24 +0900)]
Freestyle: View map caching.

New render layer option named "View map cache" is added to reuse a
previously computed view map for subsequent rendering.  The cache is
automatically updated when the mesh geometry of the input 3D scene has
been changed.

This functionality offers a major performance boost for Freestyle
animation rendering when camera-space mesh geometry is static, as well
as for repeated still renders with updates of line stylization options.

Although the "View map cache" toggle is a render layer option, the cache
memory is shared by all render layers and scenes.  This means that if
Freestyle is used for two or more render layers (possibly in different
scenes through the compositor), then the cached view map for one render
layer is replaced by a new view map for another render layer and hence
no performance gain is expected.

5 years agoCleanup: indentation
Campbell Barton [Thu, 2 Oct 2014 08:32:59 +0000 (10:32 +0200)]
Cleanup: indentation

5 years agoCompositor: Reduce number of int<->float conversions in keying screen operation
Sergey Sharybin [Wed, 1 Oct 2014 10:44:35 +0000 (16:44 +0600)]
Compositor: Reduce number of int<->float conversions in keying screen operation

5 years agoCompositor: Simplify logic in keying blur operation
Sergey Sharybin [Wed, 1 Oct 2014 10:36:28 +0000 (16:36 +0600)]
Compositor: Simplify logic in keying blur operation

5 years agoLibmv: Remove old workaround for 10.5 hash tables
Sergey Sharybin [Wed, 1 Oct 2014 06:01:24 +0000 (12:01 +0600)]
Libmv: Remove old workaround for 10.5 hash tables

We on'don't really support 10.5 anymore for my knowledge and in any case
the defined symbol was never checked in the sources, so this workaround
was basically doing nothing for quite some time now.

5 years agoLibmv: Add an option to disable schur specializations build-time
Sergey Sharybin [Wed, 1 Oct 2014 05:59:43 +0000 (11:59 +0600)]
Libmv: Add an option to disable schur specializations build-time

This way folks with few ram or those who wants to hack into Ceres
code might compile Blender much faster.

5 years agoLibmv: Silence some warnings about C11 usage
Sergey Sharybin [Wed, 1 Oct 2014 05:48:24 +0000 (11:48 +0600)]
Libmv: Silence some warnings about C11 usage

This makes headers a bit less clean (with the anonymous structs
mainly and headers inclusion from another header.

Makes compilation with clang a bit less noisy.

5 years agofix T42046 Improved the option label for clarity
Gaia Clary [Thu, 2 Oct 2014 06:54:59 +0000 (08:54 +0200)]
fix T42046 Improved the option label for clarity

5 years agoCode cleanup, use bit shifting for lamp flags.
Antony Riakiotakis [Wed, 1 Oct 2014 17:16:06 +0000 (19:16 +0200)]
Code cleanup, use bit shifting for lamp flags.

5 years agoFix T41971: BMesh mapping slot arg error
Campbell Barton [Wed, 1 Oct 2014 12:36:09 +0000 (22:36 +1000)]
Fix T41971: BMesh mapping slot arg error

5 years agoAnim Playback: Optionally draw flipped
Campbell Barton [Wed, 1 Oct 2014 11:59:02 +0000 (21:59 +1000)]
Anim Playback: Optionally draw flipped

useful to view animations from different POV.
FKey: X, Shift+FKey: Y

5 years agoCleanup: de-duplicate playanim matrix
Campbell Barton [Wed, 1 Oct 2014 10:45:05 +0000 (20:45 +1000)]
Cleanup: de-duplicate playanim matrix

5 years agoFix Smoke UI property: Low resolution values are needed for pyroclastic smoke effects.
Daniel Genrich [Wed, 1 Oct 2014 11:32:52 +0000 (13:32 +0200)]
Fix Smoke UI property: Low resolution values are needed for pyroclastic smoke effects.
Example values for such an effects are resolution = 10 and high resolution = 5.

Patch by nudelZ

5 years agoSmooth vertex: User request: tweak hard min/max smoothness.
Bastien Montagne [Wed, 1 Oct 2014 08:46:50 +0000 (10:46 +0200)]
Smooth vertex: User request: tweak hard min/max smoothness.

Keep soft min/max to usual values, but allow artists to play with strange values
if they really want it.

5 years agoFreestyle: New line style options for sorting and chain selection.
Tamito Kajiyama [Wed, 1 Oct 2014 06:42:37 +0000 (15:42 +0900)]
Freestyle: New line style options for sorting and chain selection.

The following two sort keys are added for sorting chains.

* Projected X - Sort by the projected X value in the image coordinate system.
* Projected Y - Sort by the projected Y value in the image coordinate system.

A new line style option for the selection of first N chains is also added.

Moreover, the chain sorting and chain selection operations are now executed
in this order instead of the reverse order used previously.  The UI has also
changed accordingly.  This functional change is backward compatible and
won't result in visual differences.

5 years agoFreestyle: Fix for a typo in the definition of NotBP1D.
Tamito Kajiyama [Wed, 1 Oct 2014 06:32:46 +0000 (15:32 +0900)]
Freestyle: Fix for a typo in the definition of NotBP1D.

This is a safe fix for a regression from 2.71, so should be back ported to 2.72.

5 years agoCycles: Filter Shader and Output nodes to their respective object/world node tree.
Thomas Dinges [Wed, 1 Oct 2014 04:23:43 +0000 (06:23 +0200)]
Cycles: Filter Shader and Output nodes to their respective object/world node tree.

Some nodes only work in certain node trees, so don't show them in the Add Node menu when this is the case.
This can probably be expanded to Input Nodes too, but need to double check some cases here still.

5 years agoFix for duplicate member in UserDef from own commit (merge mistake).
Lukas Tönne [Tue, 30 Sep 2014 16:37:42 +0000 (18:37 +0200)]
Fix for duplicate member in UserDef from own commit (merge mistake).

5 years agoSupport for "virtual pixelsize" on 4k screens.
Lukas Tönne [Tue, 30 Sep 2014 16:29:32 +0000 (18:29 +0200)]
Support for "virtual pixelsize" on 4k screens.

On 4k devices the default pixel size leads to tiny OpenGL drawing
that is hardly usable without doubling the DPI. The retina system
on OSX aims to alleviate this problem by introducing a general 2x
pixel size.

No equivalent feature exists on other platforms so far. However,
to emulate the effect this patch introduces a "virtual" pixel size
factor for OpenGL drawing.

Note that the user currently has to enable this manually by selecting
the "Virtual Pixel Mode" in the user preferences (defaults to native).
All windows of a Blender instance share the same virtual pixel size as well.
It may be possible to handle this on a per-window basis and automate
the selection somewhat (if enabled by the user), so working with
multiple screens becomes more convenient, but technical limitations
make this a bit difficult (on X11 with nvidia drivers the actual screen size
is not reported correctly).

Reviewers: ton, campbellbarton

Differential Revision:

5 years agoFix T42026: Unit scale affects camera focal length.
Bastien Montagne [Tue, 30 Sep 2014 13:07:44 +0000 (15:07 +0200)]
Fix T42026: Unit scale affects camera focal length.

Not a regression, yet maybe simple/safe enough for 2.72?

5 years agoFix compilation on GCC (good old mixed declaration and code).
Bastien Montagne [Tue, 30 Sep 2014 12:22:20 +0000 (14:22 +0200)]
Fix compilation on GCC (good old mixed declaration and code).

5 years agoStyle cleanup
Sergey Sharybin [Tue, 30 Sep 2014 11:28:04 +0000 (17:28 +0600)]
Style cleanup

5 years agofix T42022 Attempt to export empty set of objects resulted in an exception
gaiaclary [Tue, 30 Sep 2014 11:21:53 +0000 (12:21 +0100)]
fix T42022 Attempt to export empty set of objects resulted in an exception

5 years agoFix T42018: Crash when displaying beveled poly-curves with spline bevfac mapping
Sergey Sharybin [Tue, 30 Sep 2014 09:57:06 +0000 (15:57 +0600)]
Fix T42018: Crash when displaying beveled poly-curves with spline bevfac mapping

This fix is for 2.72.

5 years agoUse native float math functions for MSVC12
Sv. Lockal [Tue, 30 Sep 2014 09:27:56 +0000 (13:27 +0400)]
Use native float math functions for MSVC12

`double` surrogates are slow (e.g. pow is 2x slower than powf), and MSVC12
supports fp-math functions from C99.

5 years agoLibmv: update ceres to latest upstream version
Sergey Sharybin [Tue, 30 Sep 2014 08:49:34 +0000 (14:49 +0600)]
Libmv: update ceres to latest upstream version

This brings faster BlockRandomAccessSparseMatrix::SymmetricRightMultiply.

5 years agoBlend modes: fix array length being too short
Kévin Dietrich [Tue, 30 Sep 2014 08:47:19 +0000 (10:47 +0200)]
Blend modes: fix array length being too short

Reviewers: psy-fi

Differential Revision:

5 years agoLibmv: Enable explicit Schur complement matrix by default
Sergey Sharybin [Mon, 29 Sep 2014 18:43:04 +0000 (00:43 +0600)]
Libmv: Enable explicit Schur complement matrix by default

Gives up to 2x speed up of camera solving process in average scene.
In the really huge one it might be slower, but that we need to investigate.

5 years agoLibmv: Update Ceres to the latest upstream version
Sergey Sharybin [Mon, 29 Sep 2014 18:39:45 +0000 (00:39 +0600)]
Libmv: Update Ceres to the latest upstream version

Mainly to let ITERATIVE_SCHUR use an explicit Schur Complement matrix.

5 years agoFix BI viewport render crash happening with zero render border area
Sergey Sharybin [Mon, 29 Sep 2014 14:51:00 +0000 (20:51 +0600)]
Fix BI viewport render crash happening with zero render border area

This is better to be backported to the 2.72.

5 years agoCleanup: style
Campbell Barton [Mon, 29 Sep 2014 16:04:34 +0000 (02:04 +1000)]
Cleanup: style

5 years agoUpdate for release themes.
Brendon Murphy [Mon, 29 Sep 2014 13:59:18 +0000 (15:59 +0200)]
Update for release themes.

This is to be backported to 2.72.

5 years agoFix T41988: Shadow pass inaccurate calculation
Sergey Sharybin [Mon, 29 Sep 2014 12:27:58 +0000 (18:27 +0600)]
Fix T41988: Shadow pass inaccurate calculation

5 years agoRevert previous commit (sorry about that), and use standard func to get active layer
Bastien Montagne [Mon, 29 Sep 2014 12:22:50 +0000 (14:22 +0200)]
Revert previous commit (sorry about that), and use standard func to get active layer
in this case too.

Thanks to Campbell for the head up.

5 years agoFix T41905: Linked objects/groups assigned to 'wrong' active layers when called from...
Bastien Montagne [Mon, 29 Sep 2014 11:59:02 +0000 (13:59 +0200)]
Fix T41905: Linked objects/groups assigned to 'wrong' active layers when called from 3DView

Typo using v3d->layact instead of v3d->lay when linking and v3d is available in context.

This can be backported to 2.72.

5 years agoFix T41993: Constant jittered bug
Sergey Sharybin [Mon, 29 Sep 2014 11:40:10 +0000 (17:40 +0600)]
Fix T41993: Constant jittered bug

Rotated coordinate of the ray start was used when calculating
the ray direction, ending up with wrong direction.

5 years agoFix T41977: 'Shading' panel of Render buttons not updating Rendered 3DView.
Bastien Montagne [Mon, 29 Sep 2014 10:49:51 +0000 (12:49 +0200)]
Fix T41977: 'Shading' panel of Render buttons not updating Rendered 3DView.

Reuse `rna_Scene_glsl_update` here too.

5 years agoFix crashing regression in Armature EditBone Select shortest path/Select Linked actions.
Bastien Montagne [Mon, 29 Sep 2014 10:10:08 +0000 (12:10 +0200)]
Fix crashing regression in Armature EditBone Select shortest path/Select Linked actions.

Dummy typo in some recent refactor I guess.

This is to be backported to 2.72 for sure!

5 years agoFix T41955: lamp error: double update for all lamps
Sergey Sharybin [Mon, 29 Sep 2014 09:05:02 +0000 (15:05 +0600)]
Fix T41955: lamp error: double update for all lamps

This is actually also safe for 2.72 :)

5 years agoFix for wrong color space when image loader set both rect and rect_float
Sergey Sharybin [Mon, 29 Sep 2014 08:34:37 +0000 (14:34 +0600)]
Fix for wrong color space when image loader set both rect and rect_float

Quite safe for 2.72.

5 years agoFix for a build error with VS 2013.
Tamito Kajiyama [Mon, 29 Sep 2014 05:52:35 +0000 (14:52 +0900)]
Fix for a build error with VS 2013.

5 years agoCleanup: spelling
Campbell Barton [Mon, 29 Sep 2014 05:51:47 +0000 (15:51 +1000)]
Cleanup: spelling

5 years agoCleanup: remove smooth_ from 'smooth_factor'
Campbell Barton [Mon, 29 Sep 2014 05:48:51 +0000 (15:48 +1000)]
Cleanup: remove smooth_ from 'smooth_factor'

redundant, just call factor as smooth modifier does.

5 years agoDon't error of sign-conversion for < gcc v4.8
Campbell Barton [Mon, 29 Sep 2014 00:57:46 +0000 (10:57 +1000)]
Don't error of sign-conversion for < gcc v4.8

Behavior is different and hard to keep building on older versions.

5 years agoFix T41995: Box selection - Edit mode - Header not updated.
Bastien Montagne [Sun, 28 Sep 2014 21:47:05 +0000 (23:47 +0200)]
Fix T41995: Box selection - Edit mode - Header not updated.

5 years agoFix T25582: Add a 'smooth factor' to smooth_vertex BMesh op.
Bastien Montagne [Sun, 28 Sep 2014 17:55:05 +0000 (19:55 +0200)]
Fix T25582: Add a 'smooth factor' to smooth_vertex BMesh op.

Based on code by wahooney (Keith Boshoff), patch itself was merely rewritten due to BMesh changes...

5 years agoFix T41984: Can't use Render Image as Background Image.
Bastien Montagne [Sun, 28 Sep 2014 16:29:10 +0000 (18:29 +0200)]
Fix T41984: Can't use Render Image as Background Image.

Changes were actually pretty simple to make it work - set 'scene' member of image user,
and handle lock when acquiring/releasing ibuf...

5 years agoTransform: Provide descriptive error messages when wrong transform modes are used...
Joshua Leung [Sun, 28 Sep 2014 03:48:22 +0000 (16:48 +1300)]
Transform: Provide descriptive error messages when wrong transform modes are used in DopeSheet

5 years agoTypo and spelling fixes
Joshua Leung [Sat, 6 Sep 2014 12:23:26 +0000 (00:23 +1200)]
Typo and spelling fixes

5 years agoFix T41978: Shadow was not excluded from combined path unless shadow pass was rendere...
Bastien Montagne [Sun, 28 Sep 2014 14:08:33 +0000 (16:08 +0200)]
Fix T41978: Shadow was not excluded from combined path unless shadow pass was rendered too.

Pretty straightforward, issue probably goes back to (pre)history!

5 years agoInstall_deps: Fix stupid mistake in BUILD_NOTE.txt generation since last commit.
Bastien Montagne [Sun, 28 Sep 2014 13:47:03 +0000 (15:47 +0200)]
Install_deps: Fix stupid mistake in BUILD_NOTE.txt generation since last commit.

Reported by Thomas (DingTo) over IRC, thanks.

5 years agoGTest: polyfill2d
Campbell Barton [Sun, 28 Sep 2014 11:25:14 +0000 (21:25 +1000)]
GTest: polyfill2d

Collection of test cases from libGDX and our own tracker


- combine triangle area matches polygon area.
- tris have same winding.
- tris don't have duplicates.
- correct number of internal & boundary edges.
- degenerate polys still give topologically correct output.

also checks all possible start-vert offsets, forwards and backwards.

optional OBJ output, for debugging.

5 years agoFix T41986: polyfill fails with axis aligned verts
Campbell Barton [Sun, 28 Sep 2014 11:11:16 +0000 (21:11 +1000)]
Fix T41986: polyfill fails with axis aligned verts

5 years agoBMesh: remove point-in-face test for bisect
Campbell Barton [Sun, 28 Sep 2014 09:13:22 +0000 (19:13 +1000)]
BMesh: remove point-in-face test for bisect

instead track inside/outside state while stepping over intersections.

5 years agoComments: update for changed args
Campbell Barton [Sun, 28 Sep 2014 09:03:09 +0000 (19:03 +1000)]
Comments: update for changed args

5 years agoFix T41981: Crash by Copy mask splines without splines
Sergey Sharybin [Sun, 28 Sep 2014 08:37:33 +0000 (14:37 +0600)]
Fix T41981: Crash by Copy mask splines without splines

5 years agoCycles: Correct object flags bitfield, was missing negative scale there
Sergey Sharybin [Sun, 28 Sep 2014 08:13:36 +0000 (14:13 +0600)]
Cycles: Correct object flags bitfield, was missing negative scale there

It's quite a few of circumstances to be met to hit the case when render
wouldn't be correct.

Better to be ported to the final release.

5 years agoCorrect recent error in BLI_array_append_ret
Campbell Barton [Sun, 28 Sep 2014 07:29:48 +0000 (17:29 +1000)]
Correct recent error in BLI_array_append_ret

5 years agoComments: clarify math lib
Campbell Barton [Sun, 28 Sep 2014 04:39:38 +0000 (14:39 +1000)]
Comments: clarify math lib

5 years agoBMesh: replace BLI_array_grow_one -> BLI_array_append_ret
Campbell Barton [Sun, 28 Sep 2014 03:41:26 +0000 (13:41 +1000)]
BMesh: replace BLI_array_grow_one -> BLI_array_append_ret

5 years agoBMesh: use stack for subdiv face data (no realloc)
Campbell Barton [Sun, 28 Sep 2014 03:27:47 +0000 (13:27 +1000)]
BMesh: use stack for subdiv face data (no realloc)

5 years agoBLI_array: add BLI_array_append_ret
Campbell Barton [Sun, 28 Sep 2014 03:37:13 +0000 (13:37 +1000)]
BLI_array: add BLI_array_append_ret

returns the newly appended item.
also make make it so reserve doesn't have to grow then shrink the array size.

5 years agoBLI_Stack add BLI_stack_peek, BLI_stack_discard
Campbell Barton [Sun, 28 Sep 2014 03:24:01 +0000 (13:24 +1000)]
BLI_Stack add BLI_stack_peek, BLI_stack_discard

also remove own incorrect assert

5 years agoFreestyle: minor docstring revision of Operators.reset().
Tamito Kajiyama [Sun, 28 Sep 2014 02:15:08 +0000 (11:15 +0900)]
Freestyle: minor docstring revision of Operators.reset().

5 years agoFreestyle: Expose the Operators.reset() function to Python.
Tamito Kajiyama [Sun, 28 Sep 2014 02:05:19 +0000 (11:05 +0900)]
Freestyle: Expose the Operators.reset() function to Python.

The Operators.reset function is exposed to the Freestyle Python API, which makes
it possible to combine multiple style modules into one file.

Differential revision:

Author: flokkievids (Folkert de Vries)

Reviewed by: kjym3 (Tamito Kajiyama)

5 years agoCycles: Avoid temp variable in camera-in-volume check
Sergey Sharybin [Sat, 27 Sep 2014 20:35:37 +0000 (02:35 +0600)]
Cycles: Avoid temp variable in camera-in-volume check

Was a left-over from some experiments, no need it with the current
implementation, and likely wouldn't need in the future.

5 years agoCycles: Cleanup of the SSS volume stack update code
Sergey Sharybin [Sat, 27 Sep 2014 20:19:17 +0000 (02:19 +0600)]
Cycles: Cleanup of the SSS volume stack update code

Was a leftover after the changed scene_intersect() which used to
be ifdefed depending on the __HAIR__ in the original patch.

5 years agoFix T41974: blender ships vulnerable minilzo version
Kévin Dietrich [Sat, 27 Sep 2014 19:05:36 +0000 (01:05 +0600)]
Fix T41974: blender ships vulnerable minilzo version

Update lzo library due to security issue

Update lzo to latest version. This fixes a security issue (reported in T41974)

This also fixes some (false-positive) valgrind warnings.

Reviewers: sergey

Differential Revision:

5 years agoCleanup: typo
Campbell Barton [Sat, 27 Sep 2014 10:31:40 +0000 (20:31 +1000)]
Cleanup: typo

5 years agoTracking: Make sure INC_SYS is always fine
Sergey Sharybin [Sat, 27 Sep 2014 09:41:14 +0000 (15:41 +0600)]
Tracking: Make sure INC_SYS is always fine

5 years agoAdd Face Region to 'Select-Similar' menu
Campbell Barton [Sat, 27 Sep 2014 08:30:48 +0000 (18:30 +1000)]
Add Face Region to 'Select-Similar' menu

5 years agoComments: clarify BMLoop
Campbell Barton [Sat, 27 Sep 2014 06:31:40 +0000 (16:31 +1000)]
Comments: clarify BMLoop

5 years agoTracking: Cleanup of the bundler script
Sergey Sharybin [Fri, 26 Sep 2014 18:50:41 +0000 (00:50 +0600)]
Tracking: Cleanup of the bundler script

5 years agoFix View3d background image display aspect
Campbell Barton [Fri, 26 Sep 2014 15:32:25 +0000 (01:32 +1000)]
Fix View3d background image display aspect

5 years agoCleanup
Campbell Barton [Fri, 26 Sep 2014 14:57:54 +0000 (00:57 +1000)]

5 years agoFix ocmpilation error with strict flags after the recent commit
Sergey Sharybin [Fri, 26 Sep 2014 14:17:21 +0000 (20:17 +0600)]
Fix ocmpilation error with strict flags after the recent commit

5 years agoBMesh: select similar regions
Campbell Barton [Mon, 15 Sep 2014 05:40:50 +0000 (15:40 +1000)]
BMesh: select similar regions

Select operator that takes multiple selected face regions and
selects any number of matching regions (when they have distinguishing features to isolate them).

UI access next.