blender.git
3 years agoText Editor: Support for un-commenting lines with indented comment character temp_textedit_comment_toggling
Julian Eisel [Tue, 15 Mar 2016 21:07:55 +0000 (22:07 +0100)]
Text Editor: Support for un-commenting lines with indented comment character

Took quite some effort to get this working with undo, and not everything is working yet. Open todos:
* Fix un-indent undo (pretty easy fix, just to lazy now ;) )
* Fix redo (didn't check details yet)
* Fix un-comment undo for line with nothing but a comment char

3 years agoFix T47577: Movie clip uses too much memory with still image sequences
Sergey Sharybin [Tue, 15 Mar 2016 10:07:18 +0000 (15:07 +0500)]
Fix T47577: Movie clip uses too much memory with still image sequences

3 years agomovieclip: Cleanup around cache
Sergey Sharybin [Tue, 15 Mar 2016 09:59:59 +0000 (14:59 +0500)]
movieclip: Cleanup around cache

Should be no functional changes.

3 years agoCleanup some warnings
Sergey Sharybin [Tue, 15 Mar 2016 09:16:16 +0000 (14:16 +0500)]
Cleanup some warnings

3 years agoImBuf: Use proper function to free FFmpeg frames
Sergey Sharybin [Tue, 15 Mar 2016 08:39:39 +0000 (13:39 +0500)]
ImBuf: Use proper function to free FFmpeg frames

3 years agoFix T47724: VSE crops video if horizontal resolution isn't divisible by 8
Sergey Sharybin [Tue, 15 Mar 2016 08:19:49 +0000 (13:19 +0500)]
Fix T47724: VSE crops video if horizontal resolution isn't divisible by 8

In fact, some areas in FFmpeg might require alignment up to 32, so now we
make temporary conversion in an aligned frame. We only do this if width is
not aligned to 32.

3 years agoFix T47724: VSE crops video if horizontal resolution isn't divisible by 8
Sergey Sharybin [Tue, 15 Mar 2016 07:32:27 +0000 (12:32 +0500)]
Fix T47724: VSE crops video if horizontal resolution isn't divisible by 8

Revert "Fix T47724: VSE crops video if horizontal resolution isn't divisible by 8"

This reverts commit 606f6b79eabca236b933dd76e5425162e26ba105.

3 years agoFix T47759: Mesh 'Select less', leaves isolated verts
Campbell Barton [Tue, 15 Mar 2016 03:17:54 +0000 (14:17 +1100)]
Fix T47759: Mesh 'Select less', leaves isolated verts

Select less in mesh edit-mode would leave selected vertices/edges
in edge/face mode which don't support selecting these elements.

3 years agoCMake: remove unused libpath's
Campbell Barton [Tue, 15 Mar 2016 02:15:26 +0000 (13:15 +1100)]
CMake: remove unused libpath's

Also add note that these should be deprecated in favor of absolute libs.

3 years agoPyAPI: Double performance of Mesh.from_pydata
Campbell Barton [Mon, 14 Mar 2016 23:41:36 +0000 (10:41 +1100)]
PyAPI: Double performance of Mesh.from_pydata

D1853 by @JacquesLucke

The speedup is mainly possible by using the `foreach_set` method for polygon data.

3 years agoFix T47750: Edited hair: disconnect (and connect!) operator do not support redo.
Bastien Montagne [Mon, 14 Mar 2016 20:04:30 +0000 (21:04 +0100)]
Fix T47750: Edited hair: disconnect (and connect!) operator do not support redo.

As suggested by Sergey, do not register those anymore, this way we keep undo step,
but user cannot 'redo' them (does not work, since cached DM in particle modifier data
is not yet re-created by depsgraph update after undo when operator is redone).

UI now has two buttons, one to (dic)connect current psys, the other to (dis)connect all.

Also fixed similar issue with Connect Hair op.

3 years agoBetter fix for T47787 - remove extra user due to 'user_one' as soon as we increase...
Bastien Montagne [Mon, 14 Mar 2016 14:05:52 +0000 (15:05 +0100)]
Better fix for T47787 - remove extra user due to 'user_one' as soon as we increase 'real' user count.

This has several benefits:
* User count remains coherent, regardless of the order in which you use 'user_one' & real refcounting users
  (i.e. if you add to group, and then link in scene, or the reverse, you now always get same final user count).
* Avoids the need to check for potential 'user_one' extra user in count in several places in code (e.g. when
  making IDs single users...).
* Users won't wonder why they cannot make 'single user' and ID even though its user count shows '2'!
* readfile.c now always uses code from BKE's library.c when modifying id->us. Which means we can consider
  (asside from assignment during initialization) that id->us is read-only outside of library.c context.

Note that this commit reverts previous one (rB6b1d77a8052b) - please **do not** backport this one in 2.77.

3 years agoFix T47787: When performing operation 'Make single user' -> 'obj&data', object could...
Bastien Montagne [Mon, 14 Mar 2016 13:44:11 +0000 (14:44 +0100)]
Fix T47787: When performing operation 'Make single user' -> 'obj&data', object could be removed from group.

Similar cause as in T47482, we used to have poor handling of 'user_one' cases of ID usage,
leading to inconsistent behavior depending on order of operations e.g.

Here, was object used by a group but not linked in any scene - once linked in scene,
their usercount would be 2, leading to 'making single copy', when it's actually not needed.
We now have better control here, so let's use it!

Note that other ID 'make single user' code will likely need similar fix (Images, etc.).

Safe to be backported to 2.77.

3 years agoFix T47784: BMesh.from_object broken keyword args
Campbell Barton [Mon, 14 Mar 2016 13:38:33 +0000 (00:38 +1100)]
Fix T47784: BMesh.from_object broken keyword args

3 years agoFix T47772: Randomize stroke has direction bias
Campbell Barton [Mon, 14 Mar 2016 10:27:56 +0000 (21:27 +1100)]
Fix T47772: Randomize stroke has direction bias

3 years agoFix T47785: Rendering Crash, Node Connector Crash, Changing Editors Crash
Sergey Sharybin [Mon, 14 Mar 2016 09:16:04 +0000 (14:16 +0500)]
Fix T47785: Rendering Crash, Node Connector Crash, Changing Editors Crash

Regressions after 2.76, to be backported to 2.77.

3 years agoSupport mdisps for Mesh.flip_normals()
Campbell Barton [Mon, 14 Mar 2016 04:32:48 +0000 (15:32 +1100)]
Support mdisps for Mesh.flip_normals()

3 years agoCleanup: move MDisps flipping to own function
Campbell Barton [Mon, 14 Mar 2016 04:17:29 +0000 (15:17 +1100)]
Cleanup: move MDisps flipping to own function

3 years agoFix T47788: Symmetrize flips multi-res data
Campbell Barton [Mon, 14 Mar 2016 03:15:56 +0000 (14:15 +1100)]
Fix T47788: Symmetrize flips multi-res data

Symmetrize was unusable with multi-res data,
add an option for the bmesh operator not to flip the multi-res depth.

3 years agoCleanup: style/spelling
Campbell Barton [Mon, 14 Mar 2016 02:21:13 +0000 (13:21 +1100)]
Cleanup: style/spelling

3 years agoFix T47773: Particle System with Boids Crash.
Bastien Montagne [Sun, 13 Mar 2016 17:21:30 +0000 (18:21 +0100)]
Fix T47773: Particle System with Boids Crash.

Problem was, during initialization of boids particles in `dynamics_step()`,
psys of target objects was not obtained with generic `psys_get_target_system()`
as later in code, which could lead to some uninitialized `psys->tree` usage...

Think it's safe enough for 2.77, though not a regression.

3 years agoFix bplayer (c)
Bastien Montagne [Sun, 13 Mar 2016 14:44:06 +0000 (15:44 +0100)]
Fix bplayer (c)

3 years agoDefault Keyframe Type: Some UI tweaks
Joshua Leung [Sun, 13 Mar 2016 12:04:39 +0000 (01:04 +1300)]
Default Keyframe Type: Some UI tweaks

* Don't show name of keyframe type in timeline header. It's getting a bit too crowded
  for that, so just show the keyframe icon. Hopefully that will be enough.

* Tweaked the tooltip and label to make it clearer what the setting is for

3 years agoFixed some type mismatch errors, missed earlier
Joshua Leung [Sun, 13 Mar 2016 12:01:43 +0000 (01:01 +1300)]
Fixed some type mismatch errors, missed earlier

(CMake MSVC's output makes it really difficult to spot errors when they occur!)

3 years agoFancy procedural icons for Keyframe Types
Joshua Leung [Sun, 13 Mar 2016 11:56:52 +0000 (00:56 +1300)]
Fancy procedural icons for Keyframe Types

The new "default keyframe type" dropdown on the timeline header
(and also the "Keyframe Type" operator/properties in other places)
now has procedurally generated icons which reflect what that keyframe
type will look like when rendered in the Dope Sheet.

This was achieved using the ancient "VICON" (vector icon) stuff
that's lurking around in the dark parts of UI code. From memory,
the only other things that use (or used to use) this stuff included
some of the triangle icons for some dropdown buttons, or something
like that.

Notes:
* Theme colour changes are reflected immediately by these icons.
  This is possible because they are all drawn procedurally
* These icons scale with the DPI setting. I manually guessed the size of
  these icons. They can be adjusted further if needed.
* I've documented the steps for adding voodoo icons like this on the wiki
  (http://wiki.blender.org/index.php/Dev:2.7/Source/Checklists/Vector_Icon)
* It's true that the rendering of these keyframes doesn't quite fit the rest
  of the icons in the UI. However, since we're just leveraging the standard
  keyframe drawing methods (to avoid discreptancies between the two), we'll
  leave it as such for now. Maybe later we can consider blending in a bit of
  the glossy keyframe icons in the Icon Sheet?

3 years agoMore compile fixes - Game Engine
Joshua Leung [Sun, 13 Mar 2016 10:34:42 +0000 (23:34 +1300)]
More compile fixes - Game Engine

3 years agoCompile fix for Linux
Joshua Leung [Sun, 13 Mar 2016 10:22:15 +0000 (23:22 +1300)]
Compile fix for Linux

3 years agoFix T47760: Toggling GPencil's "Selection Mask" via Python does not update UI
Philipp Oeser [Sun, 13 Mar 2016 06:13:50 +0000 (19:13 +1300)]
Fix T47760: Toggling GPencil's "Selection Mask" via Python does not update UI

Add rna updates to greasepencil sculpt properties

D1849 by @lichtwerk, reviewed by @aligorith

3 years agoKeyframing: Added ToolSetting for choosing default keyframe type
Joshua Leung [Sat, 12 Mar 2016 14:49:26 +0000 (03:49 +1300)]
Keyframing: Added ToolSetting for choosing default keyframe type

To make it easier for animators working in a multipass pose-to-pose workflow
when inserting breakdown keyframes and so forth, it is now possible to specify
the "type" of keyframe being created (i.e. the colour of the keyframe, when drawn
in the Dope Sheet).

Usage:
1) Choose the type of keyframe ("Keyframe", "Breakdown", "Extreme", etc.) from
   the new dropdown located between the AutoKeying and KeyingSet widgets on the
   timeline header.
2) Insert keyframes
3) Rejoyce that your newly created keyframes have now been coloured for you already
   in the DopeSheet.

Todo:
* Look into a way of using the actual keyframe colours (from the theme) for the icons
  of these types.

3 years agoCleanup: warning
Campbell Barton [Sun, 13 Mar 2016 04:15:38 +0000 (15:15 +1100)]
Cleanup: warning

3 years agoCMake: use CXX for C++ in var name
Campbell Barton [Sun, 13 Mar 2016 04:01:52 +0000 (15:01 +1100)]
CMake: use CXX for C++ in var name

Follow convention cmake uses.

3 years agoFull Inverse-Quadratic-Equation Lamp Falloff
Jack Andersen [Sun, 13 Mar 2016 01:00:12 +0000 (02:00 +0100)]
Full Inverse-Quadratic-Equation Lamp Falloff

This patch adds a new `falloff_type` ('Inverse Coefficients') for Lamps in
Blender-Internal and GLSL.

The current falloff modes use a formula like this inverse-square one:

`I = E × (D^2 / (D^2 + Q × r^2))`

While such a formula is simple for 3D-artists to use, it's algebraically
cumbersome to work with. Game-designers authoring their own shaders
could benefit much more by having direct control of falloff-coefficients:

`I = E × (1.0 / (coefC + coefL × r + coefQ × r^2))`

In this mode, the `distance` parameter is unused (except for 'Sphere'
mode); instead relying on the designer to mathematically-model the
falloff-behavior.

The UI has been patched like so:
{F153843}

Reviewers: brecht, psy-fi

Reviewed By: psy-fi

Subscribers: brita_, antidote, campbellbarton, psy-fi

Differential Revision: https://developer.blender.org/D1194

3 years agoIncrease node max width to 700px
Julian Eisel [Sat, 12 Mar 2016 18:10:36 +0000 (19:10 +0100)]
Increase node max width to 700px

Opened and collapsed nodes now have a max width of 700px. Animation nodes add-on needs this.

3 years agoFix related to T47750: Particle disconnect operator: 'all hair' disabled would not...
Bastien Montagne [Sat, 12 Mar 2016 17:55:49 +0000 (18:55 +0100)]
Fix related to T47750: Particle disconnect operator: 'all hair' disabled would not work correctly after first op execution.

This is side issue, main one remains and does not look easy to fix, see report for details.

3 years agoCycles: Some typo fixes
Sergey Sharybin [Sat, 12 Mar 2016 10:00:06 +0000 (15:00 +0500)]
Cycles: Some typo fixes

3 years agoCycles: Support parallel convergence mode for spherical stereo
Sergey Sharybin [Fri, 11 Mar 2016 16:58:47 +0000 (21:58 +0500)]
Cycles: Support parallel convergence mode for spherical stereo

3 years agoFix bad UI range of convergence distance which was above the hard limit
Sergey Sharybin [Fri, 11 Mar 2016 16:46:40 +0000 (21:46 +0500)]
Fix bad UI range of convergence distance which was above the hard limit

That was rather confusing to slide the value.

Perhaps makesrna can check cases like this?

3 years agoCycles: Optimize derivatives calculation by using pre-calculated dx/dy
Sergey Sharybin [Fri, 11 Mar 2016 16:41:16 +0000 (21:41 +0500)]
Cycles: Optimize derivatives calculation by using pre-calculated dx/dy

We've got pixel-wide world-space derivatives which we can use in the
perspective camera sampling. This allows to get rid of two calls to
transform_direction() function.

In theory we can save two transform_perspective() calls if we'll also
save pre-calculated camera-space dx/dy.

3 years agoCycles: Cleanup, spherical_stereo_direction will return normalized direction
Sergey Sharybin [Fri, 11 Mar 2016 16:22:19 +0000 (21:22 +0500)]
Cycles: Cleanup, spherical_stereo_direction will return normalized direction

Previously each call of this function was followed by a normaliztion, now it
is done in the function itself with an according note around the function.

3 years agoFix T47763: 2.77 RC2 (Fluid) Particle Baking slower compared to 2.67b.
Bastien Montagne [Sat, 12 Mar 2016 08:09:29 +0000 (09:09 +0100)]
Fix T47763: 2.77 RC2 (Fluid) Particle Baking slower compared to 2.67b.

Static schedule was responsible here...

Also, made a minor optimization in case adaptative (auto) subframes are enabled,
gives a few percent of speedup here.

3 years agoCycles: Do no limit viewport samples to USHRT_MAX when value is at 0.
Thomas Dinges [Fri, 11 Mar 2016 20:33:56 +0000 (21:33 +0100)]
Cycles: Do no limit viewport samples to USHRT_MAX when value is at 0.

We don't limit manually setting higher values, this was probably overlooked here.

Found by @Blendify in IRC.

3 years agoFix crash adding EditNormals modifier to NURBS object (or other types but mesh).
Bastien Montagne [Fri, 11 Mar 2016 14:30:04 +0000 (15:30 +0100)]
Fix crash adding EditNormals modifier to NURBS object (or other types but mesh).

Kinda stupid, but that eModifierTypeFlag_AcceptsCVs could really use a comment alongside
its definition!

Safe to be backported to 2.77.

3 years agoMinor improvement to last commit
Campbell Barton [Fri, 11 Mar 2016 14:12:51 +0000 (01:12 +1100)]
Minor improvement to last commit

Sign is known in this case, no need  to check for either direction.

3 years agoMath Lib: less complex convex quad check
Campbell Barton [Fri, 11 Mar 2016 12:41:50 +0000 (23:41 +1100)]
Math Lib: less complex convex quad check

3 years agoRevert "Use render path as initial location when saving renders"
Campbell Barton [Fri, 11 Mar 2016 11:13:28 +0000 (22:13 +1100)]
Revert "Use render path as initial location when saving renders"

This reverts commit cd6442f7d4b56cb40102d86404fbaeae30dd2d32.

Broke workflow for incrementally saving versions of a render.

3 years agoCycles: One more optimization fix, derivatives used to be calculated without aperture
Sergey Sharybin [Fri, 11 Mar 2016 10:23:31 +0000 (15:23 +0500)]
Cycles: One more optimization fix, derivatives used to be calculated without aperture

At this point it's totally unclear why we're ignoring aperture and and rolling shutter
now for derivatives calculation but do not ignore direction change caused by stereo.

3 years agoCMake: Warn when buildinfo is disabled due to missing Git
Sergey Sharybin [Fri, 11 Mar 2016 09:49:23 +0000 (14:49 +0500)]
CMake: Warn when buildinfo is disabled due to missing Git

3 years agoCMake: Avoid call of find_package(Git) for every compile with buildinfo enabled
Sergey Sharybin [Fri, 11 Mar 2016 08:05:44 +0000 (13:05 +0500)]
CMake: Avoid call of find_package(Git) for every compile with buildinfo enabled

This is a bit tricky, find_package(Git) was only used to check if git is installed
and actual git command was assumed to be in the PATH (while ideally it should have
been GIT_COMMAND variable).

This commit makes re-compile output cleaner, especially when using Ninja.

Adding proper GIT_COMMAND to buildinfo.cmake is also possible via argument.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D1847

3 years agoCycles: Fix bug calculating dP for perspective camera
Sergey Sharybin [Fri, 11 Mar 2016 09:43:41 +0000 (14:43 +0500)]
Cycles: Fix bug calculating dP for perspective camera

Was introduced by recent optimization. Not really sure derivatives are
intended to work like this, but better to stick to what Dalai had
originally for now.

3 years agoCycles: Cleanup, redundant normalization
Sergey Sharybin [Fri, 11 Mar 2016 09:12:10 +0000 (14:12 +0500)]
Cycles: Cleanup, redundant normalization

3 years agoFix T47753: World equirectangular regression
Campbell Barton [Fri, 11 Mar 2016 09:30:26 +0000 (20:30 +1100)]
Fix T47753: World equirectangular regression

D1729 fixed 'View' projection but broke 'Equirectangular'.

This commit also changes equirectangular projection to match Cycles and the viewport.

3 years agoFix compilation of cycles standalone and network device
Martijn Berger [Fri, 11 Mar 2016 09:00:47 +0000 (10:00 +0100)]
Fix compilation of cycles standalone and network device

3 years agoCycles: Fix border render after spherical stereo commit
Sergey Sharybin [Fri, 11 Mar 2016 07:57:02 +0000 (12:57 +0500)]
Cycles: Fix border render after spherical stereo commit

Buffer params needs to know camera's border, otherwise it'll create full buffer.

There might be some issues with stereo camera still, but in worst case it'll
only update camera twice as far as i can tell. Not ideal, but better than no
border render at all.

3 years agoInclude requests' cacert.pem file
Sybren A. Stüvel [Thu, 10 Mar 2016 15:58:09 +0000 (16:58 +0100)]
Include requests' cacert.pem file

This allows us to verify certificates of HTTPS connections, which is
mandatory for logins like on Blender ID.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D1845

3 years agoBGE: Fix memory leak in VBO code
Mitchell Stokes [Fri, 11 Mar 2016 03:05:24 +0000 (19:05 -0800)]
BGE: Fix memory leak in VBO code

3 years agoBGE: Fix animations when using VBOs
Mitchell Stokes [Thu, 10 Mar 2016 04:44:14 +0000 (20:44 -0800)]
BGE: Fix animations when using VBOs

3 years agoFix T47749: Crash subdividing wire edge w/ mdisps
Campbell Barton [Thu, 10 Mar 2016 23:28:44 +0000 (10:28 +1100)]
Fix T47749: Crash subdividing wire edge w/ mdisps

3 years agoCycles: Optimize spherical stereo position when no spherical stereo is used
Sergey Sharybin [Thu, 10 Mar 2016 17:03:03 +0000 (22:03 +0500)]
Cycles: Optimize spherical stereo position when no spherical stereo is used

3 years agoCycles: Simplify perspective camera derivatives calculation
Sergey Sharybin [Thu, 10 Mar 2016 16:47:44 +0000 (21:47 +0500)]
Cycles: Simplify perspective camera derivatives calculation

Probably some further simplification is possible, will look into this later.
Alternatively will get rid of KernelCamera.{dx, dy}.

3 years agoText Editor: Auto indent for backspace/delete
Campbell Barton [Thu, 10 Mar 2016 13:04:13 +0000 (00:04 +1100)]
Text Editor: Auto indent for backspace/delete

Editing with spaces + auto-indent didn't delete indentation as expected.

3 years agoMulti-View: Cycles - Spherical Stereo support (VR Panoramas)
Dalai Felinto [Thu, 10 Mar 2016 12:28:29 +0000 (09:28 -0300)]
Multi-View: Cycles - Spherical Stereo support (VR Panoramas)

This is a new option for panorama cameras to render
stereo that can be used in virtual reality devices

The option is available under the camera panel when Multi-View is enabled (Views option in the Render Layers panel)

Known limitations:
------------------
* Parallel convergence is not supported (you need to set a convergence distance really high to simulate this effect).

* Pivot was not supposed to affect the render but it does, this has to be looked at, but for now set it to CENTER

* Derivatives in perspective camera need to be pre-computed or we shuld get rid of kcam->dx/dy (Sergey words, I don't fully grasp the implication shere)

* This works in perspective mode and in panorama mode. However, for fully benefit from this effect in perspective mode you need to render a cube map. (there is an addon for this, developed separately, perhaps we could include it in master).

* We have no support for "neck distance" at the moment. This is supposed to help with objects at short distances.

* We have no support to rotate the "Up Axis" of the stereo plane. Meaning, we hardcode 0,0,1 as UP, and create the stereo pair related to that. (although we could take the camera local UP when rendering panoramas, this wouldn't work for perspective cameras.

* We have no support for interocular distance attenuation based on the proximity of the poles  (which helps to reduce the pole rotation effect/artifact).

THIS NEEDS DOCS - both in 2.78 release log and the Blender manual.
Meanwhile you can read about it here: http://code.blender.org/2015/03/1451

This patch specifically dates from March 2015, as you can see in the code.blender.org post. Many thanks to all the reviewers, testers and minor sponsors who helped me maintain spherical-stereo for 1 year.

All that said, have fun with this. This feature was what got me started with Multi-View development (at the time what I was looking for was Fulldome stereo support, but the implementation is the same). In order to make this into Blender I had to make it aiming at a less-specic user-case  Thus Multi-View started. (this was December 2012, during Siggraph Asia and a chat I had with Paul Bourke during the conference). I don't have the original patch anymore, but you can find a re-based version of it from March 2013, right before I start with the Multi-View project https://developer.blender.org/P332

Reviewers: sergey, dingto

Subscribers: #cycles

Differential Revision: https://developer.blender.org/D1223

3 years agoRemove OpenGL render alpha world-bg exception
Campbell Barton [Thu, 10 Mar 2016 11:47:18 +0000 (22:47 +1100)]
Remove OpenGL render alpha world-bg exception

Just follow setting and don't take world-background into account.

3 years agoReport error when render fails
Campbell Barton [Thu, 10 Mar 2016 08:34:53 +0000 (19:34 +1100)]
Report error when render fails

Was printing to console, but UI didn't show error message.

3 years agoFix T47724: VSE crops video if horizontal resolution isn't divisible by 8
Sergey Sharybin [Thu, 10 Mar 2016 08:17:27 +0000 (13:17 +0500)]
Fix T47724: VSE crops video if horizontal resolution isn't divisible by 8

This is a bit annoying, but FFmpeg can't deal with unaligned arrays in some
cases. There seems to be an easy workaround with using SWS_ACCURATE_RND flag
which should be harmless since we don't really scaling frames, but only
using sws_scale to change color space.

Additionally, this is what VLC is also using.

3 years agoCMake: remove OSX version lookup table
Campbell Barton [Thu, 10 Mar 2016 06:56:07 +0000 (17:56 +1100)]
CMake: remove OSX version lookup table

This assumed the OSX SDK version matched the OSX version, which isn't always true.

Also problematic for maintenance and would make building older Blender versions on OSX fail.

Passing in pre-defined OSX_SYSTEM is also supported,
if you have multiple and want to select one.

3 years agoSkip scopes update for render result during rendering
Sergey Sharybin [Thu, 10 Mar 2016 06:29:45 +0000 (11:29 +0500)]
Skip scopes update for render result during rendering

3 years agoInstall-Deps: Build Boost with iostreams.
Jeffrey Hoover [Wed, 9 Mar 2016 23:02:20 +0000 (00:02 +0100)]
Install-Deps: Build Boost with iostreams.

This patch enables libboost_iostreams and bumps the magic number to match.

Reviewers: dingto

Reviewed By: dingto

Subscribers: dingto

Projects: #bf_blender, #platform:_linux

Differential Revision: https://developer.blender.org/D1840

3 years agoFix T47729: Linking node sockets using shortcut fails
Julian Eisel [Wed, 9 Mar 2016 10:23:56 +0000 (11:23 +0100)]
Fix T47729: Linking node sockets using shortcut fails

Could also have swapped nodes to assign instead of swapping after assigning, but this way it's easier to see whats going on.

3 years agoCleanup: style, spelling
Campbell Barton [Wed, 9 Mar 2016 08:31:44 +0000 (19:31 +1100)]
Cleanup: style, spelling

3 years agoCorrect UI active state w/ bevel-factor
Campbell Barton [Wed, 9 Mar 2016 08:30:12 +0000 (19:30 +1100)]
Correct UI active state w/ bevel-factor

D1838 by @JacquesLucke

3 years agoCleanup: remove button flag for forced tool-tips
Campbell Barton [Wed, 9 Mar 2016 08:13:20 +0000 (19:13 +1100)]
Cleanup: remove button flag for forced tool-tips

3 years agoFix/workaround T47685: Drag keymap slider fails
Campbell Barton [Wed, 9 Mar 2016 06:33:38 +0000 (17:33 +1100)]
Fix/workaround T47685: Drag keymap slider fails

This is a special case where the UI update function re-creases the keymap we're currently editing.
Making it so dragging values fails.

3 years agoRNA: remove redundant update callback
Campbell Barton [Wed, 9 Mar 2016 05:10:33 +0000 (16:10 +1100)]
RNA: remove redundant update callback

No need to update keymap toggling expand.

3 years agoFix minor glitch w/ edit-bone center
Campbell Barton [Wed, 9 Mar 2016 05:05:27 +0000 (16:05 +1100)]
Fix minor glitch w/ edit-bone center

Don't include the same point multiple times when calculating center with connected bones.

3 years agoFix T47723: Custom shape not copied w/ edit-bone
Campbell Barton [Wed, 9 Mar 2016 01:22:09 +0000 (12:22 +1100)]
Fix T47723: Custom shape not copied w/ edit-bone

3 years agoAdd missing custom-scale when copying bones
Campbell Barton [Wed, 9 Mar 2016 00:13:40 +0000 (11:13 +1100)]
Add missing custom-scale when copying bones

3 years agoCorrect recent RNA array slicing commit
Campbell Barton [Tue, 8 Mar 2016 10:19:35 +0000 (21:19 +1100)]
Correct recent RNA array slicing commit

Broke slice assignment when used on an item from a multi-dimensional array,
eg: `array[i][:] = data`

3 years agoFix T47701: Image not fully updated after setting .pixels
Sergey Sharybin [Tue, 8 Mar 2016 09:56:22 +0000 (14:56 +0500)]
Fix T47701: Image not fully updated after setting .pixels

The set callback was missing couple of things:

- Mipmaps should be updated after pixels changes
- GPU texture is invalid after setting pixels

3 years agoPyAPI: Support multi-dimensional RNA slice assignment
Campbell Barton [Tue, 8 Mar 2016 08:13:37 +0000 (19:13 +1100)]
PyAPI: Support multi-dimensional RNA slice assignment

This was already supported for getting slices.

3 years agoFix Py API array assignment not clamping values
Campbell Barton [Tue, 8 Mar 2016 04:33:28 +0000 (15:33 +1100)]
Fix Py API array assignment not clamping values

3 years agoFix crash loading some library blend files
Campbell Barton [Mon, 7 Mar 2016 19:49:37 +0000 (06:49 +1100)]
Fix crash loading some library blend files

Blend files with screen but no scene would crash.

3 years agoFix missing weight invert w/ shrink-wrap modifier
Campbell Barton [Mon, 7 Mar 2016 19:18:46 +0000 (06:18 +1100)]
Fix missing weight invert w/ shrink-wrap modifier

3 years agoCorrect docstrings
Campbell Barton [Mon, 7 Mar 2016 10:31:52 +0000 (21:31 +1100)]
Correct docstrings

3 years agoFix T47681: Bump node doesn't work with SSS shader when using OSL
Sergey Sharybin [Mon, 7 Mar 2016 10:31:57 +0000 (15:31 +0500)]
Fix T47681: Bump node doesn't work with SSS shader when using OSL

3 years agoFix T47706: 'CTRL ALT Left Mouse' clicking on the dope sheet summary line crashes...
Julian Eisel [Mon, 7 Mar 2016 10:21:01 +0000 (11:21 +0100)]
Fix T47706: 'CTRL ALT Left Mouse' clicking on the dope sheet summary line crashes Blender

Simple NULL-check seems fine here, working as it should now. Most likely caused by rBc4dc14b079d81.

3 years agoFix T47691: Missing redraw w/ pop-up dialogs
Campbell Barton [Mon, 7 Mar 2016 05:38:22 +0000 (16:38 +1100)]
Fix T47691: Missing redraw w/ pop-up dialogs

Search buttons would overwrite existing callbacks, even when they weren't needed.
Causing missing updates for search buttons in pop-ups.

3 years agoFix T47688: Regression in gl_load
Campbell Barton [Mon, 7 Mar 2016 03:31:45 +0000 (14:31 +1100)]
Fix T47688: Regression in gl_load

Error caused by 771f73b6

3 years agoSimple Deform modifier: invert vgroup option
Campbell Barton [Mon, 7 Mar 2016 00:28:21 +0000 (11:28 +1100)]
Simple Deform modifier: invert vgroup option

D1839 from @Orgold

3 years agoShrink Wrap modifier: invert vgroup option
Campbell Barton [Mon, 7 Mar 2016 00:24:03 +0000 (11:24 +1100)]
Shrink Wrap modifier: invert vgroup option

D1839 from @Orgold

3 years agoBMesh: avoid assert dissolving degenerate faces
Campbell Barton [Sun, 6 Mar 2016 06:24:11 +0000 (17:24 +1100)]
BMesh: avoid assert dissolving degenerate faces

For dissolving 2-sided faces, theres no need to check they are valid before removal.

3 years agoFix T47670: cycles GLSL incorrect normal map node.
Brecht Van Lommel [Sun, 6 Mar 2016 05:54:40 +0000 (06:54 +0100)]
Fix T47670: cycles GLSL incorrect normal map node.

3 years agoPython docs: minor cleanup and adding missing parenthesis to a code sample
Ines Almeida [Sat, 5 Mar 2016 19:46:01 +0000 (19:46 +0000)]
Python docs: minor cleanup and adding missing parenthesis to a code sample

3 years agoFix T47670: cycles GLSL incorrect layer weight / fresnel.
Brecht Van Lommel [Sat, 5 Mar 2016 13:29:32 +0000 (14:29 +0100)]
Fix T47670: cycles GLSL incorrect layer weight / fresnel.

World space and view space normals were mixed up, we should only convert from
world to view space if a custom normal is connected, otherwise it is already in
view space.

3 years agoFix for missing update changing VFont.filepath
Campbell Barton [Sat, 5 Mar 2016 06:40:33 +0000 (17:40 +1100)]
Fix for missing update changing VFont.filepath

Changing the filepath wouldn't reload the font even after calling scene.update().

3 years agoCleanup: quiet -Wcomma, cast to void where needed
Campbell Barton [Fri, 4 Mar 2016 22:16:12 +0000 (09:16 +1100)]
Cleanup: quiet -Wcomma, cast to void where needed

3 years agoCleanup: unnecessary comma use
Campbell Barton [Fri, 4 Mar 2016 22:13:16 +0000 (09:13 +1100)]
Cleanup: unnecessary comma use

Also use SWAP macro

3 years agoCleanup: unnecessary comma use
Campbell Barton [Fri, 4 Mar 2016 22:09:05 +0000 (09:09 +1100)]
Cleanup: unnecessary comma use

3 years agoAlternate fix for virtual-pixel update not working
Campbell Barton [Fri, 4 Mar 2016 19:37:56 +0000 (06:37 +1100)]
Alternate fix for virtual-pixel update not working

On changing, clear drawable window to force update.

3 years agoRevert "Fix changing virtual pixelsize having no affect if only main window is open"
Campbell Barton [Fri, 4 Mar 2016 19:30:51 +0000 (06:30 +1100)]
Revert "Fix changing virtual pixelsize having no affect if only main window is open"

This reverts commit fe7bab13439fe6f0181f6661fbf7bb7ae18f5310.

Setting correct context is important,
but this is setting DPI and widget unit on *every* mouse move.

3 years agoFix changing virtual pixelsize having no affect if only main window is open
Julian Eisel [Fri, 4 Mar 2016 16:58:35 +0000 (17:58 +0100)]
Fix changing virtual pixelsize having no affect if only main window is open

Changing virtual pixelsize only had an affect when a second window was open. (Was also possible to trigger update by opening another window.)

Steps to reproduce:
* Change any editor into user preferences *in main window*
* Change virtual pixel size -> nothing happens