7 years agoCMake: update source files
Campbell Barton [Sat, 28 Jun 2014 12:53:43 +0000 (22:53 +1000)]
CMake: update source files

7 years agoFix 40841: Copy and Paste objects no longer functions from one running instance of...
Bastien Montagne [Sat, 28 Jun 2014 13:01:04 +0000 (15:01 +0200)]
Fix 40841: Copy and Paste objects no longer functions from one running instance of Blender to another.

Own mistake in recent temp data handling refactor, copy/paste temp .blend file needs to
be in non-session-specific temp dir...

7 years agoFix T40797: Crash on render on specific file with volumentrics and 'use hair' clicked...
Sergey Sharybin [Fri, 27 Jun 2014 19:19:26 +0000 (01:19 +0600)]
Fix T40797: Crash on render on specific file with volumentrics and 'use hair' clicked on render layer

7 years agoUI: increase contrast for active colorband handle
Campbell Barton [Fri, 27 Jun 2014 13:17:39 +0000 (23:17 +1000)]
UI: increase contrast for active colorband handle

7 years agoUI: use cursor x-location for tooltip placement (T37478)
Campbell Barton [Fri, 27 Jun 2014 12:56:31 +0000 (22:56 +1000)]
UI: use cursor x-location for tooltip placement (T37478)

7 years agoBMesh: more edits to vertex dissolve, handle mixing wire edges with faces better
Campbell Barton [Fri, 27 Jun 2014 12:05:57 +0000 (22:05 +1000)]
BMesh: more edits to vertex dissolve, handle mixing wire edges with faces better

7 years agoGet rid of usage of non-existing module
Sergey Sharybin [Fri, 27 Jun 2014 11:28:11 +0000 (17:28 +0600)]
Get rid of usage of non-existing module

7 years agowarning fix: use of __restrict was inconsistent in BLI_dynstr between declaration...
Jason Wilkins [Fri, 27 Jun 2014 10:59:31 +0000 (05:59 -0500)]
warning fix: use of __restrict was inconsistent in BLI_dynstr between declaration and definition

7 years agoFix T40834, grab brush not working after recent jittering fix.
Antony Riakiotakis [Fri, 27 Jun 2014 10:56:57 +0000 (13:56 +0300)]
Fix T40834, grab brush not working after recent jittering fix.

Some brushes do not require location always. Made a list here, there may
be others but I think this pretty much covers this.

7 years agoBMesh: tweaks to dissolve, remove wire edges before other calculations
Campbell Barton [Fri, 27 Jun 2014 10:26:35 +0000 (20:26 +1000)]
BMesh: tweaks to dissolve, remove wire edges before other calculations

also avoid feedback loop when checking topology giving nondeterministic results.

7 years agoBMesh: add BM_vert_is_edge_pair(), faster then checking (BM_vert_edge_count(v) == 2)
Campbell Barton [Fri, 27 Jun 2014 10:22:19 +0000 (20:22 +1000)]
BMesh: add BM_vert_is_edge_pair(), faster then checking (BM_vert_edge_count(v) == 2)

7 years agoBMesh: add ability not to delete vertex when collapsing
Campbell Barton [Fri, 27 Jun 2014 10:11:23 +0000 (20:11 +1000)]
BMesh: add ability not to delete vertex when collapsing

7 years agoBMesh: use slightly faster method of stepping over edge-disks
Campbell Barton [Fri, 27 Jun 2014 10:03:50 +0000 (20:03 +1000)]
BMesh: use slightly faster method of stepping over edge-disks

7 years agoUpdate Carve to latest upstream version
Sergey Sharybin [Fri, 27 Jun 2014 09:38:58 +0000 (15:38 +0600)]
Update Carve to latest upstream version

This brings new copyright header which supports GPL2 and 3.

It wasn't really an issue before because we had agreement with
Tobias, but now it's all documented in sources.

7 years agoMSVC: quiet harmless linker warnings
Campbell Barton [Fri, 27 Jun 2014 09:49:56 +0000 (19:49 +1000)]
MSVC: quiet harmless linker warnings

7 years agoFix transparency issues in 3d viewport
Sergey Sharybin [Fri, 27 Jun 2014 09:33:57 +0000 (15:33 +0600)]
Fix transparency issues in 3d viewport

The issue was introduced by 0f95149 and it only worked before
because default game material alpha blending was set to alpha.

Now it'll check whether material has transparency enabled and
will use alpha blending by default in this case.

7 years agoUpdate Ceres to latest upstream version
Sergey Sharybin [Thu, 1 May 2014 23:52:56 +0000 (05:52 +0600)]
Update Ceres to latest upstream version

Brings new bounds limiting and also prepares build system
for the changes in the upstream.

Namely shared_ptr header and namespace is now being detected
by a build system rather than by hacks in the code.

This commit includes some changes to auto-detection flags
in SCons, presumably adding more consistency there. This
is main changes which are suppoed to be reviewed here.

Reviewers: campbellbarton

Differential Revision:

7 years agoFix for DeviceScene::attributes_uchar4 not released properly
Tamito Kajiyama [Fri, 27 Jun 2014 06:56:57 +0000 (08:56 +0200)]
Fix for DeviceScene::attributes_uchar4 not released properly

Reviewed by: dingto
Differential Revision:

7 years agoFollow up to previous commit, do not calculate normal now with front
Antony Riakiotakis [Thu, 26 Jun 2014 22:55:30 +0000 (01:55 +0300)]
Follow up to previous commit, do not calculate normal now with front

7 years agoFix T40758 Front facing not consistent in sculpt mode.
Antony Riakiotakis [Thu, 26 Jun 2014 22:48:27 +0000 (01:48 +0300)]
Fix T40758 Front facing not consistent in sculpt mode.

Some tools used view vector while others used the area normal.

Area Normal -is- useful and it will have to be incorporated to the
system better, but I'd like to do it in a way that is well
collaborating with sculpt plane calculation too, because it will have
to be slightly more expensive, i.e normal calculated before the plane,
never together, so only front to the area normal influence can be kept.

Currently sculpt plane takes into consideration view vector, but that
can produce an unwanted normal/plane at glancing angles on mesh edges.

Another issue that arises here is whether we do an actual calculation of
sculpt normal for each symmetry pass or we just flip the initial (former
is more expensive but more correct)

7 years agoFix T40823, crash with LoD operator without valid object.
Thomas Dinges [Thu, 26 Jun 2014 21:51:28 +0000 (23:51 +0200)]
Fix T40823, crash with LoD operator without valid object.

7 years agoFix T40691, dyntopo changes lost on save if sculpting on multiple
Antony Riakiotakis [Thu, 26 Jun 2014 20:57:00 +0000 (23:57 +0300)]
Fix T40691, dyntopo changes lost on save if sculpting on multiple

Flush edits for all objects, not just the active one. Here we might want
to disallow leaving an object on sculpt mode when selecting another, but
this works, no need to enforce it.

7 years agoFix T40813: Dissolve verts with adjacent regions, removes the dividing edge
Campbell Barton [Thu, 26 Jun 2014 19:11:02 +0000 (05:11 +1000)]
Fix T40813: Dissolve verts with adjacent regions, removes the dividing edge

7 years agoFix T40816, SSS brightness difference with Sample All Direct Lights.
Thomas Dinges [Thu, 26 Jun 2014 19:30:19 +0000 (21:30 +0200)]
Fix T40816, SSS brightness difference with Sample All Direct Lights.

This has been fixed before, but somehow got reverted in d644753319b6.

7 years agoFix parallel CMake builds failing due to missing buildinfo.h
Nicholas Bishop [Thu, 26 Jun 2014 18:09:45 +0000 (14:09 -0400)]
Fix parallel CMake builds failing due to missing buildinfo.h

Reviewed in #blendercoders by ideasman42

7 years agoBLI_array: avoid accidental assignment to BLI_array_count
Campbell Barton [Thu, 26 Jun 2014 14:31:50 +0000 (00:31 +1000)]
BLI_array: avoid accidental assignment to BLI_array_count

7 years agoFix BLI_array_staticdeclare size
Campbell Barton [Thu, 26 Jun 2014 14:20:17 +0000 (00:20 +1000)]
Fix BLI_array_staticdeclare size

7 years agoFix for dissolve faces iterating over verts while removing
Campbell Barton [Thu, 26 Jun 2014 13:29:45 +0000 (23:29 +1000)]
Fix for dissolve faces iterating over verts while removing

7 years agoAnother attempt to solve compilation error
Sergey Sharybin [Thu, 26 Jun 2014 10:22:04 +0000 (16:22 +0600)]
Another attempt to solve compilation error

Sorry for the noise, but it's tricky to troubleshoot stuff
which only happens on buildbot..

7 years agoTweak to previous commit, fixes scons to survive when upstream is not found
Sergey Sharybin [Thu, 26 Jun 2014 10:18:38 +0000 (16:18 +0600)]
Tweak to previous commit, fixes scons to survive when upstream is not found

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