6 years agoFix -1 passed as bool
Campbell Barton [Fri, 18 Jul 2014 01:51:48 +0000 (11:51 +1000)]
Fix -1 passed as bool

6 years agoFix a BI bug: when an object had dupliobjects children, it was never rendered at...
Bastien Montagne [Thu, 17 Jul 2014 22:04:10 +0000 (00:04 +0200)]
Fix a BI bug: when an object had dupliobjects children, it was never rendered at all,
even if having particle systems.

This was not matching behavior of Cycles and 3DView!

6 years agoFix T41113: Hide doesn't work on particle systems
Bastien Montagne [Thu, 17 Jul 2014 21:49:08 +0000 (23:49 +0200)]
Fix T41113: Hide doesn't work on particle systems

Particles could completely cancel Hide flag! 'Accumulative' bool is not a really good idea here,
hide (or render-hide) are some kind of 'absolute' no-go.

Found another issue in that area, duplicated objects would still show in 'render override' mode,
when object was render-disabled.

Hopefully things are better now.

6 years agoAdd helper to validate (and fix) material indices of meshes' polygons, curves' spline...
Bastien Montagne [Thu, 17 Jul 2014 15:12:12 +0000 (17:12 +0200)]
Add helper to validate (and fix) material indices of meshes' polygons, curves' splines and texts' letters.

Useful especially for importer addons.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

6 years agoBake-API: progress (bar) working
Dalai Felinto [Thu, 17 Jul 2014 13:29:18 +0000 (10:29 -0300)]
Bake-API: progress (bar) working

Note: This makes no change to the user, the render engine (Cycles) still
need to update the progress during baking. But this is the Blender side
of this.

6 years agoBGE: rtsp support for VideoTexture (video streaming)
Dalai Felinto [Thu, 17 Jul 2014 13:29:09 +0000 (10:29 -0300)]
BGE: rtsp support for VideoTexture (video streaming)

In collaboration with Benoit Bolsee (mainly doing it under his

Note: FFmpeg lib needs to be compiled with rtsp support for this to

Bug 1/2 of T41004

6 years agoFix T34664: bevel face material can be set in tool and modifier.
Howard Trickey [Thu, 17 Jul 2014 13:20:22 +0000 (09:20 -0400)]
Fix T34664: bevel face material can be set in tool and modifier.

Now the bevel tool, modifier, and internal operator have a material
slot # parameter that the user can set. If left at default of -1,
behavior is as current -- bevel face material is taken from the
closest original face (this may be ambiguous). If material slot
is >= 0, it gives the material slot index number for the material
to use.

6 years agoUse compiler attributes for more BLI libs
Campbell Barton [Thu, 17 Jul 2014 08:56:13 +0000 (18:56 +1000)]
Use compiler attributes for more BLI libs

6 years agoFix for bmesh_vert_separate adding to visithash multiple times
Campbell Barton [Thu, 17 Jul 2014 07:46:55 +0000 (17:46 +1000)]
Fix for bmesh_vert_separate adding to visithash multiple times

6 years agoCorrect error in recelty added BM_face_split_edgenet
Campbell Barton [Thu, 17 Jul 2014 07:12:32 +0000 (17:12 +1000)]
Correct error in recelty added BM_face_split_edgenet

Was copying UV's to unrelated faces

6 years agoCorrect previous commit - space crept in patch
Campbell Barton [Thu, 17 Jul 2014 05:02:02 +0000 (15:02 +1000)]
Correct previous commit - space crept in patch

6 years agoAdd thousands separators to scene stats (D646)
Campbell Barton [Thu, 17 Jul 2014 04:54:12 +0000 (14:54 +1000)]
Add thousands separators to scene stats (D646)

by januz with own modifications

6 years agobmesh py api: add bmesh.utils.vert_splice(...)
Campbell Barton [Thu, 17 Jul 2014 02:22:09 +0000 (12:22 +1000)]
bmesh py api: add bmesh.utils.vert_splice(...)

6 years agobmesh py api: BPY_BM_CHECK_SOURCE_* macro now accepts multiple args
Campbell Barton [Thu, 17 Jul 2014 00:11:43 +0000 (10:11 +1000)]
bmesh py api: BPY_BM_CHECK_SOURCE_* macro now accepts multiple args

6 years agoFollow-up to code cleanup in rB415af0b: Keep compound terms as they are.
Tamito Kajiyama [Thu, 17 Jul 2014 00:23:30 +0000 (09:23 +0900)]
Follow-up to code cleanup in rB415af0b: Keep compound terms as they are.

6 years agoCleanup: dead code
Campbell Barton [Wed, 16 Jul 2014 22:25:48 +0000 (08:25 +1000)]
Cleanup: dead code

6 years agoBMesh: use compiler attributes for queries, structure
Campbell Barton [Wed, 16 Jul 2014 07:30:01 +0000 (17:30 +1000)]
BMesh: use compiler attributes for queries, structure

6 years agoBMesh: Add BM_vert_pair_share_face_check
Campbell Barton [Wed, 16 Jul 2014 07:12:08 +0000 (17:12 +1000)]
BMesh: Add BM_vert_pair_share_face_check

Use to assert if BM_vert_splice is used incorrectly

6 years agoCleanup / Cycles: Remove unused defines and some other minor changes.
Thomas Dinges [Wed, 16 Jul 2014 20:36:31 +0000 (22:36 +0200)]
Cleanup / Cycles: Remove unused defines and some other minor changes.

6 years agoFix T41075: Segfault when attempting to escape from bone translation.
Bastien Montagne [Wed, 16 Jul 2014 15:29:03 +0000 (17:29 +0200)]
Fix T41075: Segfault when attempting to escape from bone translation.

Minor logical error in rBb617d6d5 ;)

6 years agoClean up of dead code.
Bastien Montagne [Wed, 16 Jul 2014 14:25:41 +0000 (16:25 +0200)]
Clean up of dead code.

dm can’t be NULL here (found by Coverity).

6 years agoAutomatic commit by arc
gaiaclary [Wed, 16 Jul 2014 11:50:47 +0000 (13:50 +0200)]
Automatic commit by arc

6 years agoSort vertex groups by Armature Hierarchy
gaiaclary [Mon, 14 Jul 2014 18:35:46 +0000 (20:35 +0200)]
Sort vertex groups by Armature Hierarchy

Sort vertex groups by Armature Hierarchy

Reviewers: mont29

Differential Revision:

6 years agoFix T41088: Canceling pose library preview does not reset to previous pose.
Bastien Montagne [Wed, 16 Jul 2014 10:53:17 +0000 (12:53 +0200)]
Fix T41088: Canceling pose library preview does not reset to previous pose.

6 years agoBMesh: optimize BM_vert_splice to avoid getting a loop array first
Campbell Barton [Wed, 16 Jul 2014 06:38:41 +0000 (16:38 +1000)]
BMesh: optimize BM_vert_splice to avoid getting a loop array first

6 years agoCleanup: Adhere to our naming convention for BKE_linestyle.h API
Campbell Barton [Wed, 16 Jul 2014 05:13:40 +0000 (15:13 +1000)]
Cleanup: Adhere to our naming convention for BKE_linestyle.h API

6 years agoRenamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().
Tamito Kajiyama [Wed, 16 Jul 2014 04:36:39 +0000 (13:36 +0900)]
Renamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().

The function is to retrieve the active line style ID datablock from a scene and
there is nothing related to bContext.

6 years agobmesh py api: add BMesh.calc_tessface()
Campbell Barton [Wed, 16 Jul 2014 01:57:28 +0000 (11:57 +1000)]
bmesh py api: add BMesh.calc_tessface()

6 years agobmesh py api: add typed tuple-from-array functions
Campbell Barton [Wed, 16 Jul 2014 01:50:34 +0000 (11:50 +1000)]
bmesh py api: add typed tuple-from-array functions

6 years agoBLI_kdopbvh: assert for bad input
Campbell Barton [Wed, 16 Jul 2014 01:11:18 +0000 (11:11 +1000)]
BLI_kdopbvh: assert for bad input

also hint UNLIKELY branches

6 years agoBLF: avoid float/int conversion drawing glyphs
Campbell Barton [Wed, 16 Jul 2014 01:09:42 +0000 (11:09 +1000)]
BLF: avoid float/int conversion drawing glyphs

also use UNLIKELY for error cases

6 years agoFix T40146: BGE Compound parent crash
Mitchell Stokes [Wed, 16 Jul 2014 00:52:01 +0000 (17:52 -0700)]
Fix T40146: BGE Compound parent crash

6 years agoSelective changes picked from: e01449fa4bb0df252d32a3b98ee1e8f195923d96
Martijn Berger [Tue, 15 Jul 2014 14:33:05 +0000 (16:33 +0200)]
Selective changes picked from: e01449fa4bb0df252d32a3b98ee1e8f195923d96
Author: Jason Wilkins

Improves cmake's ability to find our libraries on Windows / MSVC 2013

6 years agoBLI_kdopbvh: Replace realloc's with BLI_stack
Campbell Barton [Tue, 15 Jul 2014 11:35:50 +0000 (21:35 +1000)]
BLI_kdopbvh: Replace realloc's with BLI_stack

6 years agoBLI_stack: various small additions
Campbell Barton [Tue, 15 Jul 2014 10:37:06 +0000 (20:37 +1000)]
BLI_stack: various small additions

- add BLI_stack_count
- add BLI_stack_pop_n to pop into an array
- add BLI_stack_push_r, which returns a pointer that can be filled in

Also remove sanity check in BLI_stack_pop, assert if the stack is empty.

6 years agoFix T40964: Massive shading failures with glass node mixing, whiteouts and blackouts
Sergey Sharybin [Tue, 15 Jul 2014 09:56:40 +0000 (15:56 +0600)]
Fix T40964: Massive shading failures with glass node mixing, whiteouts and blackouts

6 years agoNo preemptive removal of muted and reroute nodes from compositor node
Lukas Tönne [Tue, 15 Jul 2014 09:00:59 +0000 (11:00 +0200)]
No preemptive removal of muted and reroute nodes from compositor node
trees for localization (previews and viewer evaluation).

This is handled entirely by the compositor already. Doing this during
localization is redundant and risks divergent behavior.

6 years agoFix T41067: Muted nodes still do data type conversions.
Lukas Tönne [Tue, 15 Jul 2014 08:55:49 +0000 (10:55 +0200)]
Fix T41067: Muted nodes still do data type conversions.

Proxy operations from muted nodes would still create conversion
operations where the datatypes don't match, which creates unexpected
behavior. Arguably datatype conversion could still happen even when the
main operation is muted, but this would be a design change and so is
disabled now.

6 years agoEdgehash: Improve magic number for hashing
Campbell Barton [Tue, 15 Jul 2014 03:06:33 +0000 (13:06 +1000)]
Edgehash: Improve magic number for hashing

Gives consistently better results. Tested with wide variety of meshes.

6 years agoFix T41074: Several Mouse Look actuators not working well together when reset button...
Mitchell Stokes [Tue, 15 Jul 2014 01:36:27 +0000 (18:36 -0700)]
Fix T41074: Several Mouse Look actuators not working well together when reset button are set in one or several of them

Fix provided by lordloki (Jorge Bernal)

6 years agoBGE: TrackTo actuator: increasing up & track axis options
Jorge Bernal [Tue, 15 Jul 2014 00:36:56 +0000 (17:36 -0700)]
BGE: TrackTo actuator: increasing up & track axis options

This is related to Task T34861 to increase up & track axis options for TrackTo actuator. I've just added it to differential to facilitate an easier review.

With the patch applied you can select X, Y and Z axis for the Up axis, and X, Y, Z, -X, -Y and -Z for the track axis.

Related to the implementation I have used the algorithm from Trackto constrain placed in constrain.c but adapted to be used with MOTO library.

The wiki docs are here (

Test file is here: {F97623}

I have also uploaded 2 screenshots showing the UI modifications to the TrackTo actuator:

{F91992} {F91990}

Reviewers: moguri, dfelinto

Reviewed By: moguri

CC: Genome36
Differential Revision:

6 years agoFix T41044 Cycles Bake: world space location affects object space normal pass
Dalai Felinto [Mon, 14 Jul 2014 20:49:30 +0000 (17:49 -0300)]
Fix T41044 Cycles Bake: world space location affects object space normal pass

6 years agoFollow up to previous commit.
Antony Riakiotakis [Mon, 14 Jul 2014 14:49:00 +0000 (17:49 +0300)]
Follow up to previous commit.

* Expose is_tablet property to events to determine if event contains
tablet data.
* Expose tablet tilt for events as a 2D vector in python

6 years agoFeature request:
Antony Riakiotakis [Mon, 14 Jul 2014 13:59:35 +0000 (16:59 +0300)]
Feature request:

Expose pressure from event system to python. This will return the tablet
pressure, if a tablet is present, or 1.0 if not.

6 years agoGHash, EdgeHash: add debugging function to measure the hash quality
Campbell Barton [Mon, 14 Jul 2014 13:59:47 +0000 (23:59 +1000)]
GHash, EdgeHash: add debugging function to measure the hash quality

Can use to check on improvements to hash functions.

6 years agoError in last commit
Campbell Barton [Mon, 14 Jul 2014 11:34:51 +0000 (21:34 +1000)]
Error in last commit

6 years agoPy/API: add bmesh.utils.face_split_edgenet
Campbell Barton [Mon, 14 Jul 2014 11:31:06 +0000 (21:31 +1000)]
Py/API: add bmesh.utils.face_split_edgenet

6 years agoTooltip improvements for modifier functions
gaiaclary [Mon, 14 Jul 2014 09:50:01 +0000 (11:50 +0200)]
Tooltip improvements for modifier functions

6 years agoRemove redundant NULL check
Campbell Barton [Mon, 14 Jul 2014 04:23:23 +0000 (14:23 +1000)]
Remove redundant NULL check

6 years agoBMesh: avoid redundant normalize comparing angles
Campbell Barton [Mon, 14 Jul 2014 04:22:15 +0000 (14:22 +1000)]
BMesh: avoid redundant normalize comparing angles

6 years agoMath Lib: add compare_len_squared_v3v3 from paint branch
Campbell Barton [Mon, 14 Jul 2014 01:55:38 +0000 (11:55 +1000)]
Math Lib: add compare_len_squared_v3v3 from paint branch

6 years agoMath Lib: accept a limit of 0.0 when comparing vectors
Campbell Barton [Mon, 14 Jul 2014 01:33:19 +0000 (11:33 +1000)]
Math Lib: accept a limit of 0.0 when comparing vectors

6 years agoTooltip improvements for modifier functions
gaiaclary [Sun, 13 Jul 2014 19:52:35 +0000 (21:52 +0200)]
Tooltip improvements for modifier functions

6 years agoFreestyle: minor docstring fixes.
Tamito Kajiyama [Sat, 12 Jul 2014 17:12:22 +0000 (02:12 +0900)]
Freestyle: minor docstring fixes.

6 years agoFollowup to rB320b7a59c3eed: also handle background image ID refcount when duplicatin...
Bastien Montagne [Sun, 13 Jul 2014 13:16:01 +0000 (15:16 +0200)]
Followup to rB320b7a59c3eed: also handle background image ID refcount when duplicating/freeing View3D.

6 years agoFix T40987: Distant Lamps have no influence on Volumes.
Thomas Dinges [Sun, 13 Jul 2014 10:06:31 +0000 (12:06 +0200)]
Fix T40987: Distant Lamps have no influence on Volumes.

Differential Revision:

6 years agoBMesh: minor speedup to BM_face_split_edgenet
Campbell Barton [Sun, 13 Jul 2014 03:53:08 +0000 (13:53 +1000)]
BMesh: minor speedup to BM_face_split_edgenet

6 years agoBMesh: remove error check on radial loops and consistent naming
Campbell Barton [Sun, 13 Jul 2014 02:55:53 +0000 (12:55 +1000)]
BMesh: remove error check on radial loops and consistent naming

6 years agoReplace BLI_SMALLSTACK_FREE with fake user (quiet warnings in msvc)
Campbell Barton [Sat, 12 Jul 2014 06:48:52 +0000 (16:48 +1000)]
Replace BLI_SMALLSTACK_FREE with fake user (quiet warnings in msvc)

6 years agoCode Cleanup: use const
Campbell Barton [Fri, 11 Jul 2014 23:07:51 +0000 (09:07 +1000)]
Code Cleanup: use const

6 years agoBGE debug API and actuator
HG1 [Fri, 11 Jul 2014 22:18:43 +0000 (15:18 -0700)]
BGE debug API and actuator

This patch adds some new debug methods to the KX_GameObject for manually adding the debug list and bge.render for controlling the debug visualization.
It also adds a new debug actuator, which allows to control the same functions.

This patch is a updated version of T33701.

Thread on Blenderartists:

Reviewers: moguri

Reviewed By: moguri

Differential Revision:

6 years agoCorrect error in BM_face_split_edgenet when no faces are split
Campbell Barton [Fri, 11 Jul 2014 08:28:57 +0000 (18:28 +1000)]
Correct error in BM_face_split_edgenet when no faces are split

6 years agoFix potential bug in loop normals code.
Bastien Montagne [Fri, 11 Jul 2014 17:52:43 +0000 (19:52 +0200)]
Fix potential bug in loop normals code.

Even if we cannot use computed lnor, we still have to empty the fan stack of lnors!

6 years agoAnother attempt for T40981, clipping border does not work with GLSL on
Antony Riakiotakis [Fri, 11 Jul 2014 16:17:29 +0000 (19:17 +0300)]
Another attempt for T40981, clipping border does not work with GLSL on

This is actually a test to see if this can be enabled on ATI cards.
According to various sources, newer ATI cards supporting GLSL 3.0
support gl_ClippingDistance in shaders, which is the forward compatible
way to do custom clipping.

This fix will bind 6 additional varying variables on ATIs, which may
lead to some shaders not compiling due to limiting out of those
variables, or to performance degradation. Also I do not have an ATI
handy to test.

Having those in mind, this commit may well be reverted later.

Clipping planes are usually 4 (6 is for cube clipping), but making
shaders depend on viewport state is really bad, and would lead to
recompilation, so I took the worst case here to avoid that.
Hopefully driver does some optimization there.

6 years agoView3D Walk: Use scene gravity instead of hardcoded value (fix T40921)
Dalai Felinto [Mon, 7 Jul 2014 15:46:25 +0000 (12:46 -0300)]
View3D Walk: Use scene gravity instead of hardcoded value (fix T40921)

Differential Revision:

6 years agoView3D Walk: Rename gravity by gravity_state (cleanup)
Dalai Felinto [Mon, 7 Jul 2014 15:30:43 +0000 (12:30 -0300)]
View3D Walk: Rename gravity by gravity_state (cleanup)

6 years agoFix T41023: Specific material cause bad render result, different on CPU/GPU
Sergey Sharybin [Fri, 11 Jul 2014 12:19:14 +0000 (18:19 +0600)]
Fix T41023: Specific material cause bad render result, different on CPU/GPU

Issue was caused by too much aggressive optimization, which skipped execution
of some nodes leading to an uninitialized memory read in SVM stack.

6 years agoFix T41019: Calculate Mass does not calculate actual volume.
Lukas Tönne [Fri, 11 Jul 2014 10:06:13 +0000 (12:06 +0200)]
Fix T41019: Calculate Mass does not calculate actual volume.

This was a ToDo item, for mesh-based rigid body shapes (trimesh, convex)
the operator was simply using the bounding box volume, which can grossly
overestimate the volume and mass.

Calculating the actual volume of a mesh is not so difficult after all,
see e.g.

This patch also allows calculating the center-of-mass in the same way.
This is currently unused, because the rigid body system assumes the CoM
to be the same as the geometric object center. This is fine most of the
time, adding such user settings for "center-of-mass offset" would also
add quite a bit of complexity in user space, but it could be necessary
at some point. A number of other physical properties could be calculated
using the same principle, e.g. the moment of inertia.

6 years agoBLI_array: avoid mixing terms count/length
Campbell Barton [Fri, 11 Jul 2014 05:30:42 +0000 (15:30 +1000)]
BLI_array: avoid mixing terms count/length

6 years agoFix T40257: Frustum culling not working properly
Mitchell Stokes [Fri, 11 Jul 2014 05:11:25 +0000 (22:11 -0700)]
Fix T40257: Frustum culling not working properly

This is mostly the same fix as before, but now code depending on culling
checks is executed after KX_Scene->CalculateVisibleMeshes(). As a
side-effect, LoD checks and animation culling now use the current
frame's culling information rather than the previous frame's.

6 years agoWM: add WM_operator_properties_create_ptr
Campbell Barton [Fri, 11 Jul 2014 05:07:55 +0000 (15:07 +1000)]
WM: add WM_operator_properties_create_ptr

Call operator types directly and avoid a lookup when their known.

6 years agoAdd mesh tool to split faces by wire edges (face menu)
Campbell Barton [Fri, 11 Jul 2014 00:32:33 +0000 (10:32 +1000)]
Add mesh tool to split faces by wire edges (face menu)

This can be used in a similar way to the knife tool, but the edges are manually setup first.

6 years agoBMesh: new face splitting function BM_face_split_edgenet
Campbell Barton [Fri, 11 Jul 2014 00:29:53 +0000 (10:29 +1000)]
BMesh: new face splitting function BM_face_split_edgenet

This takes a face and an edge-net, splitting the face into regions
defined by the edge-net.

6 years agoCycles: Add link to a paper used for Beckmann table calculation
Sergey Sharybin [Thu, 10 Jul 2014 11:55:56 +0000 (17:55 +0600)]
Cycles: Add link to a paper used for Beckmann table calculation

This is for those who'll be reading code and trying to improve it.

6 years agoFix T41005: Seemingly random crashes with cycles rendering
Sergey Sharybin [Thu, 10 Jul 2014 11:42:38 +0000 (17:42 +0600)]
Fix T41005: Seemingly random crashes with cycles rendering
Fix T41013: OSL and Crash
Fix T40989: Intermittent crash clicking material color selector

Issue was caused by not enough precision for inversion threshold.
Use double precision for this threshold now. We might want to
investigate this code a bit more further, stock implementation
uses doubles for all computation. Using floats might be a reason
of bad rows distribution in theory.

6 years agoFix for invalid memory access in graph editor when deleting the last
Lukas Tönne [Thu, 10 Jul 2014 11:02:22 +0000 (13:02 +0200)]
Fix for invalid memory access in graph editor when deleting the last
vertex in a fcurve.

6 years agoFix compilation error with scons when building from detached head
Sergey Sharybin [Thu, 10 Jul 2014 10:23:48 +0000 (16:23 +0600)]
Fix compilation error with scons when building from detached head

6 years agoRevert "Fix T40257: Frustum culling not working properly"
Mitchell Stokes [Thu, 10 Jul 2014 05:34:45 +0000 (22:34 -0700)]
Revert "Fix T40257: Frustum culling not working properly"

This reverts commit 978dba4616852e0b94374f2ae56934049d9b3669. The change
still doesn't provide accurate culling information, and actually breaks
animation culling.

6 years agoNeed to disable Libmv for cudakernels target
Sergey Sharybin [Thu, 10 Jul 2014 04:56:38 +0000 (10:56 +0600)]
Need to disable Libmv for cudakernels target

This way no access to automated tests variables will happen.

Ideally it should be something more like using blenderlite
with just Cycles enabled, but let's keep it for a bigger
clean up.

6 years agoSCons: Hopefully final fix for 32bit linux buildbot
Sergey Sharybin [Thu, 10 Jul 2014 04:47:01 +0000 (10:47 +0600)]
SCons: Hopefully final fix for 32bit linux buildbot

No need to run automated tests for cudakernels target. TThis could
be harmless because CUDA binaries are built in the another chroot.

6 years agoFix T40909: BGE softbodies broken.
Mitchell Stokes [Thu, 10 Jul 2014 04:32:33 +0000 (21:32 -0700)]
Fix T40909: BGE softbodies broken.

Looks like softbody settings got lost in a recent cleanup.

6 years agoCleanup: Same thing in path trace setup, we can safely always assign the proper value.
Thomas Dinges [Wed, 9 Jul 2014 23:49:34 +0000 (01:49 +0200)]
Cleanup: Same thing in path trace setup, we can safely always assign the proper value.

6 years agoCleanup: Always assign num_samples, there is no need for this special define.
Thomas Dinges [Wed, 9 Jul 2014 23:43:53 +0000 (01:43 +0200)]
Cleanup: Always assign num_samples, there is no need for this special define.

6 years agoFurther tweaks to SCons's auto tests
Sergey Sharybin [Wed, 9 Jul 2014 21:53:37 +0000 (03:53 +0600)]
Further tweaks to SCons's auto tests

We should do autotests only after setting path to sconsign,
otherwise using the same working directory and different
build directories will eventually break.

6 years agoAnother attempt to fix issues with 32bit OSX and scons
Sergey Sharybin [Wed, 9 Jul 2014 20:33:44 +0000 (02:33 +0600)]
Another attempt to fix issues with 32bit OSX and scons

6 years agoAttempt to fix compilation error on 32bit OSX and SCons
Sergey Sharybin [Wed, 9 Jul 2014 20:19:41 +0000 (02:19 +0600)]
Attempt to fix compilation error on 32bit OSX and SCons

6 years agoBuildbot: enable cubins fox OSX
Sergey Sharybin [Wed, 9 Jul 2014 19:43:30 +0000 (01:43 +0600)]
Buildbot: enable cubins fox OSX

With new buildbot env they should be all fine.

6 years agoAttempt to mitigate issue T40981
Antony Riakiotakis [Wed, 9 Jul 2014 18:24:37 +0000 (21:24 +0300)]
Attempt to mitigate issue T40981

Clipping border causes a software fallback on ATIs. We have disabled it
in that case but from minor digging on the net seems like Intels support
this, so enable.

6 years agoFix T40997, artifacts when unhiding part of the mesh in dyntopo.
Antony Riakiotakis [Wed, 9 Jul 2014 17:13:22 +0000 (20:13 +0300)]
Fix T40997, artifacts when unhiding part of the mesh in dyntopo.

Tagging a face as hidden should not be done only when hiding.

6 years agoFix T40991, mirrored armatures not restored properly when cancelling.
Antony Riakiotakis [Wed, 9 Jul 2014 16:58:48 +0000 (19:58 +0300)]
Fix T40991, mirrored armatures not restored properly when cancelling.

Issue here is that we force mirroring even if original armature is not

We could be smart and store only unselected mirrored bones here (since
those will get restored from transdata), however not all properties were
getting stored and restored; rolling bones still suffered from the bug
for instance.

To fix this we need to restore all properties that armature mirroring
overrides. Transdata obviously does not offer a lot of space here, so I
used TransInfo->customdata to store an array of initial parameters of
the mirrored bones.

6 years agoFix T41003: Object Info's Random socket produces erratic results when
Lukas Tönne [Wed, 9 Jul 2014 15:24:31 +0000 (17:24 +0200)]
Fix T41003: Object Info's Random socket produces erratic results when
material is applied to multiple Dupli instances of an object.

One of the random_id initialization lines for cycles objects slipped
into the basic update part in this commit:

This would constantly re-shuffle the random_id ...

6 years agoImplement Start Resolution for preview render in BI
Sergey Sharybin [Wed, 9 Jul 2014 13:02:07 +0000 (19:02 +0600)]
Implement Start Resolution for preview render in BI

So now viewport render resolution division works exactly the same as in Cycles.

6 years agoCleanup: silent C++11 warning (implicit double to float conversion) in Collada code.
Bastien Montagne [Wed, 9 Jul 2014 13:10:59 +0000 (15:10 +0200)]
Cleanup: silent C++11 warning (implicit double to float conversion) in Collada code.

6 years agoCleanup: get rid of magic numbers.
Bastien Montagne [Wed, 9 Jul 2014 13:05:06 +0000 (15:05 +0200)]
Cleanup: get rid of magic numbers.

6 years agoFix T40939: Border render and SSS doesn't work correct in rendered viewport
Sergey Sharybin [Wed, 9 Jul 2014 11:57:32 +0000 (17:57 +0600)]
Fix T40939: Border render and SSS doesn't work correct in rendered viewport

There were some missing updates in the viewport render job which lead to
wrong SSS mapping on the final resolution.

There was also wrong scaling applying when border render is used.

And last but not least(?) strands render was using first level of the
resolution leading to really thick strands in the final viewport.

6 years agoFix T40164: Linking a Group of linked Groups don't take Dupli Visibility
Lukas Tönne [Wed, 9 Jul 2014 10:17:05 +0000 (12:17 +0200)]
Fix T40164: Linking a Group of linked Groups don't take Dupli Visibility

Problem was that object layers are defined by duplis as the top-level
duplicator layers. This happens //during// the duplilist construction,
which breaks group layer checks for subsequent instances and hides them.
Now the duplilist generators leave Object DNA untouched, the
modification of layers for drawing, rendering, etc. happens afterward
in the duplilist_apply/restore functions, as a kind of second pass.

6 years agoFix T40980: Exporting animation in MPEG Matroska using ffv1 and FLAC codecs fails
Sergey Sharybin [Wed, 9 Jul 2014 09:39:41 +0000 (15:39 +0600)]
Fix T40980: Exporting animation in MPEG Matroska using ffv1 and FLAC codecs fails

6 years agoAdd and bone_groups.remove() methods to RNA.
Bastien Montagne [Wed, 9 Jul 2014 08:27:31 +0000 (10:27 +0200)]
Add and bone_groups.remove() methods to RNA.

To do so, matching BKE 'API' was also refactored a bit:
* Get Pose data instead of Object, as parameter;
* Removed some sanity checks not needed at such a low level (callers are supposed to do that);
* You can now remove an arbitrary bone group, not only the active one.

Based on patch by pkrime (Paolo Acampora), with own edits.

Reviewers: #python, pkrime, aligorith

Reviewed By: aligorith

Differential Revision:

6 years agoFreestyle: fix for crash in the constructor of freestyle.types.StrokeVertexIterator.
Tamito Kajiyama [Wed, 9 Jul 2014 05:51:19 +0000 (14:51 +0900)]
Freestyle: fix for crash in the constructor of freestyle.types.StrokeVertexIterator.

6 years agoMath Lib: add function to get signed angle about an axis
Campbell Barton [Wed, 9 Jul 2014 01:15:08 +0000 (11:15 +1000)]
Math Lib: add function to get signed angle about an axis