5 years agoBGE: Change KX_WolrdInfo mathutils vector to color
Thomas Szepe [Sun, 11 Oct 2015 16:43:05 +0000 (18:43 +0200)]
BGE: Change KX_WolrdInfo mathutils vector to color

Change the mathutils callback from vector to color for mistColor, backgroundColor and ambientColor.

Reviewers: lordloki, campbellbarton, panzergame, moguri, sybren

Reviewed By: panzergame, moguri, sybren

Projects: #game_engine, #game_logic

Differential Revision:

5 years agoBGE: Adding a Max Jumps value to the character physic window
Thomas Szepe [Sun, 11 Oct 2015 16:28:43 +0000 (18:28 +0200)]
BGE: Adding a Max Jumps value to the character physic window

Actually we only have a Python API that allows to change the max jumps value.
The patch also allows non programmers to change the maximum numbers of jumps.

Reviewers: panzergame, sybren, campbellbarton, lordloki, moguri, agoose77

Reviewed By: lordloki, moguri

Projects: #game_engine

Differential Revision:

5 years agoCycles: Make light behavior in local view matching BI
Sergey Sharybin [Sun, 11 Oct 2015 14:59:51 +0000 (19:59 +0500)]
Cycles: Make light behavior in local view matching BI

Title says it all, based on feedback of artists from gooseberry team.

This mainly affects cases when going to a local view from layers setup
when some lamps were on invisible layers. Those lights are no longer
becoming visible to the object in local view.

Reviewers: brecht, juicyfruit, dingto

Reviewed By: juicyfruit, dingto

Subscribers: maxon, eyecandy, venomgfx

Differential Revision:

5 years agoFix T45058: Cycles hair shader reflects incorrectly for meshes
Sergey Sharybin [Sun, 11 Oct 2015 14:43:30 +0000 (19:43 +0500)]
Fix T45058: Cycles hair shader reflects incorrectly for meshes

The issue was caused by non-continuous tangent space calculated for triangles.

This commit adds a Tangent input to Hair BSDF node which can be used to hook up
Tangent calculated form UV as an input to the node in order to make sure the
tangent space is continuous.

Doing this as an input instead of using default tangent layer from UV because of
several reasons:

- This way it's really easy to preserve compatibility with existing setups.

- Default UV map is not necessarily giving continuous space, one might want to
  use other tangent space sources or distort the space for some artistic

Reviewers: juicyfruit, dingto

Reviewed By: dingto

Differential Revision:

5 years agoCycles: Gracefully handle out-of-memory happening in device vector
Sergey Sharybin [Fri, 4 Sep 2015 07:38:10 +0000 (12:38 +0500)]
Cycles: Gracefully handle out-of-memory happening in device vector

Currently only image loading benefits of this and will give magenta color
when image manager detects it's running out of memory.

This isn't ideal solution and can't handle all cases. For example, OOM
killer might kill process before it realized it run out of memory, but
in other cases this could prevent some crashes.

Reviewers: juicyfruit, dingto

Differential Revision:

5 years agoCMake: Enable WITH_PYTHON_INSTALL for lite builds
Campbell Barton [Sun, 11 Oct 2015 13:46:54 +0000 (00:46 +1100)]
CMake: Enable WITH_PYTHON_INSTALL for lite builds

This is needed to run on OSX and Windows when system python isn't found.

5 years agoBGE: Change character jumping to char
Thomas Szepe [Sun, 11 Oct 2015 13:41:40 +0000 (15:41 +0200)]
BGE: Change character jumping to char

* Change the character jumping variables and methods from int to char.
* Limit the maxJumps integer value from 0 to 255.
* Allow to set the minimum jump amount to 0.

Reviewers: panzergame, lordloki, moguri

Reviewed By: lordloki, moguri

Subscribers: agoose77

Projects: #game_engine

Differential Revision:

5 years agoRevert "Buildbot: Test enable CUDA binaries for Win32"
Bastien Montagne [Sun, 11 Oct 2015 13:35:12 +0000 (15:35 +0200)]
Revert "Buildbot: Test enable CUDA binaries for Win32"

This reverts commit 4f296138949e7aa000a1ea52646b57d640b6d563, since Cuda fails again on win32 buildbot...

5 years agoCycles: Increase number of textures allowed for OpenCL render
Sergey Sharybin [Sun, 11 Oct 2015 13:15:02 +0000 (18:15 +0500)]
Cycles: Increase number of textures allowed for OpenCL render

Currently OpenCL devices are packing images into a single texture,
which means technically number of textures is not limited here.

Now OpenCL will use same number of textures as CPU. If we want
to bump number of textures further, this values are to be modified
in sync.

NOTE OpenCL still does not support float textures.

Original patch from a guy called bliblubli in the tracker with
some own modifications.

Reviewers: brecht, dingto, sergey

Differential Revision:

5 years agoBGE: Fix for last commit
Thomas Szepe [Sun, 11 Oct 2015 13:19:44 +0000 (15:19 +0200)]
BGE: Fix for last commit

The icon16 and icon32_mesh_capsule.dat files are committed with 0 Kb, because I used the patch from the differential from the Phabricator which I done with a regular .diff file.

5 years agoBGE: Add icons to collision shapes.
Thomas Szepe [Sun, 11 Oct 2015 12:32:20 +0000 (14:32 +0200)]
BGE: Add icons to collision shapes.

This patch adds icons to the physic collision shapes.
Adding a new capsule shape 'mesh_capsule' icon which represent the shape better then the metaballs icon.
And replace the metaballs icon for the Blender collision shape.


Reviewers: moguri, sybren, agoose77, lordloki, mont29, panzergame, campbellbarton

Reviewed By: lordloki, panzergame, campbellbarton

Projects: #game_engine, #game_ui, #user_interface

Differential Revision:

5 years agoBGE: Add recursive dupli group deletion
Thomas Szepe [Sun, 11 Oct 2015 12:08:38 +0000 (14:08 +0200)]
BGE: Add recursive dupli group deletion

This patch will delete all associated objects from a group instance (dupli group) if the are deleted.

Reviewers: brita_, sybren, lordloki, moguri

Reviewed By: lordloki, moguri

Projects: #game_engine

Maniphest Tasks: T36388

Differential Revision:

5 years agoBGE: Adding a screenshot function to game actuator
Thomas Szepe [Sun, 11 Oct 2015 11:41:38 +0000 (13:41 +0200)]
BGE: Adding a screenshot function to game actuator

Extending the existing game actuator with a screenshot function, to give also non programmers the ability to take screenshots in the BGE.

Reviewers: lordloki, campbellbarton, moguri

Reviewed By: lordloki, moguri

Subscribers: lordloki, Genome36

Projects: #game_engine

Differential Revision:

5 years agoCleanup: warning with new glew
Campbell Barton [Sun, 11 Oct 2015 01:54:14 +0000 (12:54 +1100)]
Cleanup: warning with new glew

5 years agoUpgrade glew to v1.13
Campbell Barton [Sun, 11 Oct 2015 01:53:41 +0000 (12:53 +1100)]
Upgrade glew to v1.13

5 years agoFix warnings and remove casts by adding copy_vx_vx_uchar() functions.
Brecht Van Lommel [Sat, 10 Oct 2015 23:44:47 +0000 (01:44 +0200)]
Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.

5 years agoFix T46441: texture paint soften brush at 0 strength works at full strength.
Brecht Van Lommel [Sat, 10 Oct 2015 21:18:20 +0000 (23:18 +0200)]
Fix T46441: texture paint soften brush at 0 strength works at full strength.

5 years agoRevert "Fix T46406: Cycles ignores default socket value associated with group socket"
Brecht Van Lommel [Sat, 10 Oct 2015 19:54:34 +0000 (21:54 +0200)]
Revert "Fix T46406: Cycles ignores default socket value associated with group socket"

Fixes T46442.

5 years agoFix T45152: multiview/stereo render not working with Freestyle + Cycles.
Brecht Van Lommel [Sat, 10 Oct 2015 17:18:04 +0000 (19:18 +0200)]
Fix T45152: multiview/stereo render not working with Freestyle + Cycles.

5 years agoFix T44048: freestyle lines in Cycles are in the wrong color space.
Brecht Van Lommel [Sat, 10 Oct 2015 16:44:19 +0000 (18:44 +0200)]
Fix T44048: freestyle lines in Cycles are in the wrong color space.

5 years agoFix various compiler warnings.
Brecht Van Lommel [Wed, 12 Aug 2015 20:17:27 +0000 (22:17 +0200)]
Fix various compiler warnings.

5 years agoCMake: minor message cleanups.
Brecht Van Lommel [Sat, 10 Oct 2015 15:30:19 +0000 (17:30 +0200)]
CMake: minor message cleanups.

5 years agoFix T46437: Make progress report py helper resitent to 'zero steps' passed value...
Bastien Montagne [Sat, 10 Oct 2015 15:10:07 +0000 (17:10 +0200)]
Fix T46437: Make progress report py helper resitent to 'zero steps' passed value...

To be backported, should we need an 'a' release.

5 years agoRandom Select Seed Option
Campbell Barton [Sat, 10 Oct 2015 12:47:41 +0000 (23:47 +1100)]
Random Select Seed Option

Add 'Seed' option for all random select operators

D1508 by @mba105, w/ edits

5 years agoFix T45167: OS X inertial scrolling can lead to unexpected zooming.
Brecht Van Lommel [Mon, 5 Oct 2015 01:02:11 +0000 (03:02 +0200)]
Fix T45167: OS X inertial scrolling can lead to unexpected zooming.

Differential Revision:

5 years agoFix T46341: OS X trackpad and magic mouse gestures not working with 10.11 SDK.
Brecht Van Lommel [Sun, 4 Oct 2015 16:00:20 +0000 (18:00 +0200)]
Fix T46341: OS X trackpad and magic mouse gestures not working with 10.11 SDK.

Differential Revision:

5 years agoFix/Workaround T46431: blender-softwaregl crashes
Campbell Barton [Sat, 10 Oct 2015 08:39:35 +0000 (19:39 +1100)]
Fix/Workaround T46431: blender-softwaregl crashes

Order of initialization bug only impacted mesa's software-gl.

For now effectively revert support for glx-context-flags.

5 years agoFix T46403: motion tracking not workig with Xcode 7 on OS X.
Brecht Van Lommel [Sat, 10 Oct 2015 02:08:16 +0000 (04:08 +0200)]
Fix T46403: motion tracking not workig with Xcode 7 on OS X.

Caused by use of the uninitialized shape_ variable in Resize().

5 years agoFix T46426: 2D-version of zoom border operator is available in 3DView context.
Bastien Montagne [Fri, 9 Oct 2015 20:24:58 +0000 (22:24 +0200)]
Fix T46426: 2D-version of zoom border operator is available in 3DView context.

5 years agoCleanup: 3DView object drawing: afterdraw lists: better 'loop & remove' with BLI_pophead.
Bastien Montagne [Fri, 9 Oct 2015 19:23:14 +0000 (21:23 +0200)]
Cleanup: 3DView object drawing: afterdraw lists: better 'loop & remove' with BLI_pophead.

Saves two lines and a temp variable for each loop...

5 years agoFix T46418: Constraints - influence other than 0 or 1 - bad results with non-homogene...
Bastien Montagne [Fri, 9 Oct 2015 19:10:14 +0000 (21:10 +0200)]
Fix T46418: Constraints - influence other than 0 or 1 - bad results with non-homogeneous scaled matrices.

Use new interp_m4_m4m4 instead of blend_m4_m4m4.

Note that maybe we could replace other usages of blend_m... by interp_m...,
but this should be investigated on a case-by-case basis.

5 years agoBLI_math: add mat3_polar_decompose, interp_m3_m3m3 and interp_m4_m4m4.
Bastien Montagne [Fri, 9 Oct 2015 18:57:37 +0000 (20:57 +0200)]
BLI_math: add mat3_polar_decompose, interp_m3_m3m3 and interp_m4_m4m4.

mat3_polar_decompose gives the right polar decomposition of given matrix,
as a pair (U, P) of matrices.

interp_m3_m3m3 uses that polar decomposition to perform a correct matrix interpolation,
even with non-uniformly scaled ones (where blend_m3_m3m3 would fail).

interp_m4_m4m4 just adds translation interpolation to the _m3 variant.

5 years agoBLI: add SVD solver for mat3 (using eigen3).
Bastien Montagne [Fri, 9 Oct 2015 18:55:15 +0000 (20:55 +0200)]
BLI: add SVD solver for mat3 (using eigen3).

5 years agoCycles: Fix compilation error of CUDA kernel after recent decomposition changes
Sergey Sharybin [Fri, 9 Oct 2015 12:53:29 +0000 (17:53 +0500)]
Cycles: Fix compilation error of CUDA kernel after recent decomposition changes

5 years agoCycles: Make sure ray direction is always normalized
Sergey Sharybin [Fri, 9 Oct 2015 09:26:23 +0000 (14:26 +0500)]
Cycles: Make sure ray direction is always normalized

Ray direction is assumed to be normalized in such areas as scaling intersection
distance on instance push/pop when doing ray-scene intersection, but it was
possible that some closures wouldn't give normalized direction which could cause
wrong intersection checks.

Now normalization will happen on surface bounce, which could be a bit of a waste
if closure actually gives normalized direction, but currently only transparent
BSDF seems to give guaranteed normalized direction.

5 years agoCycles: Fix wrong intersection with motion blur and degenerate object transform
Sergey Sharybin [Thu, 8 Oct 2015 16:24:54 +0000 (21:24 +0500)]
Cycles: Fix wrong intersection with motion blur and degenerate object transform

5 years agoCycles: Fix issues with quick inverse of degenerate matrix
Sergey Sharybin [Thu, 8 Oct 2015 16:14:14 +0000 (21:14 +0500)]
Cycles: Fix issues with quick inverse of degenerate matrix

This fixes part of the issues reported in T46322. Still need to solve
issue with wrong intersection distance scaling.

5 years agoCycles: Fix intersection issues caused by degenerate instance matrix
Sergey Sharybin [Thu, 8 Oct 2015 15:30:51 +0000 (20:30 +0500)]
Cycles: Fix intersection issues caused by degenerate instance matrix

Issue was caused by wrong intersection distance scaling on instance pop,
which could cause intersection distance to become zero, confusing following
intersection checks.

5 years agoFix T46420: Segfault when instancing smoke domain.
Bastien Montagne [Fri, 9 Oct 2015 08:51:38 +0000 (10:51 +0200)]
Fix T46420: Segfault when instancing smoke domain.

Looks like instancing of smoke sim is not supported at all
(was fake-working in 3DView in 2.74, but not rendered).

But it should not crash - code was adding temp 'fromdupli' base to the delayed
drawing list...

Nice to backport this to 2.76 I think.

5 years agoBGE Fix T41943: Zeroing out angular velocity not possible
Sybren A. Stüvel [Fri, 9 Oct 2015 07:29:31 +0000 (09:29 +0200)]
BGE Fix T41943: Zeroing out angular velocity not possible

This patch makes it possible to zero out angular velocity. tiny angular
velocities may cause instabilities, according to the discussion in T41943,
so they are mapped to (0, 0, 0) instead.

It also applies the same reasoning to the linear velocity, unifying the
different approaches.

Differential revision: D952

5 years agoCorrect own error in editmesh bvh
Campbell Barton [Fri, 9 Oct 2015 00:04:24 +0000 (11:04 +1100)]
Correct own error in editmesh bvh

Flag mix-up and uninitialized var.

5 years agoFix leak creating 'empty' looptri bvh tree
Campbell Barton [Fri, 9 Oct 2015 00:03:23 +0000 (11:03 +1100)]
Fix leak creating 'empty' looptri bvh tree

5 years agoFix T46415: empty node group in GLSL shader has incorrect socket type conversion.
Brecht Van Lommel [Thu, 8 Oct 2015 23:26:32 +0000 (01:26 +0200)]
Fix T46415: empty node group in GLSL shader has incorrect socket type conversion.

5 years agoFix error after change to IDWalkFunc
Campbell Barton [Thu, 8 Oct 2015 22:27:23 +0000 (09:27 +1100)]
Fix error after change to IDWalkFunc

5 years agoBGE: Use BLI_task instead of pthread in KX_BlenderSceneConverter.
Porteries Tristan [Thu, 8 Oct 2015 19:37:03 +0000 (21:37 +0200)]
BGE: Use BLI_task instead of pthread in KX_BlenderSceneConverter.

5 years agoFix crash loading modifiers with missing IDs
Sergey Sharybin [Thu, 8 Oct 2015 16:06:09 +0000 (21:06 +0500)]
Fix crash loading modifiers with missing IDs

Was very visible with barcelona file from Cycles benchmark repository.

5 years agoFix compilation error with bullet disabled
Sergey Sharybin [Thu, 8 Oct 2015 16:01:44 +0000 (21:01 +0500)]
Fix compilation error with bullet disabled

5 years agoCycles: Cleanup, whitespace around keywords
Sergey Sharybin [Thu, 8 Oct 2015 14:08:28 +0000 (19:08 +0500)]
Cycles: Cleanup, whitespace around keywords

5 years agoFix T46407: Enabling OSL breaks Vector Transform node
Sergey Sharybin [Thu, 8 Oct 2015 14:04:15 +0000 (19:04 +0500)]
Fix T46407: Enabling OSL breaks Vector Transform node

5 years agoCycles: Add an interpolation option to environment textures
Lukas Stockner [Thu, 8 Oct 2015 01:31:15 +0000 (03:31 +0200)]
Cycles: Add an interpolation option to environment textures

This commit exposes the interpolation parameter for environment textures (requested by DolpheenDream on IRC), just as it already is for image textures.

Reviewers: sergey

Differential Revision:

5 years agoAdd logicbricks to ID looper.
Bastien Montagne [Thu, 8 Oct 2015 13:04:09 +0000 (15:04 +0200)]
Add logicbricks to ID looper.

5 years agoAdd rigidbodyworld to id looper.
Bastien Montagne [Thu, 8 Oct 2015 12:59:24 +0000 (14:59 +0200)]
Add rigidbodyworld to id looper.

5 years agoAdd id looper for particlesystem.
Bastien Montagne [Thu, 8 Oct 2015 12:56:20 +0000 (14:56 +0200)]
Add id looper for particlesystem.

5 years agoAdd a bunch of missing IDs in ID looper...
Bastien Montagne [Thu, 8 Oct 2015 12:38:48 +0000 (14:38 +0200)]
Add a bunch of missing IDs in ID looper...

5 years agoModifiers: add 'cd_flag' parameter to their ID looping callbacks, needed
Bastien Montagne [Thu, 8 Oct 2015 12:21:11 +0000 (14:21 +0200)]
Modifiers: add 'cd_flag' parameter to their ID looping callbacks, needed
since some IDs (objects) are not 'refcounted' while others (textures) are...

Partial merge from id-remap branch.

5 years agoFix: Do not show "Paste Flipped" in the Dope Sheet's Grease Pencil mode
Joshua Leung [Thu, 8 Oct 2015 12:14:04 +0000 (01:14 +1300)]
Fix: Do not show "Paste Flipped" in the Dope Sheet's Grease Pencil mode

5 years agoFix T46236: NLA transition strips do not get resized when neighbouring strips change
Joshua Leung [Thu, 8 Oct 2015 12:10:13 +0000 (01:10 +1300)]
Fix T46236: NLA transition strips do not get resized when neighbouring strips change

Transition strips in the NLA should always stick to whatever strips are beside it,
and are allowed to grow/shrink as needed to achieve this. Previously the code here
was only checking if the neighbouring strips started encroaching on the transition,
but not whether the transition needed to grow to fill a gap. It was also just
moving all strips when there was insufficient space, even though that would alter
timing down the track.

Now transition strip resizing works as follows:
* It will grow/shrink as necessary to absorb any changes in the length of its neighbours
  instead of shunting everything around to maintain its length
* If the neighbour has been resized by an amount greater than the transition's length,
  all the strips will need to be shunted away to make way for the neighbour. In this
  case, the transition will shrink down to being 1 frame long to ensure that it is
  still visible (so that it can be removed if necessary).

5 years agoFix T46391: Sync Length in NLA is not working on all instances of clip
Joshua Leung [Thu, 8 Oct 2015 11:02:58 +0000 (00:02 +1300)]
Fix T46391: Sync Length in NLA is not working on all instances of clip

5 years agoFix: "Tweak user" red-alert flag was not getting set on strips on active track
Joshua Leung [Thu, 8 Oct 2015 10:55:24 +0000 (23:55 +1300)]
Fix: "Tweak user" red-alert flag was not getting set on strips on active track

The "tweak user" flag used to flag strips using the same action as the active strip
was not getting set on other strips that live on the same track as the active one.
Strips with this flag set are shown with a red colour to indicate that editing the
action may have the unintended consequence of modifying another strip.

5 years agoFix T46406: Cycles ignores default socket value associated with group socket
Sergey Sharybin [Thu, 8 Oct 2015 11:03:13 +0000 (16:03 +0500)]
Fix T46406: Cycles ignores default socket value associated with group socket

5 years agoCycles: Fix wrong float3->float3 conversion node
Sergey Sharybin [Thu, 8 Oct 2015 10:41:25 +0000 (15:41 +0500)]
Cycles: Fix wrong float3->float3 conversion node

5 years agoFix T46386: Duplicate fails updating driver links
Campbell Barton [Thu, 8 Oct 2015 09:29:49 +0000 (20:29 +1100)]
Fix T46386: Duplicate fails updating driver links

Duplicate wasn't updating links,
so duplicatinvg a objects would still point to the originals for curve-taper, texmesh, drivers.

Use generic id-looper to handle replacing data.

5 years agoAdd USER flags to BKE_library_foreach_ID_link
Campbell Barton [Thu, 8 Oct 2015 09:09:30 +0000 (20:09 +1100)]
Add USER flags to BKE_library_foreach_ID_link

This way callbacks can know if adjusting user-count is needed.

5 years agoCleanup: use newlibadr_us
Campbell Barton [Thu, 8 Oct 2015 08:42:10 +0000 (19:42 +1100)]
Cleanup: use newlibadr_us

5 years agoAdd missing object-data ID loop pointer
Campbell Barton [Thu, 8 Oct 2015 08:18:30 +0000 (19:18 +1100)]
Add missing object-data ID loop pointer

5 years agoOff by one error in own recent commit
Campbell Barton [Thu, 8 Oct 2015 08:04:33 +0000 (19:04 +1100)]
Off by one error in own recent commit

5 years agoFix bplayer (c)
Bastien Montagne [Thu, 8 Oct 2015 08:09:58 +0000 (10:09 +0200)]
Fix bplayer (c)

5 years agoFix T46405: Cycles point density missing update when modifying source object
Sergey Sharybin [Thu, 8 Oct 2015 07:39:03 +0000 (12:39 +0500)]
Fix T46405: Cycles point density missing update when modifying source object

5 years agoCycles: Fix for point density always using render settings for modifiers
Sergey Sharybin [Thu, 8 Oct 2015 07:09:28 +0000 (12:09 +0500)]
Cycles: Fix for point density always using render settings for modifiers

5 years agoBKE_key: add BKE_key_from_id helper functions
Campbell Barton [Thu, 8 Oct 2015 07:19:28 +0000 (18:19 +1100)]
BKE_key: add BKE_key_from_id helper functions

5 years agoCleanup: remove unused fluidsim members
Campbell Barton [Thu, 8 Oct 2015 07:17:10 +0000 (18:17 +1100)]
Cleanup: remove unused fluidsim members

5 years agoAdd missing object ID loop pointers
Campbell Barton [Thu, 8 Oct 2015 07:08:57 +0000 (18:08 +1100)]
Add missing object ID loop pointers

5 years agoFile Read: de-duplicate command line file-load
Campbell Barton [Thu, 8 Oct 2015 04:56:46 +0000 (15:56 +1100)]
File Read: de-duplicate command line file-load

WM_file_read must support background mode already
since it can be called by Python scripts in background mode.

5 years agoBLI_path api, minor changes to CWD handling
Campbell Barton [Thu, 8 Oct 2015 04:05:58 +0000 (15:05 +1100)]
BLI_path api, minor changes to CWD handling

- BLI_current_working_dir's return value must be checked, since it may fail.
- BLI_current_working_dir now behaves like getcwd, where a too-small target will return failure.
- avoid buffer overrun with BLI_path_cwd, by taking a maxlen arg.

5 years agoCleanup: redundant code in anim player
Campbell Barton [Thu, 8 Oct 2015 03:42:25 +0000 (14:42 +1100)]
Cleanup: redundant code in anim player

Was setting the path to a directory when no file was given -
then checking its a loadable file.

5 years agoCleanup: remove unused arg
Campbell Barton [Thu, 8 Oct 2015 03:22:16 +0000 (14:22 +1100)]
Cleanup: remove unused arg

5 years agoCleanup: headers
Campbell Barton [Thu, 8 Oct 2015 00:11:48 +0000 (11:11 +1100)]
Cleanup: headers

5 years agoCleanup: typos
Campbell Barton [Thu, 8 Oct 2015 00:11:31 +0000 (11:11 +1100)]
Cleanup: typos

5 years agoFix T46410: VSE Mask ignores animated properties
Campbell Barton [Wed, 7 Oct 2015 23:46:11 +0000 (10:46 +1100)]
Fix T46410: VSE Mask ignores animated properties

5 years agoFix T46408: Transform (bicubic) ID channel fails
Campbell Barton [Wed, 7 Oct 2015 23:16:54 +0000 (10:16 +1100)]
Fix T46408: Transform (bicubic) ID channel fails

5 years agoUI: no need to update drag-edit for scroll buttons
Campbell Barton [Wed, 7 Oct 2015 22:04:38 +0000 (09:04 +1100)]
UI: no need to update drag-edit for scroll buttons

5 years agoBGE : Collision mask support in raycast + and raycast cleanup.
Porteries Tristan [Wed, 7 Oct 2015 20:14:43 +0000 (22:14 +0200)]
BGE : Collision mask support in raycast + and raycast cleanup.

I have removed the m_pHitObject, m_xray and m_testPropName and replace them by a temporary struct "RayCastData" which contains these datas and a collision mask. Finally i add a collision mask argument in the python function "rayCast" :
rayCast(to, from, dist, prop, face, xray, poly, mask)

It can be useful to hit only object which are on the right colision layer. for example if you have hitbox for a charater or vehicle you don't want to hit it with raycast.

test file : {F237337}
left mouse click on two planes and see console messages.

Somewhat more elaborate test file by @sybren: {F237779}
Look around and click on the cubes. One cube lamp responds, the other doesn't, based on their collision groups.

Reviewers: moguri, hg1, agoose77, campbellbarton, sybren

Reviewed By: agoose77, campbellbarton, sybren

Subscribers: campbellbarton, sergey, blueprintrandom, sybren

Projects: #game_engine, #game_physics

Differential Revision:

5 years agoFix T46402: UILists fail to scroll using click+drag
Philipp Oeser [Wed, 7 Oct 2015 19:07:45 +0000 (21:07 +0200)]
Fix T46402: UILists fail to scroll using click+drag

5 years agoCleanup of BKE_library_foreach_ID_link.
Bastien Montagne [Wed, 7 Oct 2015 18:50:34 +0000 (20:50 +0200)]
Cleanup of BKE_library_foreach_ID_link.

This func is long enough, there's no real need to make it even longer with
verbose local varnames and multi-line for loops...
Also, avoid mono-leters names as well for data pointers.

5 years agoFix T46401: bad step size w/ radians
Campbell Barton [Wed, 7 Oct 2015 08:02:28 +0000 (19:02 +1100)]
Fix T46401: bad step size w/ radians

5 years agoFix for T41536: 2.71 getActionFrame no longer returns frames accurately
Mitchell Stokes [Wed, 7 Oct 2015 05:16:22 +0000 (22:16 -0700)]
Fix for T41536: 2.71 getActionFrame no longer returns frames accurately

We now keep actions around when they are finished playing so scripts can
still get access to information such as the current frame. Playing a new
action in the same layer still overwrites the previous action as before this
commit. Using an explicit KX_GameObject.stopAction() will free the memory. The
action is also freed when the KX_GameObject is freed as before.

5 years agoBMesh: maintain select-history when sorting
Campbell Barton [Wed, 7 Oct 2015 04:39:06 +0000 (15:39 +1100)]
BMesh: maintain select-history when sorting

5 years agoFix T45886: cont.deactivate(ActionActuatorInPropertyMode) does not work
Mitchell Stokes [Mon, 24 Aug 2015 02:56:51 +0000 (19:56 -0700)]
Fix T45886: cont.deactivate(ActionActuatorInPropertyMode) does not work

Make sure the Action Actuator actually deactivates when given a negative
event while using the property play mode.

5 years agoCleanup: spelling
Campbell Barton [Wed, 7 Oct 2015 04:02:06 +0000 (15:02 +1100)]
Cleanup: spelling

5 years agoFix mesh validate: 'r_changed' ignored loop edits
Campbell Barton [Wed, 7 Oct 2015 03:38:36 +0000 (14:38 +1100)]
Fix mesh validate: 'r_changed' ignored loop edits

5 years agoFix game-property use-after-free error
Campbell Barton [Wed, 7 Oct 2015 00:04:23 +0000 (11:04 +1100)]
Fix game-property use-after-free error

D1538 by @hal01

5 years agoFix FileBrowser: do not show 'advanced filter' panel outside of lib browsing context,
Bastien Montagne [Tue, 6 Oct 2015 18:17:40 +0000 (20:17 +0200)]
Fix FileBrowser: do not show 'advanced filter' panel outside of lib browsing context,
it’s only used there so far.

Reported by Thomas Beck (plasmasolutions) over IRC, thanks.

Safe enough for 2.76.

5 years agoFix T46390: Sound sequencer API doesnt' work when built with SCons
Sergey Sharybin [Tue, 6 Oct 2015 16:00:37 +0000 (21:00 +0500)]
Fix T46390: Sound sequencer API doesnt' work when built with SCons

The issue was caused by original patch efde4dbb.

This seems to be really old bug, but safe for 2.76.

5 years agoFix T46392: Navmesh generator error.
Bastien Montagne [Tue, 6 Oct 2015 13:58:45 +0000 (15:58 +0200)]
Fix T46392: Navmesh generator error.

We now have to explicitely enure tesselation of DMs when we need it.

Notes: Maybe we could use looptris here as well?

Not a regression (bug already present in 2.75, but not 2.74), nice to backport to 2.76 nontheless.

5 years agoWM: Fix crash when a new window can't be created
Campbell Barton [Tue, 6 Oct 2015 13:27:27 +0000 (00:27 +1100)]
WM: Fix crash when a new window can't be created

Report an error instead of crashing if a new window can't be created
(typically caused by bad drivers).

5 years agoFix T46345: Registrable props could be modified
Julian Eisel [Tue, 6 Oct 2015 10:51:35 +0000 (21:51 +1100)]
Fix T46345: Registrable props could be modified

5 years agoCleanup: return PROP_EDITABLE rna flag
Campbell Barton [Tue, 6 Oct 2015 10:43:04 +0000 (21:43 +1100)]
Cleanup: return PROP_EDITABLE rna flag

Harmless, since the flag happens to be 1.

5 years agoCleanup: use BLI_path_basename
Campbell Barton [Tue, 6 Oct 2015 08:49:58 +0000 (19:49 +1100)]
Cleanup: use BLI_path_basename

5 years agoRNA: Add check_existing arg to other load() funcs
Campbell Barton [Tue, 6 Oct 2015 08:40:15 +0000 (19:40 +1100)]
RNA: Add check_existing arg to other load() funcs

Note: movieclip was doing this already by default,
now split into 2 functions, matching image behavior.

5 years agoFix T46389: Shrinkwrap fails in editmode
Campbell Barton [Tue, 6 Oct 2015 06:55:15 +0000 (17:55 +1100)]
Fix T46389: Shrinkwrap fails in editmode

Own regression caused by fix for T46067,
edit-mode bvh only contained unselected faces.

This commit adds support for an edit-mode bvh containing all faces.