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.
{
F206628}
Reviewers: moguri, sybren, agoose77, lordloki, mont29, panzergame, campbellbarton
Reviewed By: lordloki, panzergame, campbellbarton
Projects: #game_engine, #game_ui, #user_interface
Differential Revision: https://developer.blender.org/D1403
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: https://developer.blender.org/D1205
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: https://developer.blender.org/D651
Campbell Barton [Sun, 11 Oct 2015 01:54:14 +0000 (12:54 +1100)]
Cleanup: warning with new glew
Campbell Barton [Sun, 11 Oct 2015 01:53:41 +0000 (12:53 +1100)]
Upgrade glew to v1.13
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.
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.
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.
Brecht Van Lommel [Sat, 10 Oct 2015 17:18:04 +0000 (19:18 +0200)]
Fix T45152: multiview/stereo render not working with Freestyle + Cycles.
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.
Brecht Van Lommel [Wed, 12 Aug 2015 20:17:27 +0000 (22:17 +0200)]
Fix various compiler warnings.
Brecht Van Lommel [Sat, 10 Oct 2015 15:30:19 +0000 (17:30 +0200)]
CMake: minor message cleanups.
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.
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
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: https://developer.blender.org/D1539
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: https://developer.blender.org/D1539
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.
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().
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.
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...
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.
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.
Bastien Montagne [Fri, 9 Oct 2015 18:55:15 +0000 (20:55 +0200)]
BLI: add SVD solver for mat3 (using eigen3).
Sergey Sharybin [Fri, 9 Oct 2015 12:53:29 +0000 (17:53 +0500)]
Cycles: Fix compilation error of CUDA kernel after recent decomposition changes
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.
Sergey Sharybin [Thu, 8 Oct 2015 16:24:54 +0000 (21:24 +0500)]
Cycles: Fix wrong intersection with motion blur and degenerate object transform
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.
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.
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.
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
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.
Campbell Barton [Fri, 9 Oct 2015 00:03:23 +0000 (11:03 +1100)]
Fix leak creating 'empty' looptri bvh tree
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.
Campbell Barton [Thu, 8 Oct 2015 22:27:23 +0000 (09:27 +1100)]
Fix error after change to IDWalkFunc
Porteries Tristan [Thu, 8 Oct 2015 19:37:03 +0000 (21:37 +0200)]
BGE: Use BLI_task instead of pthread in KX_BlenderSceneConverter.
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.
Sergey Sharybin [Thu, 8 Oct 2015 16:01:44 +0000 (21:01 +0500)]
Fix compilation error with bullet disabled
Sergey Sharybin [Thu, 8 Oct 2015 14:08:28 +0000 (19:08 +0500)]
Cycles: Cleanup, whitespace around keywords
Sergey Sharybin [Thu, 8 Oct 2015 14:04:15 +0000 (19:04 +0500)]
Fix T46407: Enabling OSL breaks Vector Transform node
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: https://developer.blender.org/D1544
Bastien Montagne [Thu, 8 Oct 2015 13:04:09 +0000 (15:04 +0200)]
Add logicbricks to ID looper.
Bastien Montagne [Thu, 8 Oct 2015 12:59:24 +0000 (14:59 +0200)]
Add rigidbodyworld to id looper.
Bastien Montagne [Thu, 8 Oct 2015 12:56:20 +0000 (14:56 +0200)]
Add id looper for particlesystem.
Bastien Montagne [Thu, 8 Oct 2015 12:38:48 +0000 (14:38 +0200)]
Add a bunch of missing IDs in ID looper...
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.
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
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).
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
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.
Sergey Sharybin [Thu, 8 Oct 2015 11:03:13 +0000 (16:03 +0500)]
Fix T46406: Cycles ignores default socket value associated with group socket
Sergey Sharybin [Thu, 8 Oct 2015 10:41:25 +0000 (15:41 +0500)]
Cycles: Fix wrong float3->float3 conversion node
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.
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.
Campbell Barton [Thu, 8 Oct 2015 08:42:10 +0000 (19:42 +1100)]
Cleanup: use newlibadr_us
Campbell Barton [Thu, 8 Oct 2015 08:18:30 +0000 (19:18 +1100)]
Add missing object-data ID loop pointer
Campbell Barton [Thu, 8 Oct 2015 08:04:33 +0000 (19:04 +1100)]
Off by one error in own recent commit
Bastien Montagne [Thu, 8 Oct 2015 08:09:58 +0000 (10:09 +0200)]
Fix bplayer (c)
Sergey Sharybin [Thu, 8 Oct 2015 07:39:03 +0000 (12:39 +0500)]
Fix T46405: Cycles point density missing update when modifying source object
Sergey Sharybin [Thu, 8 Oct 2015 07:09:28 +0000 (12:09 +0500)]
Cycles: Fix for point density always using render settings for modifiers
Campbell Barton [Thu, 8 Oct 2015 07:19:28 +0000 (18:19 +1100)]
BKE_key: add BKE_key_from_id helper functions
Campbell Barton [Thu, 8 Oct 2015 07:17:10 +0000 (18:17 +1100)]
Cleanup: remove unused fluidsim members
Campbell Barton [Thu, 8 Oct 2015 07:08:57 +0000 (18:08 +1100)]
Add missing object ID loop pointers
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.
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.
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.
Campbell Barton [Thu, 8 Oct 2015 03:22:16 +0000 (14:22 +1100)]
Cleanup: remove unused arg
Campbell Barton [Thu, 8 Oct 2015 00:11:48 +0000 (11:11 +1100)]
Cleanup: headers
Campbell Barton [Thu, 8 Oct 2015 00:11:31 +0000 (11:11 +1100)]
Cleanup: typos
Campbell Barton [Wed, 7 Oct 2015 23:46:11 +0000 (10:46 +1100)]
Fix T46410: VSE Mask ignores animated properties
Campbell Barton [Wed, 7 Oct 2015 23:16:54 +0000 (10:16 +1100)]
Fix T46408: Transform (bicubic) ID channel fails
Campbell Barton [Wed, 7 Oct 2015 22:04:38 +0000 (09:04 +1100)]
UI: no need to update drag-edit for scroll buttons
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: https://developer.blender.org/D1239
Philipp Oeser [Wed, 7 Oct 2015 19:07:45 +0000 (21:07 +0200)]
Fix T46402: UILists fail to scroll using click+drag
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.
Campbell Barton [Wed, 7 Oct 2015 08:02:28 +0000 (19:02 +1100)]
Fix T46401: bad step size w/ radians
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.
Campbell Barton [Wed, 7 Oct 2015 04:39:06 +0000 (15:39 +1100)]
BMesh: maintain select-history when sorting
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.
Campbell Barton [Wed, 7 Oct 2015 04:02:06 +0000 (15:02 +1100)]
Cleanup: spelling
Campbell Barton [Wed, 7 Oct 2015 03:38:36 +0000 (14:38 +1100)]
Fix mesh validate: 'r_changed' ignored loop edits
Campbell Barton [Wed, 7 Oct 2015 00:04:23 +0000 (11:04 +1100)]
Fix game-property use-after-free error
D1538 by @hal01
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.
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.
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.
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).
Julian Eisel [Tue, 6 Oct 2015 10:51:35 +0000 (21:51 +1100)]
Fix T46345: Registrable props could be modified
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.
Campbell Barton [Tue, 6 Oct 2015 08:49:58 +0000 (19:49 +1100)]
Cleanup: use BLI_path_basename
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.
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.
Campbell Barton [Tue, 6 Oct 2015 05:24:57 +0000 (16:24 +1100)]
Cleanup: only check paint mode for active objects
Campbell Barton [Tue, 6 Oct 2015 04:20:16 +0000 (15:20 +1100)]
Fix T46385: Duplicate w/ vertex parent fails
Depsgraph customdata flag was set on the parent,
then cleared once the parent object was handled.
This is initialized to zero for new nodes, no need to clear.
Bastien Montagne [Mon, 5 Oct 2015 16:49:20 +0000 (18:49 +0200)]
Image Py API: Expose 'load_exists' to RNA image load(), and extend load_image() helper.
Expose our `BKE_image_load_exists` feature through an optional parameter to `Image.load()`.
Extend `image_utils.load_image()` with two optional parameters, to return existing image datablock
if possible, and in that case, to force reloading said image.
Needed by incomming 'import images as planes' addon enhancement.
Bastien Montagne [Mon, 5 Oct 2015 13:57:10 +0000 (15:57 +0200)]
Cleanup: use proper `ObjectWalkFunc` typedef in modifiers' object callback func.
Also, fix own stupidity, no need to define ID callback in case we only have objects,
calling code knows to fallback to `foreachObjectLink()` when `foreachIDLink()` is missing...
Campbell Barton [Mon, 5 Oct 2015 12:23:05 +0000 (23:23 +1100)]
Fix T46333: Particle Info Node broken w/ BI
Patch from @a.romanov
This also fixes multiple particle systems - which never worked.
Campbell Barton [Mon, 5 Oct 2015 12:19:33 +0000 (23:19 +1100)]
Cleanup: warning
Campbell Barton [Mon, 5 Oct 2015 11:22:03 +0000 (22:22 +1100)]
Fix T46375: Inverted scroll in node template menus
Sergey Sharybin [Mon, 5 Oct 2015 11:16:58 +0000 (16:16 +0500)]
Fix T46354: Curve Modifier does not update (new Dependency graph)
Result of curve modifier depends on transform of the object which should
be reflected by the depsgraph relations.
Sergey Sharybin [Mon, 5 Oct 2015 10:58:52 +0000 (15:58 +0500)]
Buildbot: Disable use of own Clang for OSX builds
Our version of clang fails with latest SDK. It's not really clear if such
change will disable openmp or not (-fopenmp doesn't throw an error, but
it might be a silent fail).
In any case, builds without OpenMP is better than no builds at all.\
Sergey Sharybin [Mon, 5 Oct 2015 10:43:56 +0000 (15:43 +0500)]
Fix T46377: No python executable in 2.76 rc3 distribution for OSX