7 years agoFix compilation error with scons and older pythons
Sergey Sharybin [Thu, 26 Jun 2014 10:03:52 +0000 (16:03 +0600)]
Fix compilation error with scons and older pythons

7 years agoForgot this in previous commit
Sergey Sharybin [Thu, 26 Jun 2014 09:29:16 +0000 (15:29 +0600)]
Forgot this in previous commit

7 years agoReplace Main->lock with an anoynous structure pointer
Sergey Sharybin [Thu, 26 Jun 2014 08:55:40 +0000 (14:55 +0600)]
Replace Main->lock with an anoynous structure pointer

This way it's not needed to include BLI_threads.h from the
BKE_main.h which helps avoiding adding PThreads includes to
each library which uses Main on Windows.

From the API point of view it's now MainLock* and to lock or
unlock the main you're to use BKE_main_(un)lock().

This solves compilation error on Windows with SCons.

7 years agoBetter description for the "make links" operator.
Lukas Tönne [Thu, 26 Jun 2014 08:38:53 +0000 (10:38 +0200)]
Better description for the "make links" operator.

This is a misnomer: the operator copies data (mostly pointers) of
various types from the active to selected objects. "Make Link" implies
creating a permanent connection between these objects ...

7 years agoCode cleanup: remove MAT3/4_UNITY defines, just call unit_m3/4
Campbell Barton [Thu, 26 Jun 2014 06:09:59 +0000 (16:09 +1000)]
Code cleanup: remove MAT3/4_UNITY defines, just call unit_m3/4

7 years agoCode cleanup: casts, dead assignment & arg order.
Campbell Barton [Thu, 26 Jun 2014 05:46:42 +0000 (15:46 +1000)]
Code cleanup: casts, dead assignment & arg order.

7 years agoReverted part of my previous commit causing a crash.
Tamito Kajiyama [Thu, 26 Jun 2014 03:54:55 +0000 (12:54 +0900)]
Reverted part of my previous commit causing a crash.

7 years agoFreestyle: code cleanup: removed unused (outdated) static variables.
Tamito Kajiyama [Thu, 26 Jun 2014 03:12:50 +0000 (12:12 +0900)]
Freestyle: code cleanup: removed unused (outdated) static variables.

7 years agoWhitespace fix
Joshua Leung [Thu, 26 Jun 2014 02:42:36 +0000 (14:42 +1200)]
Whitespace fix

7 years agoBugfix T40801: Select grouped objects by Keying Set not working with builtin Keying...
Joshua Leung [Thu, 26 Jun 2014 02:39:44 +0000 (14:39 +1200)]
Bugfix T40801: Select grouped objects by Keying Set not working with builtin Keying Sets

Most of the default builtin Keying Sets (e.g. Loc, Rot, Available, etc.) depend
on the currently selected objects, making them unsuitable for use with this feature.
As a result, this feature would silently fail. This commit adds some error messages
which at least let users know what's going on so that they can make other plans

7 years agoBGE: New Mouse Actuator
Jorge Bernal [Wed, 25 Jun 2014 22:47:30 +0000 (15:47 -0700)]
BGE: New Mouse Actuator

Disclaimer: The author of this patch is Geoffrey Gollmer (gomer). I only updated the patch to the current git master status, reworked several parts to fit well with current coding style and applied several fixes.

This actuator allows users to show/hide the mouse cursor using logic bricks, as well as control object rotation with a mouse in the BGE.
The mouse rotation is flexible enough to allow any type of mouse look, as well as banking for flight controls.



Blend file for testing Mouse actuator (with default parameters and crosshair): {F94920}

Reviewers: moguri

Reviewed By: moguri

CC: gomer, lordodin
Differential Revision:

7 years agoWindows: Enable numpy again, as we do have libs again for vc2013 and against py3.4.
Thomas Dinges [Wed, 25 Jun 2014 20:23:04 +0000 (22:23 +0200)]
Windows: Enable numpy again, as we do have libs again for vc2013 and against py3.4.

7 years agoUpdating submodule to point to v2.71
Sergey Sharybin [Wed, 25 Jun 2014 18:53:49 +0000 (00:53 +0600)]
Updating submodule to point to v2.71

Now for real!

7 years agoUpdating submodule to point to v2.71
Sergey Sharybin [Wed, 25 Jun 2014 18:39:48 +0000 (00:39 +0600)]
Updating submodule to point to v2.71

7 years agoFix T40759: "Add Shortcut" operator was leaving new keymap items on
Lukas Tönne [Wed, 25 Jun 2014 15:40:51 +0000 (17:40 +0200)]
Fix T40759: "Add Shortcut" operator was leaving new keymap items on

7 years agoFix T40757: Video Texture - Video frames dropped from beginning and end
Sergey Sharybin [Wed, 25 Jun 2014 11:52:21 +0000 (17:52 +0600)]
Fix T40757: Video Texture - Video frames dropped from beginning and end

it's actually a followup for 04f81c8, no need to apply offset for video files.

7 years agoFix T40776: Crash when using empty curve as a deformation target
Sergey Sharybin [Wed, 25 Jun 2014 10:25:43 +0000 (16:25 +0600)]
Fix T40776: Crash when using empty curve as a deformation target

7 years agoFix T40800: Crash when editing material nodes
Sergey Sharybin [Wed, 25 Jun 2014 09:36:45 +0000 (15:36 +0600)]
Fix T40800: Crash when editing material nodes

it was caused by ee5f432. Not sure why exactly blender runs into
threading conflicts here since material preview works.

Let's keep it simple for now and disable material nodes preview,
because it's not supported by the interface anyway.

This is to be included to the final release.

7 years agoUse api function for flipping button list & rename to BLI_listbase_reverse
Campbell Barton [Wed, 25 Jun 2014 09:33:35 +0000 (19:33 +1000)]
Use api function for flipping button list & rename to BLI_listbase_reverse

7 years agoUse fill function for setting origindex
Campbell Barton [Wed, 25 Jun 2014 09:29:06 +0000 (19:29 +1000)]
Use fill function for setting origindex

7 years agoSpeedup for skin modifier, avoid calculating normals many times
Campbell Barton [Wed, 25 Jun 2014 09:02:49 +0000 (19:02 +1000)]
Speedup for skin modifier, avoid calculating normals many times

7 years agoFix T40786: Crash setting negative sound offset
Campbell Barton [Wed, 25 Jun 2014 06:45:03 +0000 (16:45 +1000)]
Fix T40786: Crash setting negative sound offset

7 years agoCorrection to last commit
Campbell Barton [Tue, 24 Jun 2014 18:22:14 +0000 (04:22 +1000)]
Correction to last commit

7 years agoUse gnu-libc arg order for BLI_sort_r
Campbell Barton [Tue, 24 Jun 2014 18:01:38 +0000 (04:01 +1000)]
Use gnu-libc arg order for BLI_sort_r

When building on gnu-libc don't use our own implementation.

7 years agoMake main library safe(er) for the threaded usage
Sergey Sharybin [Tue, 24 Jun 2014 14:43:08 +0000 (20:43 +0600)]
Make main library safe(er) for the threaded usage

Added a lock to the Main which is getting acquired and released
when modifying it's lists.

Should not be any functional changes now, it just means Main is
now considered safe without worrying about locks in the callee.

7 years agoFix example
Campbell Barton [Tue, 24 Jun 2014 17:04:53 +0000 (03:04 +1000)]
Fix example

7 years agoFix own error in recent tooltip commit
Campbell Barton [Tue, 24 Jun 2014 16:40:20 +0000 (02:40 +1000)]
Fix own error in recent tooltip commit

7 years agoFreestyle: use mathutils_array_parse() instead of its own helper functions.
Tamito Kajiyama [Tue, 24 Jun 2014 13:48:15 +0000 (22:48 +0900)]
Freestyle: use mathutils_array_parse() instead of its own helper functions.

Patch contribution by flokkievids (Folkert de Vries).  Thanks!

7 years agoFreestyle: use bool instead of int.
Tamito Kajiyama [Tue, 24 Jun 2014 13:44:53 +0000 (22:44 +0900)]
Freestyle: use bool instead of int.

Patch contribution by flokkievids (Folkert de Vries).  Thanks!

7 years agomove STACK_* macros into BLI_stackdefines.h
Campbell Barton [Tue, 24 Jun 2014 14:01:10 +0000 (00:01 +1000)]
move STACK_* macros into BLI_stackdefines.h

7 years agoAdd MEMCPY_STRUCT_OFS macro for copying values after a struct member
Campbell Barton [Tue, 24 Jun 2014 13:50:12 +0000 (23:50 +1000)]
Add MEMCPY_STRUCT_OFS macro for copying values after a struct member

use for DM_to_mesh to avoid clobbering the ListBase

7 years agoadd STACK_REMOVE macro
Campbell Barton [Tue, 24 Jun 2014 11:59:38 +0000 (21:59 +1000)]
add STACK_REMOVE macro

7 years agoCode Cleanup - Using the enum types in more API signatures instead of relying on...
Joshua Leung [Tue, 24 Jun 2014 09:59:52 +0000 (21:59 +1200)]
Code Cleanup - Using the enum types in more API signatures instead of relying on coders to do the right thing

7 years agoCode Cleanup - Replacing shorts with bools and enum types
Joshua Leung [Tue, 24 Jun 2014 07:27:09 +0000 (19:27 +1200)]
Code Cleanup - Replacing shorts with bools and enum types

7 years agoFix T40695: world surface shader incorrectly visible with world volume.
Brecht Van Lommel [Tue, 24 Jun 2014 09:34:42 +0000 (11:34 +0200)]
Fix T40695: world surface shader incorrectly visible with world volume.

7 years agoUpdate the design of tooltips
Campbell Barton [Tue, 24 Jun 2014 09:00:02 +0000 (19:00 +1000)]
Update the design of tooltips

- left aligned
- higher contrast between tip text and py-text
- use monospace for py-text

D611 by Severin, design by Plyczkowski, with own minor changes.

7 years agoFreestyle: Progress bar updates during mesh loading.
Tamito Kajiyama [Tue, 24 Jun 2014 08:12:38 +0000 (17:12 +0900)]
Freestyle: Progress bar updates during mesh loading.

7 years agoFreestyle: Fix for a couple of missing names in freestyle.chainingiterators.__all__.
Tamito Kajiyama [Tue, 24 Jun 2014 08:11:29 +0000 (17:11 +0900)]
Freestyle: Fix for a couple of missing names in freestyle.chainingiterators.__all__.

7 years agoFollowup for the previous commit
Sergey Sharybin [Tue, 24 Jun 2014 08:23:33 +0000 (14:23 +0600)]
Followup for the previous commit

Need to do the same for render exec() because it doesn't
use the job system.

7 years agoSwitch allocator to thread-safe when rendering from the command line
Sergey Sharybin [Tue, 24 Jun 2014 08:12:28 +0000 (14:12 +0600)]
Switch allocator to thread-safe when rendering from the command line

This is needed because render threads would do some allocations like
part buffer allocation and so. This is likely harmless with the lock
free allocator (not on Windows tho), but when using guarded allocator
we need to be sure access to the list of MemHead is safe.

7 years agoFix compilation on OSX after own rB414c70435dcd...
Bastien Montagne [Tue, 24 Jun 2014 06:31:29 +0000 (08:31 +0200)]
Fix compilation on OSX after own rB414c70435dcd...

Sigh, why can't all unix have same includes? :/

7 years agoCtrl-F now activates the filter-by-name functionality for Animation Editors
Joshua Leung [Tue, 24 Jun 2014 05:52:40 +0000 (17:52 +1200)]
Ctrl-F now activates the filter-by-name functionality for Animation Editors

7 years agoImprove doxygen comment to include some type info to make it more useful
Joshua Leung [Sun, 22 Jun 2014 13:56:32 +0000 (01:56 +1200)]
Improve doxygen comment to include some type info to make it more useful

7 years agoPolyfill2d: Correct boundbox check (Fix T40777)
Campbell Barton [Tue, 24 Jun 2014 05:26:47 +0000 (15:26 +1000)]
Polyfill2d: Correct boundbox check (Fix T40777)

7 years agoD319: Freestyle Python scripts update.
Tamito Kajiyama [Tue, 24 Jun 2014 04:52:12 +0000 (13:52 +0900)]
D319: Freestyle Python scripts update.

This revision is meant to update Freestyle's Python scripts to make full usage
of the new features of Python and Freestyle's Python API.

Freestyle's Python scripts are pretty old already, and were never given much
attention. With the 2.7x generation of Blender coming up, this is an excellent
time to update Freestyle's Python scripts, hopefully adding some new features
and achieving some speed improvements on the way.

Main goals:
* use for loops where possible
* general cleanup, making use of more recent python features (generators,
  ternary operator, ect.)
* update the documentation on the way (it's lacking atm)

Differential revision:

Author: flokkievids (Folkert de Vries)

Reviewed by: kjym3 (Tamito Kajiyama)

7 years agoOSX: Fix T40749, own mistake for m_lionStyleFullScreen condition
Jens Verwiebe [Mon, 23 Jun 2014 19:27:38 +0000 (21:27 +0200)]
OSX: Fix T40749, own mistake for m_lionStyleFullScreen condition

7 years agoFix own typo in temp_data patch, (windows-only)
Bastien Montagne [Mon, 23 Jun 2014 14:55:04 +0000 (16:55 +0200)]
Fix own typo in temp_data patch, (windows-only)

Don't know when this sneaked in, I did wrote that part of the patch on win VM with MSVC2013... :/

Note: letting asside warnings for now, then should not prevent building anyway.

7 years agoUse toolbar tabs for node categories instead of just a long list of
Lukas Tönne [Mon, 23 Jun 2014 14:34:02 +0000 (16:34 +0200)]
Use toolbar tabs for node categories instead of just a long list of

Patch by @Severin (with minor modifications by me). As discussed in
{D535} the node editor does not have real modal operator tools like the
3D view or image editors for instance, so it makes sense to utilise it
this way. Tabs really help in this area due to the large amount of node
types and categories. Further tweaks could be made later if the need

7 years agoBMesh: we actually can set loop indices too while converting from Mesh to BMesh...
Bastien Montagne [Mon, 23 Jun 2014 14:11:48 +0000 (16:11 +0200)]
BMesh: we actually can set loop indices too while converting from Mesh to BMesh...

7 years agoAdd ED_paint.h, split out ED_sculpt.h
Campbell Barton [Mon, 23 Jun 2014 11:59:34 +0000 (21:59 +1000)]
Add ED_paint.h, split out ED_sculpt.h

also rename some functions to match our convention

7 years agoT39690: Modifications to Blender's 'temp dir' system.
Bastien Montagne [Mon, 23 Jun 2014 11:42:19 +0000 (13:42 +0200)]
T39690: Modifications to Blender's 'temp dir' system.

Current temporary data of Blender suffers one major issue - default 'temp' dir on Windows is never
automatically cleaned up, and can end being quite big when used by Blender, especially when we have
to store per-process data (using getpid() in file names).

To address this, this patch:
* Divides tempdir paths in two, one for 'base' temp dir (the same as previous unique tempdir path),
  the other is a mkdtemp-generated sub-dir, specific to each Blender instance.
* Only uses base tempdir when we need some shallow persistance accross Blender sessions - and we always
  reuse the same filename (quit.blend...) or generate small file (crash reports...).
* Uses temp sub-dir for heavy files like pointcache or renderEXRs (Save Buffer option).
* Erases temp sub-dir on quit or crash.

To get this working it also adds a working 'recursive delete' to BLI_delete() under Windows.

Note that, as in current code, the 'recover render result' hack-feature that was possible
with SaveBuffer option is still removed. A real renderresult cache feature will be added
soon, though.

Reviewers: campbellbarton, brecht, sergey

Reviewed By: campbellbarton, sergey

CC: sergey
Differential Revision:

7 years agoUse specified exception mask for buildinfo
Sergey Sharybin [Mon, 23 Jun 2014 09:46:41 +0000 (15:46 +0600)]
Use specified exception mask for buildinfo

This way we only catch exceptions which we're intended to
and if something bad happens (like missing import due to
refactor or so) we'll see them instantly.

7 years agoFix T40764: Keyframed Render Layers Don't Work as Intended
Sergey Sharybin [Mon, 23 Jun 2014 08:25:52 +0000 (14:25 +0600)]
Fix T40764: Keyframed Render Layers Don't Work as Intended

7 years agoFix compiler error in Cycles Beckmann sampling precomputation: strict
Lukas Tönne [Mon, 23 Jun 2014 07:47:52 +0000 (09:47 +0200)]
Fix compiler error in Cycles Beckmann sampling precomputation: strict
compiler flags don't allow implicit double -> float casting.

Code was added in rB8fbd71e.

7 years agoFix T40756 Select Linked by Particle System matches ignores selected
Lukas Tönne [Mon, 23 Jun 2014 06:20:35 +0000 (08:20 +0200)]
Fix T40756 Select Linked by Particle System matches ignores selected

This is inconsistent with other comparable cases like materials, where
the active slot is used to define matching objects.

7 years agoD605: Fixes for proper handling of wchar_t paths in MinGW.
Tamito Kajiyama [Mon, 23 Jun 2014 01:07:06 +0000 (10:07 +0900)]
D605: Fixes for proper handling of wchar_t paths in MinGW.

* Fixed different not-in-sync #ifdef blocks for struct stat variants under Windows.

Comments have been left to indicate the portions of BLI_fileops.h and
BLI_fileops_types.h that need to stay in sync.

* Added BLI_wstat() to de-duplicate #ifdef blocks for stat() variants on Windows.

* Fix for opendir() and associate functions in MinGW not working properly with
non-ASCII, MBCS-compatible paths.

MinGW (FREE_WINDOWS) has opendir() and _wopendir(), and only the
latter accepts a path name of wchar_t type. Rather than messing up with
extra #ifdef's here and there, Blender's own implementations of opendir()
and related functions are used to properly support paths with non-ASCII,
MBCS-compatible characters.

Tested with MSVC 2013 Express, MinGW32 (gcc 4.6.2) and MinGW-w64 (gcc 4.7.1).

Differential Revision:

Reviewed By: campbellbarton

7 years agoGTest now works without buildinfo
Campbell Barton [Sun, 22 Jun 2014 15:13:25 +0000 (01:13 +1000)]
GTest now works without buildinfo

7 years agoadd brush icons from paint branch to make diff more manageable for arcanist
Antony Riakiotakis [Sun, 22 Jun 2014 14:48:08 +0000 (17:48 +0300)]
add brush icons from paint branch to make diff more manageable for arcanist

7 years agoApply fix for T40745 to extrude_face_region too
Campbell Barton [Sun, 22 Jun 2014 14:12:06 +0000 (00:12 +1000)]
Apply fix for T40745 to extrude_face_region too

7 years agoSpelling
Campbell Barton [Sun, 22 Jun 2014 13:47:05 +0000 (23:47 +1000)]

7 years agoEditmesh: extruding end-point verts now maintains edge-direction
Campbell Barton [Sun, 22 Jun 2014 08:38:17 +0000 (18:38 +1000)]
Editmesh: extruding end-point verts now maintains edge-direction

Resolves T40745, where faces from extruded edges had flipped normals.

7 years agoCode cleanup: style
Campbell Barton [Sun, 22 Jun 2014 05:02:27 +0000 (15:02 +1000)]
Code cleanup: style

7 years agoCode cleanup: de-duplicate widget_num_tria, widget_scroll_circle
Campbell Barton [Sun, 22 Jun 2014 05:01:54 +0000 (15:01 +1000)]
Code cleanup: de-duplicate widget_num_tria, widget_scroll_circle

7 years agoRemove unused function
Campbell Barton [Sun, 22 Jun 2014 03:05:48 +0000 (13:05 +1000)]
Remove unused function

7 years agoWM: set circle select minimum radius to 1
Campbell Barton [Sun, 22 Jun 2014 03:02:26 +0000 (13:02 +1000)]
WM: set circle select minimum radius to 1

7 years agoCycles: improved Beckmann sampling using precomputed data
Brecht Van Lommel [Fri, 20 Jun 2014 19:21:05 +0000 (21:21 +0200)]
Cycles: improved Beckmann sampling using precomputed data

It turns out that the new Beckmann sampling function doesn't work well with
Quasi Monte Carlo sampling, mainly near normal incidence where it can be worse
than the previous sampler. In the new sampler the random number pattern gets
split in two, warped and overlapped, which hurts the stratification, see the
visualization in the differential revision.

Now we use a precomputed table, which is much better behaved. GGX does not seem
to benefit from using a precomputed table.

Disadvantage is that this table adds 1MB of memory usage and 0.03s startup time
to every render (on my quad core CPU).

Differential Revision:

7 years agoFix T40703: cycles viewport smoke not updating when changing frame.
Brecht Van Lommel [Sat, 21 Jun 2014 20:18:48 +0000 (22:18 +0200)]
Fix T40703: cycles viewport smoke not updating when changing frame.

7 years agoFix T40714: cycles not loading CMYK jpeg files correctly.
Brecht Van Lommel [Sat, 21 Jun 2014 18:42:03 +0000 (20:42 +0200)]
Fix T40714: cycles not loading CMYK jpeg files correctly.

7 years agoFix cycles "Is Singular Ray" being on for Camera rays, now is off.
Brecht Van Lommel [Sun, 15 Jun 2014 10:19:51 +0000 (12:19 +0200)]
Fix cycles "Is Singular Ray" being on for Camera rays, now is off.

This appears to be a wrong interpretation of the OSL docs, and it's more
convenient to have it off.

7 years agoFix T40567 Crash when returing to object mode from dyntopo.
Antony Riakiotakis [Sat, 21 Jun 2014 18:20:13 +0000 (21:20 +0300)]
Fix T40567 Crash when returing to object mode from dyntopo.

Returning to object mode reactivates any generative modifiers
and this can lead to a polycount explosion.

For now just improve the warning when entering dyntopo with generative
modifiers. I would like to add the ability spawn options to apply or
remove the modifiers too, however separate undo stack system comes back
with a vengeance here, since it won't allow restoring the application/
also may invalidate all sculpt undo in the undo stack prior to the
application (needs investigation).

7 years agoFix T40727: Renaming nodes did not correctly fix animation paths.
Lukas Tönne [Sat, 21 Jun 2014 04:45:48 +0000 (06:45 +0200)]
Fix T40727: Renaming nodes did not correctly fix animation paths.

7 years agoFix scons building in case git is not available.
Bastien Montagne [Fri, 20 Jun 2014 16:13:20 +0000 (18:13 +0200)]
Fix scons building in case git is not available.

Not so nice to use try/except here, but simplest solution to avoid failing in case
git commands fail for some reason...

7 years agoBLI_md5: add a utility function to 'translate' raw 16bytes digest into a nice 32chars...
Bastien Montagne [Fri, 20 Jun 2014 14:18:26 +0000 (16:18 +0200)]
BLI_md5: add a utility function to 'translate' raw 16bytes digest into a nice 32chars hexadecimal string.

That kind of stuff belongs to BLI, not specialized code like thumbs.c

7 years agoCode cleanup: BLI_md5.c was... not nice.
Bastien Montagne [Fri, 20 Jun 2014 14:06:12 +0000 (16:06 +0200)]
Code cleanup: BLI_md5.c was... not nice.

7 years agoGLSL tweaks for viewport render draw
Sergey Sharybin [Fri, 20 Jun 2014 12:10:32 +0000 (18:10 +0600)]
GLSL tweaks for viewport render draw

- Was missing pixel scale
- Dither is now supported on GPU

7 years agoImplement resolution divider in the Blender Internal
Sergey Sharybin [Thu, 19 Jun 2014 10:21:17 +0000 (16:21 +0600)]
Implement resolution divider in the Blender Internal

Currently resolution divider is not exposed to the
interface yet, and i'm not even sure it needs to be
exposed because it's somewhat weird configuration.
Need to check how often artists are changing start
resolution in Cycles.

Pretty much straightforward implementation with the
only weak part: render result is getting re-allocated
and upscaled when current resolution is finished.
Not sure how to make it faster actually. Maybe it's
just a matter of making upscale fast enough.

Needed to fix some possible memory leak happening
in Freestyle when canceling rendering on a special
stage -- it was missing temp bmain free,

Reviewers: campbellbarton, dingto

CC: sebastian_k, fsiddi, venomgfx
Differential Revision:

7 years agoReplace hard-coded version for release log url
Campbell Barton [Fri, 20 Jun 2014 10:49:50 +0000 (20:49 +1000)]
Replace hard-coded version for release log url

7 years agoUpdate Readme and Release Log link for 2.71.
Thomas Dinges [Fri, 20 Jun 2014 10:31:12 +0000 (12:31 +0200)]
Update Readme and Release Log link for 2.71.

This should be backported.

7 years agoFix release notes link in splash.
Bastien Montagne [Fri, 20 Jun 2014 08:21:39 +0000 (10:21 +0200)]
Fix release notes link in splash.

Auto-generate this link from Blender version, as done for API link.

This commit should be backported to 2.71 branch.

7 years agoFix 2 GLSL errors, with Cycles Hair BSDF.
Thomas Dinges [Fri, 20 Jun 2014 07:36:11 +0000 (09:36 +0200)]
Fix 2 GLSL errors, with Cycles Hair BSDF.

7 years agoUI: auto-open other menus by hovering over, once a menu is already open
Campbell Barton [Fri, 20 Jun 2014 07:30:02 +0000 (17:30 +1000)]
UI: auto-open other menus by hovering over, once a menu is already open

D590 by Matthew Reid

7 years agoFix T40692, Checker Texture derivation on very large scales (1k).
Thomas Dinges [Fri, 20 Jun 2014 07:03:00 +0000 (09:03 +0200)]
Fix T40692, Checker Texture derivation on very large scales (1k).

It might still have a derivation on larger scales (10k or more), but we need some offset to avoid precision issues on unit coordinates.

7 years agoFix T40697: Skinned meshes with shapekeys crashing in the BGE
Mitchell Stokes [Fri, 20 Jun 2014 01:20:56 +0000 (18:20 -0700)]
Fix T40697: Skinned meshes with shapekeys crashing in the BGE

7 years agoCycles: Make Volume Bounces default to 0. This is quiet a bit faster, and produces...
Thomas Dinges [Thu, 19 Jun 2014 17:04:44 +0000 (19:04 +0200)]
Cycles: Make Volume Bounces default to 0. This is quiet a bit faster, and produces less noise.

7 years agoRNA: Expose hook centre
Campbell Barton [Thu, 19 Jun 2014 16:20:23 +0000 (02:20 +1000)]
RNA: Expose hook centre

D529 by Gottfried Hofmann

7 years agoPython: Remove deprecated uses of os.popen
Campbell Barton [Thu, 19 Jun 2014 15:57:06 +0000 (01:57 +1000)]
Python: Remove deprecated uses of os.popen

T40415 by Lawrence D'Oliveiro

7 years agoAdd a bmesh_core_test, a start at testing bmesh functionality.
Howard Trickey [Thu, 19 Jun 2014 15:49:09 +0000 (11:49 -0400)]
Add a bmesh_core_test, a start at testing bmesh functionality.

Needed to make the blender link libraries a global property
now that tests are parallel to source directory.
Current sort order for blender link libraries doesn't work
for tests that start with few defined symbols. Doubling the
lib list works, but a TODO to find a better way (probably
using CMake's own mechanism for tracking dependencies).

7 years agoBugfix for Elastic and Back easing types
Joshua Leung [Thu, 19 Jun 2014 13:28:45 +0000 (01:28 +1200)]
Bugfix for Elastic and Back easing types


As pointed out by Thomas Beck (plasmasolutions), the current behaviour and/or
default values for their parameters didn't quite make sense:

1) Back Easing - The old default value of 0.0 results in some overshoot being applied,
while trying to tweak it up or down resulted in some odd jumps and discontinities.

I've ended up removing some code here which forcibly using a "back" value of 1.7
when users wanted 0.0 instead. There doesn't seem to be any good reason for this.
To ensure that there is still an effect initially, keyframes now get created
with back set to 1.7

2) Elastic Easing - The old default settings of <amplitude = 0, period = 0> resulted
in a curve without any elastic bounce, which wasn't very useful for motion graphics.

Now, default values of amplitude = 0.8 and period = 4.1 get set. These were hand picked
by Thomas to work well when the duration of the motion is 10 frames long (i.e. the
typical length of such effects when doing motion graphics).

7 years agoStyle cleanups here
Joshua Leung [Thu, 19 Jun 2014 13:00:45 +0000 (01:00 +1200)]
Style cleanups here

7 years agoPoseLib: New pose library actions now have their "id root" setting initialised properly
Joshua Leung [Mon, 16 Jun 2014 09:59:42 +0000 (21:59 +1200)]
PoseLib: New pose library actions now have their "id root" setting initialised properly

7 years agoView3D: Handle un-weighed vertex color properly
Campbell Barton [Thu, 19 Jun 2014 12:34:52 +0000 (22:34 +1000)]
View3D: Handle un-weighed vertex color properly

D608 by Gaia Clary

7 years agoAdd brief license headers to tests
Campbell Barton [Thu, 19 Jun 2014 08:48:41 +0000 (18:48 +1000)]
Add brief license headers to tests

These are effectively public-domain, but use apache2.0 to avoid adding new licenses

7 years agoCode cleanup: replace odd pointer casting with structs
Campbell Barton [Thu, 19 Jun 2014 08:36:49 +0000 (18:36 +1000)]
Code cleanup: replace odd pointer casting with structs

7 years agoCode cleanup: remove unused callback for depth drawing
Campbell Barton [Thu, 19 Jun 2014 07:35:23 +0000 (17:35 +1000)]
Code cleanup: remove unused callback for depth drawing

7 years agoCode cleanup: de-duplicate calls wmOrtho, wmFrustum
Campbell Barton [Thu, 19 Jun 2014 07:00:19 +0000 (17:00 +1000)]
Code cleanup: de-duplicate calls wmOrtho, wmFrustum

7 years agoCode cleanup: use const passing rects
Campbell Barton [Thu, 19 Jun 2014 06:39:18 +0000 (16:39 +1000)]
Code cleanup: use const passing rects

7 years agoEnable texture preview even when Cycles is active
Sergey Sharybin [Thu, 19 Jun 2014 07:11:58 +0000 (13:11 +0600)]
Enable texture preview even when Cycles is active

7 years agoUse Blender codestyle, not Google's one!
Sergey Sharybin [Thu, 19 Jun 2014 06:47:56 +0000 (12:47 +0600)]
Use Blender codestyle, not Google's one!

7 years agoAdd unit tests for aligned alloc
Sergey Sharybin [Thu, 19 Jun 2014 06:45:00 +0000 (12:45 +0600)]
Add unit tests for aligned alloc

This was really handy on initial work of aligned alloc
and would be handy as well when we'll need to support
arbitrary alignment on Apple platforms.

7 years agoCycles: attempt to solve compilation error on 32bit OSX
Sergey Sharybin [Thu, 19 Jun 2014 06:24:08 +0000 (12:24 +0600)]
Cycles: attempt to solve compilation error on 32bit OSX