6 years agoCleanup: pep8 & redundant vars
Campbell Barton [Tue, 22 Jul 2014 02:03:15 +0000 (12:03 +1000)]
Cleanup: pep8 & redundant vars

6 years agoFix missing include
Campbell Barton [Tue, 22 Jul 2014 01:53:24 +0000 (11:53 +1000)]
Fix missing include

6 years agoFix T41086: VSE separate images increases file size abnormally.
Bastien Montagne [Mon, 21 Jul 2014 20:55:06 +0000 (22:55 +0200)]
Fix T41086: VSE separate images increases file size abnormally.

We were copying everything from the old sequence into each new ones... including the stripdata,
which for image sequences is an array with one item per image!

So bug was an exponential one, separating strips of a few tens of images was insensible, while
separating a strip of 1000 images would add above 250MB to file size (and RAM usage too)!

6 years agoMake clone tool UI slightly less horrible.
Antony Riakiotakis [Mon, 21 Jul 2014 17:24:03 +0000 (19:24 +0200)]
Make clone tool UI slightly less horrible.

Move clone tool options as well as layer selection to the brush panel.
That should make its use more apparent and, most importantly, easy.

6 years agoFix T40839: Object Font Text Rendering Bug
Sergey Sharybin [Mon, 21 Jul 2014 15:30:53 +0000 (21:30 +0600)]
Fix T40839: Object Font Text Rendering Bug

The issue was caused by the wrong objects order for
convertblender.c. Dependency graph totally missed
handling of this situation.

Fixed now, but it's not that pretty, don't try this
at home obviously. But consider this to be good enough
for the current dependency graph.

Details are in the build_dag_object().

6 years agoTransform: edit to recent commit
Campbell Barton [Mon, 21 Jul 2014 15:24:43 +0000 (01:24 +1000)]
Transform: edit to recent commit

Copying long comments about & `#if 0` is hint it could be defined in one place.

6 years agoFix T40432: Scaling to zero with manipulate center points works precisely on second...
Bastien Montagne [Mon, 21 Jul 2014 15:13:48 +0000 (17:13 +0200)]
Fix T40432: Scaling to zero with manipulate center points works precisely on second time

Commented out the 'no zero' protection of scaling transforms for numinput.

Issue is, once an axis has null scale, you can't regrow it from transform code
(you have to directly edit the scale property). This is not ideal, but getting
good behavior in this case is hairy...

Yet, when using numinput, you type precise values, so if you want to set it to zero,
set it to zero. User is assumed responsible, we should avoid too much 'invisible magic'
when handling precise inputs. ;)

Note: an idea for possible future feature would be to have an 'absolute' mode for numinput
(allowing to type in real value, not factors).

6 years agoFix T41128: Box selection bug with armatures.
Bastien Montagne [Mon, 21 Jul 2014 13:49:16 +0000 (15:49 +0200)]
Fix T41128: Box selection bug with armatures.

Calling `glLoadName()` was possible with '-1' value (65535 actually), in `draw_pose_bones()`...

Note I think bug exists since ages (at least, seems to be already present in 2008
when drawarmature.c was added in repo)!

Odd behavior reported (issue only affected objects once parented to the armature) was
due to ordering stuff, since only objects drawn *after* the armature were affected.

6 years agoPy/API: Improve intersect_line_line with parallel lines
Campbell Barton [Mon, 21 Jul 2014 13:13:21 +0000 (23:13 +1000)]
Py/API: Improve intersect_line_line with parallel lines

Now comparing the distance between line-intersection points
to see how close lines are - doesn't fail in the parallel case.

6 years agoBugfix T41133: Audio: Speakers with animated pitch cause clicks in rendered animation...
Jörg Müller [Mon, 21 Jul 2014 12:24:37 +0000 (14:24 +0200)]
Bugfix T41133: Audio: Speakers with animated pitch cause clicks in rendered animations, crashes or huge filesizes in rendered audio

Crash happened when the pitch value got <= 0, preventing this now.

6 years agoFix errors in hsv calculation from recent optimization patch.
Antony Riakiotakis [Mon, 21 Jul 2014 10:33:49 +0000 (12:33 +0200)]
Fix errors in hsv calculation from recent optimization patch.

Code was different from original here, result was apparent in color
picker wedge position.

6 years agoCleanup
Campbell Barton [Mon, 21 Jul 2014 10:23:17 +0000 (20:23 +1000)]

6 years agoGSOC 2013 paint
Antony Riakiotakis [Mon, 21 Jul 2014 10:02:05 +0000 (12:02 +0200)]
GSOC 2013 paint

Yep, at last it's here!

There are a few minor issues remaining but development can go on in
master after discussion at blender institute.

For full list of features see:

Thanks to Sergey and Campbell for the extensive review and to the
countless artists that have given their input and reported issues during

6 years agoMath Lib: rename mul_serie_m3 to mul_m3_series & reorder args
Campbell Barton [Mon, 21 Jul 2014 08:55:12 +0000 (18:55 +1000)]
Math Lib: rename mul_serie_m3 to mul_m3_series & reorder args

Importantly, reversed mul_serie_m3 argument order (so it matches the m4 function)

6 years agoOptimisation to rgb <-> hsv/l conversion
Antony Riakiotakis [Mon, 21 Jul 2014 07:26:39 +0000 (09:26 +0200)]
Optimisation to rgb <-> hsv/l conversion

Basically avoid redundant computations. Gives ~1-4% speedup in the compositor depending on the use case.

For more info see:

Reviewers: psy-fi, sergey

Subscribers: campbellbarton

Differential Revision:

6 years agoMath Lib: Add isect_point_tri_v3
Campbell Barton [Mon, 21 Jul 2014 06:58:17 +0000 (16:58 +1000)]
Math Lib: Add isect_point_tri_v3

Add to Python via mathutils.geometry

6 years agobmesh py api: face_split_edgenet missed NULL check
Campbell Barton [Mon, 21 Jul 2014 02:42:00 +0000 (12:42 +1000)]
bmesh py api: face_split_edgenet missed NULL check

6 years agoCleanup
Campbell Barton [Mon, 21 Jul 2014 00:53:07 +0000 (10:53 +1000)]

6 years agoCorrection to 7c7b730, multiplication order was flipped
Sergey Sharybin [Sun, 20 Jul 2014 14:44:42 +0000 (20:44 +0600)]
Correction to 7c7b730, multiplication order was flipped

That's really annoying that multiplication order is flipped
comparing mat3 and mat4 cases, but for the purposes of not
breaking all the branches which might use this stuff we'd
better keep order consistent with old version for now.

Suggestion here would be to make order consistent but rename
this functions to mult_* to make compilation fail instead
of failing and using wrong order silently.

6 years agoUpdate buildbot config to latest actual version
Sergey Sharybin [Sun, 20 Jul 2014 12:00:39 +0000 (18:00 +0600)]
Update buildbot config to latest actual version

6 years agoSequencer: Fix wrong blur result when one of the sizes is zero
Sergey Sharybin [Sun, 20 Jul 2014 09:37:07 +0000 (15:37 +0600)]
Sequencer: Fix wrong blur result when one of the sizes is zero

6 years agoEarly out from gaussian blur if both sizes are zero
Sergey Sharybin [Sun, 20 Jul 2014 08:32:09 +0000 (14:32 +0600)]
Early out from gaussian blur if both sizes are zero

6 years agoBugfix T41042: Irrelevant Bezier handles still affect Graph Editor Show All
Joshua Leung [Sun, 20 Jul 2014 07:22:22 +0000 (19:22 +1200)]
Bugfix T41042: Irrelevant Bezier handles still affect Graph Editor Show All

The "Show All" and "Show Selected" operators in the Graph Editor was taking into
account all handles on keyframes, even when some of those would be invalid and/or
set to nonsense values (e.g. for any interpolation mode other than "Bezier")

6 years agoBugfix T41077: Dope sheet's column select (alt + click) gets ignored with NLA Strips
Joshua Leung [Sun, 20 Jul 2014 05:17:21 +0000 (17:17 +1200)]
Bugfix T41077: Dope sheet's column select (alt + click) gets ignored with NLA Strips

NLA mapping corrections were being applied twice, causing column select to fail

6 years agoMath Lib: use variable length args for mul_serie_m3,m4 (instead of trailing NULL's)
Campbell Barton [Sun, 20 Jul 2014 04:01:42 +0000 (14:01 +1000)]
Math Lib: use variable length args for mul_serie_m3,m4 (instead of trailing NULL's)

6 years agoFix T41122: Mask modifier followed by hair particles causes crash on render (cycles).
Bastien Montagne [Sat, 19 Jul 2014 22:41:49 +0000 (00:41 +0200)]
Fix T41122: Mask modifier followed by hair particles causes crash on render (cycles).

There were several small issues/inconsistencies if how particles' org face index was checked,
leading in some cases to invalid indices and hence mem access, in RNA UV/VCol compute for particles.
Note org code RNA one was copied from (in BI's convertblender.s) is much more complicated,
and seems to never reach those breaking conditions.

Also deduplicated most code in those UV/VCol particles funcs, they were doing mostly the same thing!

Finally, also got rid of annoying `NO CD_ORIGSPACE, error out of range` error message in console,
was another case of not checking whether we did have any faces in final mesh!

6 years agoSequencer: Add gaussian blur effect
Sergey Sharybin [Sat, 19 Jul 2014 16:16:10 +0000 (22:16 +0600)]
Sequencer: Add gaussian blur effect

Currently this gaussian blur implementation accumulates values in the
square kernel rather that doing X direction and then Y direction because
of the lack of using multiple-staged filters.

Once we can we'll implement a way to apply filter as multiple stages we
can optimize hell of a lot in here.

Another thing we can do is to use SSE2 instructions here.

6 years agoDefines: replace ELEM3-16 with ELEM(...), that can take varargs
Campbell Barton [Sat, 19 Jul 2014 15:30:29 +0000 (01:30 +1000)]
Defines: replace ELEM3-16 with ELEM(...), that can take varargs

6 years agoCode cleanup: warnings
Campbell Barton [Sat, 19 Jul 2014 14:38:52 +0000 (00:38 +1000)]
Code cleanup: warnings

6 years agoCMake FindOpenEXR.cmake was using OPENEXR_VERSION unset
Campbell Barton [Sat, 19 Jul 2014 13:59:51 +0000 (23:59 +1000)]
CMake FindOpenEXR.cmake was using OPENEXR_VERSION unset

6 years agoFix T40658: UV map node not working for GLSL materials.
Brecht Van Lommel [Sat, 19 Jul 2014 12:59:41 +0000 (14:59 +0200)]
Fix T40658: UV map node not working for GLSL materials.

6 years agoFix T41100: draw other object UVs doesn't work when both objects have no image.
Brecht Van Lommel [Sat, 19 Jul 2014 12:24:34 +0000 (14:24 +0200)]
Fix T41100: draw other object UVs doesn't work when both objects have no image.

6 years agoEditmesh: Add options for selecting manifold
Campbell Barton [Sat, 19 Jul 2014 11:25:53 +0000 (21:25 +1000)]
Editmesh: Add options for selecting manifold

Manifold was defined as any edges not using 2 faces,
however its useful to have some options here.

You can now select between Wire/Boundary/Multi-Face/Non-Contiguous/Verts

Note the Non-Contiguous option is new,
it selects edges between faces pointing in different directions.

6 years agoCleanup: test naming
Campbell Barton [Sat, 19 Jul 2014 10:02:14 +0000 (20:02 +1000)]
Cleanup: test naming

6 years agoCleanup: Use more logically constructed ELEM macros
Campbell Barton [Sat, 19 Jul 2014 04:51:50 +0000 (14:51 +1000)]
Cleanup: Use more logically constructed ELEM macros

- name primary comparison var 'v'
- names remain same when expanded
- no odd mixing of macros, use prev ELEM + extra arg
- use 16, even if not used yet, saves adding more in future

6 years agoFix T41010: MetaBall Duplivert Unwanted Movement Bug.
Bastien Montagne [Fri, 18 Jul 2014 20:31:33 +0000 (22:31 +0200)]
Fix T41010: MetaBall Duplivert Unwanted Movement Bug.

BKE_scene_base_iter_next() was completely messing poor dupli objects' matrices...

Note this func should be reworked, but as stated in comments, it should not exist at all,
DAG should be used here, so until we have new shinny one we can live with this.

Also, mballs do not behave correctly when used as duplis (org object remains visible/rendered,
unlike any other object type). This will be fixed in a separate patch/commit,
since it proved to be rather tricky to handle.

6 years agoMBall cleanup: remove unused F_ERROR references, als fix/enhance BKE_mball_basis_find()
Bastien Montagne [Fri, 18 Jul 2014 19:35:50 +0000 (21:35 +0200)]
MBall cleanup: remove unused F_ERROR references, als fix/enhance BKE_mball_basis_find()

BKE_mball_basis_find() was making a bunch of string manipulations for all MBall objects
(including duplis), and then making a (broken!) check to do nothing in case of duplis mball!

Now it makes correct check in early stage.

6 years agoFix RGN_DRAW_REFRESH_UI flag being overwritten
Campbell Barton [Fri, 18 Jul 2014 22:11:52 +0000 (08:11 +1000)]
Fix RGN_DRAW_REFRESH_UI flag being overwritten

6 years agoCleanup: warning
Campbell Barton [Fri, 18 Jul 2014 22:09:49 +0000 (08:09 +1000)]
Cleanup: warning

6 years agoCleanup in MBALL/displist: no need to create curvecache for non-basis mballs, will...
Bastien Montagne [Fri, 18 Jul 2014 16:08:56 +0000 (18:08 +0200)]
Cleanup in MBALL/displist: no need to create curvecache for non-basis mballs, will never be used anyway!

6 years agoCleanup: curvecaches for curves, not mballs!
Bastien Montagne [Fri, 18 Jul 2014 15:46:45 +0000 (17:46 +0200)]
Cleanup: curvecaches for curves, not mballs!

6 years agoFix T41109: Reloading image that has been modified outside Blender does not update...
Sergey Sharybin [Fri, 18 Jul 2014 13:28:33 +0000 (19:28 +0600)]
Fix T41109: Reloading image that has been modified outside Blender does not update image in Image Texture nodes

6 years agoFix T41114: Particle systems cause memory corruption due to invalid
Lukas Tönne [Fri, 18 Jul 2014 09:53:35 +0000 (11:53 +0200)]
Fix T41114: Particle systems cause memory corruption due to invalid
dmcache index (again).

6 years agoFix T41081: Presets not working on pinned properties panels.
Lukas Tönne [Fri, 18 Jul 2014 09:34:35 +0000 (11:34 +0200)]
Fix T41081: Presets not working on pinned properties panels.

Preset operators should avoid using `` as a base
path to properties. This path is not available in the buttons context
when using pinned datablocks! Instead use the specific
`` and `` paths now, which lead to
the correct datablocks in any case.

6 years agoFix T41035: Scale Manipulator CTRL-ALT-S issue with maya shortcuts
Sergey Sharybin [Fri, 18 Jul 2014 09:30:36 +0000 (15:30 +0600)]
Fix T41035: Scale Manipulator CTRL-ALT-S issue with maya shortcuts

6 years agoFix wrong interface flags combination in inverse kinematics panel
Sergey Sharybin [Fri, 18 Jul 2014 09:14:52 +0000 (15:14 +0600)]
Fix wrong interface flags combination in inverse kinematics panel

6 years agoFix T41039: Hook modifier sometimes fails to retain correct bezier curve point assignment
Sergey Sharybin [Fri, 18 Jul 2014 08:44:05 +0000 (14:44 +0600)]
Fix T41039: Hook modifier sometimes fails to retain correct bezier curve point assignment

6 years agoFix wrong index update when removing CV points
Sergey Sharybin [Fri, 18 Jul 2014 07:38:09 +0000 (13:38 +0600)]
Fix wrong index update when removing CV points

6 years agoBGE: Add property/material detection and X-Ray for mouse over any sensor
Mitchell Stokes [Fri, 18 Jul 2014 06:00:30 +0000 (23:00 -0700)]
BGE: Add property/material detection and X-Ray for mouse over any sensor

This patch adds a Property/Material detection and a X-Ray mode to the mouse over any sensor like on the ray sensor.


Reviewers: moguri

Reviewed By: moguri

Differential Revision:

6 years agoBGE: Add missing documentation and attribute constraint_type for ConstraintWrapper
HG1 [Fri, 18 Jul 2014 05:50:51 +0000 (22:50 -0700)]
BGE: Add missing documentation and attribute constraint_type for ConstraintWrapper

1. Add attribute to get the constraint type.
2. Add missing documentation for getParent, setParam, constraint_id in bge.types.KX_ConstraintWrapper.rst.
3. Add missing documentation for GENERIC_6DOF_CONSTRAINT and flag bit in bge.constraints.rst.
4. Fix typo in CcdPhysicsEnvironment.cpp

Reviewers: moguri

Reviewed By: moguri

Differential Revision:

6 years agoBGE: Add level mode to property actuator
HG1 [Fri, 18 Jul 2014 05:27:58 +0000 (22:27 -0700)]
BGE: Add level mode to property actuator

This patch adds to the existing property actuator a level mode, which is switching the property depending on the input level.

Reviewers: moguri

Reviewed By: moguri

Differential Revision:

6 years agoCode cleanup
Campbell Barton [Fri, 18 Jul 2014 01:54:09 +0000 (11:54 +1000)]
Code cleanup

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