blender.git
5 years agoTests: remove support.run_unittest
Campbell Barton [Thu, 21 Aug 2014 09:55:52 +0000 (19:55 +1000)]
Tests: remove support.run_unittest

5 years agoFix incorrect 2d stabilization for masks
Sergey Sharybin [Thu, 21 Aug 2014 09:03:44 +0000 (15:03 +0600)]
Fix incorrect 2d stabilization for masks

Reported by Sebastian Koenig in IRC>

5 years agoFix T41507: Empty prevents image deletion
Campbell Barton [Thu, 21 Aug 2014 07:00:35 +0000 (17:00 +1000)]
Fix T41507: Empty prevents image deletion

Also allow assigning `Object.data = None` from Python

5 years agoFix T41523: Mesh triangle fill creates flipped faces
Campbell Barton [Thu, 21 Aug 2014 05:07:07 +0000 (15:07 +1000)]
Fix T41523: Mesh triangle fill creates flipped faces

Calculate projection normal using edge-pairs

5 years agoFix for BMesh fill using arbitrary face-flipping
Campbell Barton [Thu, 21 Aug 2014 02:18:55 +0000 (12:18 +1000)]
Fix for BMesh fill using arbitrary face-flipping

Use winding of existing boundary edges.

Filling Suzzane's eyes gave different face winding.

5 years agoBMesh: fill - replace SmallHash with GHash
Campbell Barton [Thu, 21 Aug 2014 01:47:10 +0000 (11:47 +1000)]
BMesh: fill - replace SmallHash with GHash

5 years agoBMesh: add assert for correct args to creation functions
Campbell Barton [Thu, 21 Aug 2014 03:04:56 +0000 (13:04 +1000)]
BMesh: add assert for correct args to creation functions

5 years agoBMesh: correct flag use
Campbell Barton [Thu, 21 Aug 2014 02:57:03 +0000 (12:57 +1000)]
BMesh: correct flag use

Allowed fill to make duplicate faces

5 years agoFix T41517: BMesh intersect crash
Campbell Barton [Wed, 20 Aug 2014 23:22:12 +0000 (09:22 +1000)]
Fix T41517: BMesh intersect crash

5 years agoCleanup
Campbell Barton [Wed, 20 Aug 2014 14:10:57 +0000 (00:10 +1000)]
Cleanup

5 years agoFurther cleanup for defines:
Thomas Dinges [Wed, 20 Aug 2014 21:27:59 +0000 (23:27 +0200)]
Further cleanup for defines:

* Merge Texture defines
* Remove Normal Map define.

5 years agoCleanup: Remove __ANISOTROPIC__ define.
Thomas Dinges [Wed, 20 Aug 2014 21:23:14 +0000 (23:23 +0200)]
Cleanup: Remove __ANISOTROPIC__ define.

That was only needed in the beginning, when we did not had support for tangents. It's time to clean some of the defines up, it's getting a bit too much.

5 years agoCode refactor: Split __VOLUME__ defines in Cycles.
Thomas Dinges [Wed, 20 Aug 2014 21:15:30 +0000 (23:15 +0200)]
Code refactor: Split __VOLUME__ defines in Cycles.

* __VOLUME__ is basic volume support with Emission and Absorption.
* __VOLUME_SCATTER__ enables volume Scattering support.
* __VOLUME_DECOUPLED__ enables Decoupled Ray Marching.

5 years agoCycles: Further tweak for Decoupled Ray Marching
Thomas Dinges [Wed, 20 Aug 2014 19:53:52 +0000 (21:53 +0200)]
Cycles: Further tweak for Decoupled Ray Marching

Avoid some if checks when probalistic_scatter is false.

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

5 years agoUI message fix (yeah, I know... :/ ).
Bastien Montagne [Wed, 20 Aug 2014 19:52:00 +0000 (21:52 +0200)]
UI message fix (yeah, I know... :/ ).

5 years agoCleanup: some const and bool cleanup.
Bastien Montagne [Wed, 20 Aug 2014 18:41:30 +0000 (20:41 +0200)]
Cleanup: some const and bool cleanup.

5 years agoRestore red name for disabled modifiers.
Bastien Montagne [Wed, 20 Aug 2014 18:25:58 +0000 (20:25 +0200)]
Restore red name for disabled modifiers.

Don't know when this was lost, 2.70a already did not have it... :/

5 years agoFix T41497: Colour Ramp UI Bug.
Bastien Montagne [Wed, 20 Aug 2014 12:46:10 +0000 (14:46 +0200)]
Fix T41497: Colour Ramp UI Bug.

5 years agoTweaks to the 3ds and maya keymaps
Sergey Sharybin [Wed, 20 Aug 2014 11:31:50 +0000 (17:31 +0600)]
Tweaks to the 3ds and maya keymaps

- Get rid of the obsolete operator
- Use select_or_deselect_all in 3ds keymap, which performs better
  than separate deselect all and select binded to the select mouse.

  This was already done for maya, and seems was accidentally reverted
  by 5a91db3d.

5 years agoFix for recent solidify rim-only patch
Campbell Barton [Wed, 20 Aug 2014 10:30:45 +0000 (20:30 +1000)]
Fix for recent solidify rim-only patch

5 years agoBKE_units: Some cleanup (mostly bools instead of ints).
Bastien Montagne [Wed, 20 Aug 2014 10:31:15 +0000 (12:31 +0200)]
BKE_units: Some cleanup (mostly bools instead of ints).

5 years agoFix T38722: Adding units in Imperial setting results in inconsistent values
Bastien Montagne [Wed, 20 Aug 2014 10:12:03 +0000 (12:12 +0200)]
Fix T38722: Adding units in Imperial setting results in inconsistent values

Now always check for a default unit, and evaluate the whole expression in this "unit space".
Not an ideal solution, but should handle most cases nicely
(we can't address all possible corner cases anyway).

Note default unit is searched in current string first (bigger unit of current system wins),
then in previous string.

Note this also replaces ',' by '+' in default separation between units,
helps solving issues with parenthesis (e.g. (1'1")*2.5 would fail in existing code)!
This would break if someone uses py ops with lower precedence than '+' (like bitwise
operations, and comparison), but these are not expected usecase here anyway.

Reviewers: campbellbarton

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

5 years agoViewport resolution divider works fine for halos now
Sergey Sharybin [Wed, 20 Aug 2014 09:30:31 +0000 (15:30 +0600)]
Viewport resolution divider works fine for halos now

5 years agoFix T41499: Can't use Deselect/Select All tool while in Texture Paint mode
Sergey Sharybin [Wed, 20 Aug 2014 08:00:57 +0000 (14:00 +0600)]
Fix T41499: Can't use Deselect/Select All tool while in Texture Paint mode

5 years agoAdding presets for Blackmagic Pocket Cinema Camera and Blackmagic Production Camera 4K
Daniel Salazar [Wed, 20 Aug 2014 06:55:26 +0000 (00:55 -0600)]
Adding presets for Blackmagic Pocket Cinema Camera and Blackmagic Production Camera 4K

5 years agoFix for missing updates of build scripts in the commit rB05cb63ecf750.
Tamito Kajiyama [Wed, 20 Aug 2014 04:35:45 +0000 (13:35 +0900)]
Fix for missing updates of build scripts in the commit rB05cb63ecf750.

5 years agoCorrect mistake in recently added intersect tool
Campbell Barton [Wed, 20 Aug 2014 02:36:35 +0000 (12:36 +1000)]
Correct mistake in recently added intersect tool

Sorting verts along an edge wasn't working reliably.

5 years agoBMesh: improve docs for BM_edge_split
Campbell Barton [Wed, 20 Aug 2014 02:33:24 +0000 (12:33 +1000)]
BMesh: improve docs for BM_edge_split

5 years agoFix T41464: Material Boundary bug in Freestyle.
Tamito Kajiyama [Wed, 20 Aug 2014 01:37:02 +0000 (10:37 +0900)]
Fix T41464: Material Boundary bug in Freestyle.

The reported issue was caused by an old bug combined with another bug
introduced by recent Freestyle Python API updates.

The old bug was that a mutable reference to CurvePoint was treated as if
it were immutable.  Iteration over CurvePoint objects is implemented by
the C++ CurvePointIterator class, whose dereference method
CurvePointIterator::operator*() returns a reference to a mutable data
member (probably originally intended for better performance).  Hence the
returned reference may vary upon iteration over different CurvePoints.
This implementation detail was overlooked and the returned reference was
treated as immutable (which is the case in fact for other Interface0D
subclasses except for CurvePoint).  This bug was surprisingly old as it
existed before the beginning of Freestyle integration into Blender.

The other bug was in the MaterialBoundaryUP0D predicate class that was
not properly handling the end of iteration.  It is noted that when the
iter() and next() built-in functions are applied to Interface0DIterator,
it is no longer possible to reliably check the end of iteration by the
.is_end property of the iterator.  Namely, the .is_end property works as
expected only when iteration is carried out in combination with the
conventional .increment() and .decrement() methods of the iterator.  For
this reason the commit rBb408d8af31c9 was partly reverted to recover the
previous definition of MaterialBoundaryUP0D.

5 years agoCleanup: style
Campbell Barton [Tue, 19 Aug 2014 22:47:32 +0000 (08:47 +1000)]
Cleanup: style

5 years agoReplace strstr with STRPREFIX
Campbell Barton [Tue, 19 Aug 2014 22:38:40 +0000 (08:38 +1000)]
Replace strstr with STRPREFIX

No need to search the whole string.

5 years agoRoto: Add spline dragging zone in it's center
Sergey Sharybin [Tue, 19 Aug 2014 15:27:12 +0000 (21:27 +0600)]
Roto: Add spline dragging zone in it's center

This dragging zone is visualized as the circle (the same as object origin)
in the spline bounding box center and dragging that circle drags the whole
spline.

Pretty much basic functionality, but quite useful in practice.

Requested by our roto team (Sebastian and Sean :) in IRC.

5 years agoFix T40962: Ashikhmen Shirley shader fireflies
Sergey Sharybin [Tue, 19 Aug 2014 14:58:58 +0000 (20:58 +0600)]
Fix T40962: Ashikhmen Shirley shader fireflies

5 years agoFix T41457: Viewport resolution divider does freestyle for every resolution
Sergey Sharybin [Tue, 19 Aug 2014 13:36:49 +0000 (19:36 +0600)]
Fix T41457: Viewport resolution divider does freestyle for every resolution

Now freestyle would be rendered for the final resolution only, making it so
viewport navigation is really interactive.

5 years agoFix T41485: No priority: typo in "effectors effect themselves"
Bastien Montagne [Tue, 19 Aug 2014 13:09:34 +0000 (15:09 +0200)]
Fix T41485: No priority: typo in "effectors effect themselves"

Who said 'commit count'? I only see 'bug fixing' here...

5 years agoFix T41477: Some UI op buttons have no more option to edit shortcuts.
Bastien Montagne [Tue, 19 Aug 2014 12:24:18 +0000 (14:24 +0200)]
Fix T41477: Some UI op buttons have no more option to edit shortcuts.

`WM_keymap_guess_opname()` was missing a bunch of op 'types'/familly. Now all are there,
either trying to find a matching keymap, or explicitely listed in a comment as skipped for now.

Note matching might not be perfect in all case, but we can easily tweak that later if needed.

5 years agoMask slide can be cancelled with RMB now
Sergey Sharybin [Tue, 19 Aug 2014 11:23:02 +0000 (17:23 +0600)]
Mask slide can be cancelled with RMB now

5 years agoFix crash in BKE_mesh_validate_arrays
Campbell Barton [Tue, 19 Aug 2014 11:09:10 +0000 (21:09 +1000)]
Fix crash in BKE_mesh_validate_arrays

5 years agoFix T41471 Cycles Bake: Setting small tile size results in wrong bake with stripes...
Dalai Felinto [Tue, 19 Aug 2014 09:39:40 +0000 (11:39 +0200)]
Fix T41471 Cycles Bake: Setting small tile size results in wrong bake with stripes rather than the expected noise pattern

This problem was introduced in 983cbafd1877f8dbaae60b064a14e27b5b640f18
Basically the issue is that we were not getting a unique index in the
baking routine for the RNG (random number generator).

Reviewers: sergey

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

5 years agoFix mesh validate skipping first vertex
Campbell Barton [Tue, 19 Aug 2014 08:49:54 +0000 (18:49 +1000)]
Fix mesh validate skipping first vertex

5 years agoFix T41479: BLI_bvhtree_find_nearest inaccurate
Campbell Barton [Tue, 19 Aug 2014 07:41:55 +0000 (17:41 +1000)]
Fix T41479: BLI_bvhtree_find_nearest inaccurate

Gives noticeably better results for shrink-wrap (even in simple cases)

5 years agoFix for BKE_deform_flip_side_name getting fooled by extra separator characters
Campbell Barton [Tue, 19 Aug 2014 06:16:25 +0000 (16:16 +1000)]
Fix for BKE_deform_flip_side_name getting fooled by extra separator characters

D740 by ldo with own edits

5 years agoFix for fix (don't guess enum's sign)
Campbell Barton [Mon, 18 Aug 2014 21:08:15 +0000 (07:08 +1000)]
Fix for fix (don't guess enum's sign)

5 years agoFix T41456: soft light texture blend mode zero effect
Antony Riakiotakis [Mon, 18 Aug 2014 17:14:51 +0000 (19:14 +0200)]
Fix T41456: soft light texture blend mode zero effect

Soft light and Linear light blend modes weren't implemented in glsl

Reviewers: psy-fi

Maniphest Tasks: T41456

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

5 years agoCorrection to previous curve bevlist commit
Sergey Sharybin [Mon, 18 Aug 2014 15:16:21 +0000 (21:16 +0600)]
Correction to previous curve bevlist commit

5 years agoFix T39630: Mouse Wheel doesn't detect Multi Window Focus
Sergey Sharybin [Mon, 18 Aug 2014 14:49:35 +0000 (20:49 +0600)]
Fix T39630: Mouse Wheel doesn't detect Multi Window Focus

5 years agoFix T40653: Modified keymap: MMB not behaving like RMB?
Bastien Montagne [Mon, 18 Aug 2014 14:37:01 +0000 (16:37 +0200)]
Fix T40653: Modified keymap: MMB not behaving like RMB?

Modal frame_change was not terminating on mmb release event...

5 years agoFix building on some compilers (clang on OSX).
Bastien Montagne [Mon, 18 Aug 2014 13:26:57 +0000 (15:26 +0200)]
Fix building on some compilers (clang on OSX).

Reported and patch by jensverwiebe (jens verwiebe).

5 years agoDe-duplicate EWA filter code between renderer and compositor
Sergey Sharybin [Mon, 18 Aug 2014 13:37:13 +0000 (19:37 +0600)]
De-duplicate EWA filter code between renderer and compositor

The title says it all, move the EWA filter to BLI (currently it's
math_interp.c) and use the function from both BI renderer and the
compositor.

This makes more central place of the algorithm, allowing to have
fixes and optimizaitons synchronized across the two usages.

This also fixes T41440: Displacement in compositing creates holes

Reviewers: campbellbarton, lukastoenne

Reviewed By: lukastoenne

Maniphest Tasks: T41440

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

5 years agoFix T41137: Old render result from viewport render in camera view does not go away...
Sergey Sharybin [Mon, 18 Aug 2014 13:32:25 +0000 (19:32 +0600)]
Fix T41137: Old render result from viewport render in camera view does not go away when middle clicking

5 years agoInstall_deps: Better handling of 'check installed' in Debian, and fix jack2d check.
Bastien Montagne [Mon, 18 Aug 2014 13:06:37 +0000 (15:06 +0200)]
Install_deps: Better handling of 'check installed' in Debian, and fix jack2d check.

Patch D742, by oweissbarth (Oliver Weissbarth), thanks!

5 years agoFix T41474: Second renderlayer doesnt render if first one has 'Use Surfaces' disabled
Sergey Sharybin [Mon, 18 Aug 2014 12:59:44 +0000 (18:59 +0600)]
Fix T41474: Second renderlayer doesnt render if first one has 'Use Surfaces' disabled

5 years agoFix T41426: floating menus - scroll issues.
Bastien Montagne [Mon, 18 Aug 2014 12:12:55 +0000 (14:12 +0200)]
Fix T41426: floating menus - scroll issues.

Do not reset active but if cursor is not over it when getting mousewheel events.

5 years agoFix T41462: "Reload from trusted" button not prompting for confirmation.
Bastien Montagne [Mon, 18 Aug 2014 10:43:08 +0000 (12:43 +0200)]
Fix T41462: "Reload from trusted" button not prompting for confirmation.

Made 'revert_mainfile' op also handle the 'use scripts' option, and use it
for this feature (since it has a nice simple invoke confirmation popup).

5 years agoCorrection to the mipmaps generation
Sergey Sharybin [Mon, 18 Aug 2014 12:03:56 +0000 (18:03 +0600)]
Correction to the mipmaps generation

Seem we've always were wrong with multiplying alpha by 255,
other channels seems to be multiplied by 256 with the shift
operations.

5 years agoFix T41085: Blender crashes when using "spline" or "segments" for bevel curve factor.
Sergey Sharybin [Mon, 18 Aug 2014 11:35:51 +0000 (17:35 +0600)]
Fix T41085: Blender crashes when using "spline" or "segments" for bevel curve factor.

Root of the issue goes to the fact that bevel list calculation might drop some points
if they're at the same position. This made spline length calculation goes wrong.

Now the length of the bevel segments is stored in the bevel list, so values are
always reliable.

Initial patch by Lukas Treyer with some tweaks from me.

5 years agoFix for line style shader/texture types showing up in the node editor when Freestyle...
Tamito Kajiyama [Mon, 18 Aug 2014 07:54:26 +0000 (16:54 +0900)]
Fix for line style shader/texture types showing up in the node editor when Freestyle is disabled at compile time.

Problem report by Thomas Dinges on IRC, thanks!

5 years agoFix T41314: OpenGL error when using Cycles engine
Sergey Sharybin [Mon, 18 Aug 2014 07:54:29 +0000 (13:54 +0600)]
Fix T41314: OpenGL error when using Cycles engine

5 years agoBMesh: intersect tool
Campbell Barton [Wed, 19 Mar 2014 04:28:38 +0000 (15:28 +1100)]
BMesh: intersect tool

Modeling tool to cut intersections into geometry (like boolean, without calculating inside/outside).
Faces are split along intersections, leaving new edges selected.

Access from Face menu.

5 years agoCleanup: assert / warn
Campbell Barton [Mon, 18 Aug 2014 06:04:44 +0000 (16:04 +1000)]
Cleanup: assert / warn

5 years agoBMesh: add BM_vert_splice_check_double
Campbell Barton [Mon, 18 Aug 2014 05:56:34 +0000 (15:56 +1000)]
BMesh: add BM_vert_splice_check_double

checks if splicing verts creates duplicate edges

5 years agoFix T41467: Modifier view buttons changing positions.
Bastien Montagne [Sun, 17 Aug 2014 07:35:57 +0000 (09:35 +0200)]
Fix T41467: Modifier view buttons changing positions.

Commits early in this year (to save some space) broke this. Hopefully this time
it works in all cases - lastCageIndex is no more influenced by realtime/edit active states.
Also, inactivate buttons instead of hiding them, can be useful to set those data
even though it does not have any immediate effect.

Took the opportunity to switch cage buttons to RNA, btw.

5 years agoBLI_array: utility function for searching an array
Campbell Barton [Sun, 17 Aug 2014 05:56:44 +0000 (15:56 +1000)]
BLI_array: utility function for searching an array

5 years agoKnife tool: simplify hit-depth calculation
Campbell Barton [Sun, 17 Aug 2014 02:50:48 +0000 (12:50 +1000)]
Knife tool: simplify hit-depth calculation

5 years agoCleanup
Campbell Barton [Sun, 17 Aug 2014 02:18:40 +0000 (12:18 +1000)]
Cleanup

5 years agoMath Lib: replace epsilon with check against zero
Campbell Barton [Sat, 16 Aug 2014 22:38:24 +0000 (08:38 +1000)]
Math Lib: replace epsilon with check against zero

line-tri intersection depended on scale, The check made small triangles & lines fail.
So just check for divide by zero as ray-cast currently does.

5 years agoFix poll func of CYCLES_OT_use_shading_nodes.
Bastien Montagne [Sat, 16 Aug 2014 20:42:02 +0000 (22:42 +0200)]
Fix poll func of CYCLES_OT_use_shading_nodes.

Operators' poll func might be called from anywhere in Blender, so they should
not make any assumption about available context. material, lamp and world
are specific to context from Properties space...

5 years agoFix filenames in splashscreen.
Bastien Montagne [Sat, 16 Aug 2014 20:21:10 +0000 (22:21 +0200)]
Fix filenames in splashscreen.

For some reason, labels of buttons in popups/menus were clipped left.

Removed that function (was the only place were it was used), clipping text
by its left is really bad for its understanding!

Instead, extended clip_middle code so that it optionnally preserves a right piece of
the given string (like the shortcut part of a menu label). Think that's what makes
more sense here (note that most menus adapt themselves to their longest item,
we do not have much fixed-width ones, anyway).

Also tweaked a bit clip_middle logic, so that left part always have at least ten chars
(in addition to already existing 'min width' checks).

5 years agoMath Lib: add isect_line_line_epsilon_v3
Campbell Barton [Sat, 16 Aug 2014 05:13:11 +0000 (15:13 +1000)]
Math Lib: add isect_line_line_epsilon_v3

5 years agoComments
Campbell Barton [Sat, 16 Aug 2014 00:51:07 +0000 (10:51 +1000)]
Comments

5 years agoFix T41454: Command "Dirty Vertex Colors" prompts Python error.
Bastien Montagne [Fri, 15 Aug 2014 17:50:16 +0000 (19:50 +0200)]
Fix T41454: Command "Dirty Vertex Colors" prompts Python error.

5 years agoFix T41421
Antony Riakiotakis [Fri, 15 Aug 2014 15:31:47 +0000 (17:31 +0200)]
Fix T41421

Don't store selection properties, if those are set in the keymap we can
end uo locking one state forever.

5 years agoFix compilation on linux (implicit conversion from double/float to size_t treated...
Bastien Montagne [Fri, 15 Aug 2014 13:44:50 +0000 (15:44 +0200)]
Fix compilation on linux (implicit conversion from double/float to size_t treated as error here).

5 years agoFix T41427: Region overlap moves into wrong window.
Bastien Montagne [Fri, 15 Aug 2014 13:36:25 +0000 (15:36 +0200)]
Fix T41427: Region overlap moves into wrong window.

There was some fuzzyness in `region_overlap_fix()`, using an 'other side' region
as ref to move current one in case their rect would intersect...

New code is a bit more complex, but should handle nicely all situations, mostly
ensuring we only translate an overlap if we find a previous one **on the same side**,
and ensuring we also never have intersecting overlapping regions from different sides
(since this does not work nice at all).

5 years agoCleanup
Campbell Barton [Fri, 15 Aug 2014 09:59:31 +0000 (19:59 +1000)]
Cleanup

5 years agoFix uninitialized imagepaint values on new scene, report by kopias on
Antony Riakiotakis [Fri, 15 Aug 2014 09:44:31 +0000 (11:44 +0200)]
Fix uninitialized imagepaint values on new scene, report by kopias on
irc

5 years agoCorrection to last commit, rna naming
Campbell Barton [Fri, 15 Aug 2014 09:32:45 +0000 (19:32 +1000)]
Correction to last commit, rna naming

5 years agoFinal Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU
Dalai Felinto [Thu, 31 Jul 2014 23:04:57 +0000 (20:04 -0300)]
Final Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU

It now uses the tile size to split the job. For CPU this may add
overhead, but for GPU this is highly needed.

Reviewers: sergey

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

5 years agoRevert "Fix T41222 Blender gives weird output when baking (4096*4096) resolution...
Dalai Felinto [Wed, 6 Aug 2014 16:10:56 +0000 (13:10 -0300)]
Revert "Fix T41222 Blender gives weird output when baking (4096*4096) resolution on GPU"

This reverts commit a48b372b04421b00644a0660bfdf42229b5ffceb.

Leaving only the part that fix device_multi.cpp

5 years agoSolidify Modifier "Rim Only" Option
Campbell Barton [Fri, 15 Aug 2014 07:26:39 +0000 (17:26 +1000)]
Solidify Modifier "Rim Only" Option

D737 by scorpion81 with own edits

5 years agoModifiers: consider all constructive modifiers as 'preview' ones as well.
Bastien Montagne [Fri, 15 Aug 2014 08:07:39 +0000 (10:07 +0200)]
Modifiers: consider all constructive modifiers as 'preview' ones as well.

Indeed, constructive modifiers are highly likely to modify CDLayers like vgroups or vcols!

See vertexgroup2.blend file ({F93770}) in T40523, especially obvious with subsurf modifier.

5 years agoFix T41443: Separate bug with Curves & Hooks
Sergey Sharybin [Fri, 15 Aug 2014 06:50:21 +0000 (12:50 +0600)]
Fix T41443: Separate bug with Curves & Hooks

This solves the crash, but indices might be wrong after the separation.

There are loads of other ways to confuse hook indices in both meshes and
curves, for now considering this a TODO.

5 years agoColorRamp HSV, HSL Blend Modes
Campbell Barton [Fri, 15 Aug 2014 05:29:08 +0000 (15:29 +1000)]
ColorRamp HSV, HSL Blend Modes

D297 by charlie with own edits

5 years agoCleanup: comment & var name
Campbell Barton [Fri, 15 Aug 2014 04:22:34 +0000 (14:22 +1000)]
Cleanup: comment & var name

5 years agoFix T41435: Info-text lags changing space-types
Campbell Barton [Thu, 14 Aug 2014 22:43:00 +0000 (08:43 +1000)]
Fix T41435: Info-text lags changing space-types

5 years agoUI: avoid spacetype and butspacetype mismatch
Campbell Barton [Thu, 14 Aug 2014 22:39:47 +0000 (08:39 +1000)]
UI: avoid spacetype and butspacetype mismatch

5 years agoCycles: Don't check closure flag in kernel_volume_decoupled_scatter(), we check this...
Thomas Dinges [Thu, 14 Aug 2014 19:25:29 +0000 (21:25 +0200)]
Cycles: Don't check closure flag in kernel_volume_decoupled_scatter(), we check this before the function already.

5 years agoFix 'quick smoke' not rendering anything (texture coordinates was left unset)
Bastien Montagne [Thu, 14 Aug 2014 19:18:12 +0000 (21:18 +0200)]
Fix 'quick smoke' not rendering anything (texture coordinates was left unset)

Not quite sure why default did not work here, might need further investigation.

5 years agoCycles: Optimize Equi-Angular sampling using binary range search.
Thomas Dinges [Thu, 14 Aug 2014 18:21:36 +0000 (20:21 +0200)]
Cycles: Optimize Equi-Angular sampling using binary range search.

Patch by Lukas Tönne and myself.

5 years agoCycles: Optimization for Heterogeneous Volume Shadows.
Thomas Dinges [Thu, 14 Aug 2014 18:09:25 +0000 (20:09 +0200)]
Cycles: Optimization for Heterogeneous Volume Shadows.

* Don't compute expf() for every step, instead sum the intermediate values and calculate it every N (8 for now) steps. This helps a few percent (~5% on a cube with wave texture) in my tests here.

5 years agoCleanup: typos and extra brackets.
Thomas Dinges [Thu, 14 Aug 2014 14:31:34 +0000 (16:31 +0200)]
Cleanup: typos and extra brackets.

5 years agoSwitch sampler icon to the right, it's easier for artists to access.
Antony Riakiotakis [Thu, 14 Aug 2014 14:26:16 +0000 (16:26 +0200)]
Switch sampler icon to the right, it's easier for artists to access.

5 years agoCycles: Avoid intermediate function when we sample all lamps.
Thomas Dinges [Thu, 14 Aug 2014 14:09:40 +0000 (16:09 +0200)]
Cycles: Avoid intermediate function when we sample all lamps.

5 years agoCycles: Avoid segment NULL check, we access it before this function already.
Thomas Dinges [Thu, 14 Aug 2014 13:52:19 +0000 (15:52 +0200)]
Cycles: Avoid segment NULL check, we access it before this function already.

5 years agoPie menus:
Antony Riakiotakis [Thu, 14 Aug 2014 12:17:39 +0000 (14:17 +0200)]
Pie menus:

If user drags away from initial position, menu changes to drag style and
returning to that position won't remake the menu click-style. Allows to
use the threshold indicator to cancel the pie.

5 years agoAaaarh! aaargh!
Antony Riakiotakis [Thu, 14 Aug 2014 12:06:48 +0000 (14:06 +0200)]
Aaaarh! aaargh!

5 years agoLast fix wasn't complete, sorry for that..
Antony Riakiotakis [Thu, 14 Aug 2014 12:04:29 +0000 (14:04 +0200)]
Last fix wasn't complete, sorry for that..

5 years agoDeactivate last active button for pie menu popups.
Antony Riakiotakis [Thu, 14 Aug 2014 11:18:07 +0000 (13:18 +0200)]
Deactivate last active button for pie menu popups.

5 years agoFix crash on texture painting after new scene is added, reported by
Antony Riakiotakis [Thu, 14 Aug 2014 11:06:40 +0000 (13:06 +0200)]
Fix crash on texture painting after new scene is added, reported by
kopias on irc, thanks.

5 years agoOSX/SCONS/buildbot: last commit made BF_COLLADA_LIB tweak obsolete
Jens Verwiebe [Thu, 14 Aug 2014 10:19:15 +0000 (12:19 +0200)]
OSX/SCONS/buildbot: last commit made BF_COLLADA_LIB tweak obsolete