5 years agoFix T46458: BGE Crash on load
Campbell Barton [Mon, 12 Oct 2015 21:43:41 +0000 (08:43 +1100)]
Fix T46458: BGE Crash on load

regression from 96dd213e7

5 years agoUsual UI message fixes...
Bastien Montagne [Mon, 12 Oct 2015 19:34:14 +0000 (21:34 +0200)]
Usual UI message fixes...

5 years agoAdd functions to compute normals (verts, polys and loops ones) for a given shapekey.
Bastien Montagne [Mon, 12 Oct 2015 18:12:55 +0000 (20:12 +0200)]
Add functions to compute normals (verts, polys and loops ones) for a given shapekey.

Title says pretty much everything, we now have BKE and RNA funcs to get vertex, poly and
loop normals of a given shapekey.

This will be used e.g. in FBX exporter (shapekeys need normal data too).

Reviewed By: campbellbarton

Differential Revision:

5 years agoFix T46451: edge slide even and flipped not available in redo popup.
Brecht Van Lommel [Mon, 12 Oct 2015 14:44:07 +0000 (16:44 +0200)]
Fix T46451: edge slide even and flipped not available in redo popup.

5 years agoWM linking code rework.
Bastien Montagne [Mon, 12 Oct 2015 13:20:51 +0000 (15:20 +0200)]
WM linking code rework.

New code loops much less, does re-open & close .blend files for each data type,
and is much much more flexible - it is also ready for id-remap & co work being done in branches.

Main idea is to store libraries & datablocks to link in a dedicated struct, in a way
that avoids too much looping, and also allows to search for a single datablock in several libraries.

Here again, no change is expected in current behavior of link/append tool, please report
if anything goes different!

5 years agoCleanup & rework of BLO_linking code.
Bastien Montagne [Mon, 12 Oct 2015 13:07:07 +0000 (15:07 +0200)]
Cleanup & rework of BLO_linking code.

This commits does mostly two things:
* Get rid of bContext parameter: I can see no real good reason to pass such a high-level data
  to such low-level code... It also makes it more difficult to call when you do not have
  a context available.
* Cleanup the instantiating part.

Last point is the most risky - previous code was sometimes quite confusing and hard to follow,
from tests nothing behaves differently in new code, but some hidden corner case may show up.

Anyway, no change in behavior is expected from this commit, if it happens please file a bugreport!

5 years agoCleanup: BLO: use proper typedef for expand_doit callback.
Bastien Montagne [Mon, 12 Oct 2015 12:31:47 +0000 (14:31 +0200)]
Cleanup: BLO: use proper typedef for expand_doit callback.

5 years agoCleanup: BLO: move func doc comments to definitions of functions.
Bastien Montagne [Mon, 12 Oct 2015 12:21:34 +0000 (14:21 +0200)]
Cleanup: BLO: move func doc comments to definitions of functions.

Follows our conventions and makes include file itself much cleaner.

5 years agoCleanup in BLO API: rename 'append' funcs to 'link', since none do append, but only...
Bastien Montagne [Mon, 12 Oct 2015 11:46:58 +0000 (13:46 +0200)]
Cleanup in BLO API: rename 'append' funcs to 'link', since none do append, but only linking of datablocks!

5 years agoWorkaround for glew initialization bug
Campbell Barton [Mon, 12 Oct 2015 10:58:57 +0000 (21:58 +1100)]
Workaround for glew initialization bug

It turns out libGL from Intel crashes when calling glxewInit (where mesa, nvidia work fine),
unfortunately the only option without making larger changes to glew,
is to inline the parts of glew we're using - before the glx context is created.

5 years agoFix T34446: Make Local on linked mesh object: object gets removed if redo function...
Bastien Montagne [Mon, 12 Oct 2015 10:15:05 +0000 (12:15 +0200)]
Fix T34446: Make Local on linked mesh object: object gets removed if redo function is used.

Root of the issue is that we do not re-read lib data blocks and ID placholders (ID_ID bheads)
in undo context (in `blo_read_file_internal`), because `BLO_read_from_memfile` copies
lib datablocks and Main data directly from oldmain.
The idea being, linked data do not change from undo/redo.

This is valid as long as linked data was not changed by the undo step - but if some
was deleted or localized, it will be missing from oldmain, leading to data loss
(note that does not only concern objects, all linkable data types can be affected,
at least in theory).

This commit addresses that issue by carefully mixing reuse of needed data from oldmain,
and "normal" re-reading of missing one. Makes us swimming in some rather dark waters,
and gives a rather non-easy-to-follow code, but it seems to work quite well,
and only other solution would be to get rid of that optimization
(not re-reading all libs on undo/redo), which is not acceptable.

Also, thanks to @carlosdp for initial investigation of the issue.

Differential Revision:

5 years agoFix T46431: Init glew before glx-context crashes
Campbell Barton [Mon, 12 Oct 2015 04:04:59 +0000 (15:04 +1100)]
Fix T46431: Init glew before glx-context crashes

Initialize glxew before glew,
so we can check whats supported before creating the context.

This also removes need for mxIgnoreNoVersion.

5 years agoSupport applying scale for font objects
Campbell Barton [Mon, 12 Oct 2015 01:34:17 +0000 (12:34 +1100)]
Support applying scale for font objects

5 years agoCleanup: RNA naming, use 'max' as a suffix
Campbell Barton [Mon, 12 Oct 2015 01:26:48 +0000 (12:26 +1100)]
Cleanup: RNA naming, use 'max' as a suffix

5 years agoRNA: correct tips
Campbell Barton [Mon, 12 Oct 2015 01:19:27 +0000 (12:19 +1100)]
RNA: correct tips

5 years agoFix T46447: fix build on non-x86 platforms.
Brecht Van Lommel [Mon, 12 Oct 2015 00:56:57 +0000 (02:56 +0200)]
Fix T46447: fix build on non-x86 platforms.

5 years agoFix T46446: texture nodes image node not working with image sequences.
Brecht Van Lommel [Mon, 12 Oct 2015 00:41:18 +0000 (02:41 +0200)]
Fix T46446: texture nodes image node not working with image sequences.

5 years agoFix T46434: Shear w/ local-center & editmode fails
Campbell Barton [Mon, 12 Oct 2015 01:02:22 +0000 (12:02 +1100)]
Fix T46434: Shear w/ local-center & editmode fails

5 years agoFix T46444: Crash importing DAE w/ empty armature
Campbell Barton [Mon, 12 Oct 2015 00:35:08 +0000 (11:35 +1100)]
Fix T46444: Crash importing DAE w/ empty armature

5 years agoFix T46085: UV project modifier artifacts with vertices behind the camera.
Brecht Van Lommel [Sun, 11 Oct 2015 18:25:33 +0000 (20:25 +0200)]
Fix T46085: UV project modifier artifacts with vertices behind the camera.

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