blender.git
3 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.

3 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.

3 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).

3 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

3 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.

3 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

3 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.

3 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.

3 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.

3 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

3 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.

3 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

3 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.

3 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

3 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.

3 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.

3 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

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

3 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

3 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: https://developer.blender.org/D1544

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

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

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

3 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...

3 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.

3 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

3 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).

3 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

3 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.

3 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

3 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

3 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.

3 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.

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

3 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

3 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

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

3 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

3 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

3 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

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

3 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

3 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.

3 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.

3 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.

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

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

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

3 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

3 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

3 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

3 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: https://developer.blender.org/D1239

3 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

3 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.

3 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

3 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.

3 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

3 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.

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

3 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

3 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

3 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.

3 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.

3 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.

3 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).

3 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

3 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.

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

3 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.

3 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.

3 years agoCleanup: only check paint mode for active objects
Campbell Barton [Tue, 6 Oct 2015 05:24:57 +0000 (16:24 +1100)]
Cleanup: only check paint mode for active objects

3 years agoFix T46385: Duplicate w/ vertex parent fails
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.

3 years agoImage Py API: Expose 'load_exists' to RNA image load(), and extend load_image() helper.
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.

3 years agoCleanup: use proper `ObjectWalkFunc` typedef in modifiers' object callback func.
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...

3 years agoFix T46333: Particle Info Node broken w/ BI
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.

3 years agoCleanup: warning
Campbell Barton [Mon, 5 Oct 2015 12:19:33 +0000 (23:19 +1100)]
Cleanup: warning

3 years agoFix T46375: Inverted scroll in node template menus
Campbell Barton [Mon, 5 Oct 2015 11:22:03 +0000 (22:22 +1100)]
Fix T46375: Inverted scroll in node template menus

3 years agoFix T46354: Curve Modifier does not update (new Dependency graph)
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.

3 years agoBuildbot: Disable use of own Clang for OSX builds
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.\

3 years agoFix T46377: No python executable in 2.76 rc3 distribution for OSX
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

3 years agoMetadata display: support word-wrapped note
Campbell Barton [Mon, 5 Oct 2015 09:41:45 +0000 (20:41 +1100)]
Metadata display: support word-wrapped note

- Match layout from stamp buffer (note last so it can wrap)
- Correct vertical spacing (didn't take decender into account)
- Use U.pixelsize when setting font-size.

3 years agoFix T46379: Bad behavior of bUnit_ToUnitAltName() with default units.
Bastien Montagne [Mon, 5 Oct 2015 09:55:52 +0000 (11:55 +0200)]
Fix T46379: Bad behavior of bUnit_ToUnitAltName() with default units.

It would simply remove default units (in most case), cannot see any good reason for such behavior?
Might work in case default unit is the only one present, but breaks consistency (and it may not be
always obvious for user which unit it is). Comes from original patch from five years ago, rB7d8f0fce.

This will break keyboard-setting of values, e.g. '2m 33.4cm' would become '2 33.4cm',
totally useless and invalid entry!

3 years agoCleanup: pass pointer to rctf
Campbell Barton [Mon, 5 Oct 2015 09:46:53 +0000 (20:46 +1100)]
Cleanup: pass pointer to rctf

3 years agoSCons: Support compilation with 10.11 SK on OS X
Sergey Sharybin [Mon, 5 Oct 2015 09:48:04 +0000 (14:48 +0500)]
SCons: Support compilation with 10.11 SK on OS X

3 years agoFix T46352: Cycles fails to render when material contains UV mapped texture as volume...
Sergey Sharybin [Mon, 5 Oct 2015 09:45:03 +0000 (14:45 +0500)]
Fix T46352: Cycles fails to render when material contains UV mapped texture as volume input

3 years agoCycles: Add some TODO comments about derivatives
Sergey Sharybin [Mon, 5 Oct 2015 07:54:05 +0000 (12:54 +0500)]
Cycles: Add some TODO comments about derivatives

3 years agoCycles: Fix for builtin textures when linking against OSL 1.6.8
Sergey Sharybin [Mon, 5 Oct 2015 07:52:07 +0000 (12:52 +0500)]
Cycles: Fix for builtin textures when linking against OSL 1.6.8

Issue was caused by changed function signature. This is still not really full
support of new OSL API since we don't store anything in the derivatives which
could confuse mipmapping.

3 years agoCycles: Remove redundant coordinate clipping in voxel SVM node
Sergey Sharybin [Mon, 5 Oct 2015 07:41:16 +0000 (12:41 +0500)]
Cycles: Remove redundant coordinate clipping in voxel SVM node

It is now handled via texture extension type.

3 years agoCycles: Fix missing z-coordinate check in volume sampling
Sergey Sharybin [Mon, 5 Oct 2015 07:40:50 +0000 (12:40 +0500)]
Cycles: Fix missing z-coordinate check in volume sampling

3 years agoFix T46358: Cycles point density uses repeat extension type
Sergey Sharybin [Mon, 5 Oct 2015 07:28:36 +0000 (12:28 +0500)]
Fix T46358: Cycles point density uses repeat extension type

3 years agoFix T46305: normal map display issues in viewport when using VBOs.
Brecht Van Lommel [Sun, 4 Oct 2015 22:10:28 +0000 (00:10 +0200)]
Fix T46305: normal map display issues in viewport when using VBOs.

3 years agoCMake: detect OS X 10.11 / Xcode 7.
Brecht Van Lommel [Sun, 4 Oct 2015 15:57:14 +0000 (17:57 +0200)]
CMake: detect OS X 10.11 / Xcode 7.

3 years agoFix T46368: Subtitle Export: Subtitles are not sorted by time.
Bastien Montagne [Sun, 4 Oct 2015 14:42:19 +0000 (16:42 +0200)]
Fix T46368: Subtitle Export: Subtitles are not sorted by time.

We need a temp list of Text effect strips here, to be able to sort it as we want...

3 years agoFix (unreported) broken export of timecodes in SubRip VSE exporter.
Bastien Montagne [Sun, 4 Oct 2015 13:53:56 +0000 (15:53 +0200)]
Fix (unreported) broken export of timecodes in SubRip VSE exporter.

Would write 1.04 seconds as `00:00:01,40` instead of `00:00:01,040`...

Anyway, we already have BLI API for timecodes, much better to add
SubRip timecode format there, heavily simplifies code.

To be backported to final 2.76.

3 years agoBMesh: improved smooth subdivision
Campbell Barton [Sun, 4 Oct 2015 12:20:48 +0000 (23:20 +1100)]
BMesh: improved smooth subdivision

Instead of offsetting along normals, smooth positions are now
calculated on a sphere defined by the vertices and their normals.

This removes visible seams along original edges, which were common previously.

3 years agoFix (coverity-reported) broken 'transform helpers' drawing.
Bastien Montagne [Sun, 4 Oct 2015 07:31:17 +0000 (09:31 +0200)]
Fix (coverity-reported) broken 'transform helpers' drawing.

E.g. trackball-arrows (R-R) were no more visible.

Caused by wrong cast of an array from int to float, we need an int version of those helpers (`glTranslatenxv`) too.

3 years agoClenup: Text Editor: Fix inconsistencies in textline handling (makes coverty happy).
Bastien Montagne [Sun, 4 Oct 2015 06:59:14 +0000 (08:59 +0200)]
Clenup: Text Editor: Fix inconsistencies in textline handling (makes coverty happy).

3 years agoCorrect last commit, picky type warnings
Campbell Barton [Sun, 4 Oct 2015 04:11:38 +0000 (15:11 +1100)]
Correct last commit, picky type warnings

3 years agoCorrect last commit, check before freeing
Campbell Barton [Sun, 4 Oct 2015 04:01:46 +0000 (15:01 +1100)]
Correct last commit, check before freeing

3 years agoBLI_Buffer: add BLI_buffer_reinit
Campbell Barton [Sun, 4 Oct 2015 03:14:28 +0000 (14:14 +1100)]
BLI_Buffer: add BLI_buffer_reinit

Useful for re-using a buffer when the existing data can be thrown away.