blender-staging.git
5 years agoCleanup: Remove unused variable in kernel_path_volume_bounce().
Thomas Dinges [Sun, 24 Aug 2014 21:06:30 +0000 (23:06 +0200)]
Cleanup: Remove unused variable in kernel_path_volume_bounce().

5 years agoCycles: Avoid redundant call to volume_stack_is_heterogeneous() for Distance Sampling.
Thomas Dinges [Sun, 24 Aug 2014 14:15:57 +0000 (16:15 +0200)]
Cycles: Avoid redundant call to volume_stack_is_heterogeneous() for Distance Sampling.

5 years agoCycles: Avoid call to volume_stack_sampling_method() on GPU, Decoupled is required...
Thomas Dinges [Sun, 24 Aug 2014 13:58:41 +0000 (15:58 +0200)]
Cycles: Avoid call to volume_stack_sampling_method() on GPU, Decoupled is required for Equi-Angular/MIS.

5 years agoCycles: Remove Volume Nodes GPU warning and gray out Sampling Method button when...
Thomas Dinges [Sun, 24 Aug 2014 12:54:48 +0000 (14:54 +0200)]
Cycles: Remove Volume Nodes GPU warning and gray out Sampling Method button when using GPU.

5 years agoFix T41548: Menu pulldown button behaves incorrectly on click if menu shadow width...
Bastien Montagne [Sun, 24 Aug 2014 08:22:03 +0000 (10:22 +0200)]
Fix T41548: Menu pulldown button behaves incorrectly on click if menu shadow width is set to 0 in theme prefs.

This is more like a workaround actually, we use a fixed 'margin' for height in case of search menus,
instead of using shadow width (which gave the bug with low values, and insane margins with big ones).

Note root of the issue is that if 'top' margin is too small, the first entry of the search menu
gets activated before the 'opening' click is released. This means that button will get the
KM_RELEASE event, and immediately quit (see interface_handlers.c:7945, ui_handle_menu_button()).

5 years agoFix T41550: Python: frame_set skips frame -1; frame_set(n) sets to frame n-1 for...
Bastien Montagne [Sun, 24 Aug 2014 06:57:01 +0000 (08:57 +0200)]
Fix T41550: Python: frame_set skips frame -1; frame_set(n) sets to frame n-1 for (only) negative number n, and sets to frame n for non-negative number n.

This appeared in rBrB94cb20ff4e78b, purposedly it seems, but without even
a single line of comment to explain why this was needed. For now, remove it.

5 years agoColorRamp: remove linear/srgb conversions
Campbell Barton [Sun, 24 Aug 2014 02:56:34 +0000 (12:56 +1000)]
ColorRamp: remove linear/srgb conversions

Turns out these aren't needed

5 years agogameengine: fix T41272 - KX_Light.color returns wrong values
Ines Almeida [Sat, 23 Aug 2014 18:24:19 +0000 (20:24 +0200)]
gameengine: fix T41272 - KX_Light.color returns wrong values

5 years agoFix T41538: Sun Beam Node has artifact at its radius.
Lukas Tönne [Sat, 23 Aug 2014 14:14:11 +0000 (16:14 +0200)]
Fix T41538: Sun Beam Node has artifact at its radius.

The sunbeams node was clamping the range of influence to start at 1
pixel distance from the source. This was a poor fix for artifacts caused
by an off set in buffer coordinates. Since the u coordinate starts at
ceil(umax) the v coordinate also has to use ceil. This also fixes some
discontinuities that became visible when the source point is close to
a sharp line in the input image.

5 years agoSmallhash: BLI_smallhash_calc_quality
Campbell Barton [Sat, 23 Aug 2014 11:15:15 +0000 (21:15 +1000)]
Smallhash: BLI_smallhash_calc_quality

Also add inline hashing function to measure different methods.

5 years agoBGE: fix crash and return boolean on scene.replace()
Benoit Bolsee [Sat, 23 Aug 2014 10:31:32 +0000 (12:31 +0200)]
BGE: fix crash and return boolean on scene.replace()

Scene replacement with invalid scene name was crashing blender,
now it's a no-op.
KS_Scene.replace() to return a boolean to indicate if the scene
is valid and is scheduled for replacement. This allows more
robust game management.

5 years agoFix T41541: Cuda renders objects in black with MIS enabled in world setting
Thomas Dinges [Fri, 22 Aug 2014 18:09:40 +0000 (20:09 +0200)]
Fix T41541: Cuda renders objects in black with MIS enabled in world setting

Issue introduced in 8d3cc431d7fdcc9f3243cc24dfdcb94124be0993, parameter mismatch.

5 years agoCycles: DPX is saved in the sRGB space and need to be converted to linear
Sergey Sharybin [Fri, 22 Aug 2014 17:52:29 +0000 (23:52 +0600)]
Cycles: DPX is saved in the sRGB space and need to be converted to linear

This at least applies to DPX saved from within blender, which is 1st prio
to support working reliably.

5 years agoFix missing tag for detecting changes with bpy.data.node_groups[...].is_updated.
Brecht Van Lommel [Fri, 22 Aug 2014 13:51:15 +0000 (15:51 +0200)]
Fix missing tag for detecting changes with bpy.data.node_groups[...].is_updated.

5 years agoCycles: Fix wrong image update tagging, float vs. byte images
Sergey Sharybin [Fri, 22 Aug 2014 11:36:00 +0000 (17:36 +0600)]
Cycles: Fix wrong image update tagging, float vs. byte images

5 years agoFix T41068: 3D viewport shading - Material or Window vs. Rendered
Sergey Sharybin [Fri, 22 Aug 2014 10:14:08 +0000 (16:14 +0600)]
Fix T41068: 3D viewport shading - Material or Window vs. Rendered

Checked with Brecht, Cycles indeed expects generated to be in 0..1 space
instead of -1..1 as it is in BI.

5 years agoCleanup: BMesh arg name
Campbell Barton [Fri, 22 Aug 2014 06:16:19 +0000 (16:16 +1000)]
Cleanup: BMesh arg name

5 years agoFix T41528: Error message on trying to import COLLADA triangle strips is wrong
Thomas Dinges [Fri, 22 Aug 2014 00:46:29 +0000 (02:46 +0200)]
Fix T41528: Error message on trying to import COLLADA triangle strips is wrong

Thanks to Maarten Gribnau for the patch.

5 years agoColorRamp: Use linear V for HSV/HSL blending
Campbell Barton [Thu, 21 Aug 2014 23:50:10 +0000 (09:50 +1000)]
ColorRamp: Use linear V for HSV/HSL blending

This matches RGB blending black/white for eg.

5 years agoColorRamp: HSV CW/CCW were flipped
Campbell Barton [Thu, 21 Aug 2014 23:47:10 +0000 (09:47 +1000)]
ColorRamp: HSV CW/CCW were flipped

5 years agoCycles: Drop support for CUDA 5.0 Toolkit, only 6.0 and 6.5 (recommended) are support...
Thomas Dinges [Thu, 21 Aug 2014 21:35:20 +0000 (23:35 +0200)]
Cycles: Drop support for CUDA 5.0 Toolkit, only 6.0 and 6.5 (recommended) are supported now.

5 years agoFix T41267: Wrong light distribution with when having objects with motion blur
Sergey Sharybin [Thu, 21 Aug 2014 11:56:25 +0000 (17:56 +0600)]
Fix T41267: Wrong light distribution with when having objects with motion blur

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