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

3 years agoFix typo in 'Vietnamese' language label (must have sneaked in while adding Basque...
Bastien Montagne [Fri, 4 Mar 2016 16:46:39 +0000 (17:46 +0100)]
Fix typo in 'Vietnamese' language label (must have sneaked in while adding Basque one, grr).

3 years agoFix menu aliged to right side of screen in UserPref window
Julian Eisel [Fri, 4 Mar 2016 15:44:38 +0000 (16:44 +0100)]
Fix menu aliged to right side of screen in UserPref window

Only applied in a really few cases actually.

To reproduce:
* Open User Preferences *in own window*
* Search for node wrangler add-on (it's one of the few cases where this happens)
* Enable and open details
* Click on one of the menues in the add-on preferences

Actually this was reproducable in any window, user preference area just had to take up most/all of the width.

Note: I'm not totally sure if just disabling these lines is correct, but I didn't find any issues or any information why this was needed. So it seems to be redundant.

3 years agoFix T47683: broken BBox logic when drawing duplis.
Bastien Montagne [Fri, 4 Mar 2016 11:32:35 +0000 (12:32 +0100)]
Fix T47683: broken BBox logic when drawing duplis.

Once a dupli had a valid bbox, that bbox would be used for all following objects
without bbox, instead of skipping clipping check.

Issue unveiled by rB3fa0a1a5bc0ff2, but not related at all (in fact, bug was present before that commit).

3 years agoFix uninitialized memory use lattice-boundbox
Campbell Barton [Fri, 4 Mar 2016 10:50:54 +0000 (21:50 +1100)]
Fix uninitialized memory use lattice-boundbox

Many other places weren't clearing boundbox dirty flag after calculation.

3 years agoCleanup: suspicious use of commas
Campbell Barton [Fri, 4 Mar 2016 05:38:41 +0000 (16:38 +1100)]
Cleanup: suspicious use of commas

3 years agoCurve/line width change broke outline drawing
Campbell Barton [Fri, 4 Mar 2016 03:43:39 +0000 (14:43 +1100)]
Curve/line width change broke outline drawing

Partially revert e29a5ba6

3 years agoDocs: include mathutils.interpolate
Campbell Barton [Thu, 3 Mar 2016 21:40:22 +0000 (08:40 +1100)]
Docs: include mathutils.interpolate

3 years agoDocs: example for writing blend file libraries
Campbell Barton [Thu, 3 Mar 2016 20:50:17 +0000 (07:50 +1100)]
Docs: example for writing blend file libraries

3 years agoCorrect image format args (remove 'MOVIE')
Campbell Barton [Thu, 3 Mar 2016 19:32:52 +0000 (06:32 +1100)]
Correct image format args (remove 'MOVIE')

3 years agoDocs: minor comment correction
Campbell Barton [Thu, 3 Mar 2016 19:35:17 +0000 (06:35 +1100)]
Docs: minor comment correction

3 years agoDocs: comment on poly flipping w/ solidify
Campbell Barton [Thu, 3 Mar 2016 19:17:32 +0000 (06:17 +1100)]
Docs: comment on poly flipping w/ solidify

3 years agoDocs: add comment on reloading modules
Campbell Barton [Thu, 3 Mar 2016 19:14:02 +0000 (06:14 +1100)]
Docs: add comment on reloading modules

3 years agoUse IOError exception failing to write blend file
Campbell Barton [Thu, 3 Mar 2016 19:10:25 +0000 (06:10 +1100)]
Use IOError exception failing to write blend file

3 years agoFix T47676, take two: also do some 'regular file' versionning (allows to handle users...
Bastien Montagne [Thu, 3 Mar 2016 15:06:49 +0000 (16:06 +0100)]
Fix T47676, take two: also do some 'regular file' versionning (allows to handle users own default startup files, among others...).

3 years agoFix T47676: Broken default values for particle brush strength.
Bastien Montagne [Thu, 3 Mar 2016 14:48:50 +0000 (15:48 +0100)]
Fix T47676: Broken default values for particle brush strength.

Current startup .blend has old (percent?) values for particle brush strength.

Since rBe4e21480d6331903c90ab073746484498441e1ac, UI controls do not clamp automatically values anymore,
which means when you first enable comb (or any other brush) you get a 50 strength, waaaayyyy to powerful.

This commit fixes this in `BLO_update_defaults_startup_blend`, note that it does not fix custom users'
startup files, nothing to do here...

3 years agoFix T47644: crash (use-after-free) regression from rB7a74738914a66e.
Bastien Montagne [Thu, 3 Mar 2016 13:44:05 +0000 (14:44 +0100)]
Fix T47644: crash (use-after-free) regression from rB7a74738914a66e.

Handling `me` data here is not good idea anyway, we override it completly with data
from `tmp` (crash came from freeing already existing bb from me, while pointer still existed in tmp).

(rediscovered it while working on T47676...).

To be backported to 2.77.

3 years agoFix T47674: "Change Data/Files" setting incorrect filter
Julian Eisel [Thu, 3 Mar 2016 11:52:53 +0000 (12:52 +0100)]
Fix T47674: "Change Data/Files" setting incorrect filter

Image filter was not set, but only if invoked from toolbar (image strip needs to be selected to see the button).
Caused by rB7fa72b8970, Wasn't aware there's another button for this for image strips.

3 years agoFix player (c)
Sergey Sharybin [Thu, 3 Mar 2016 11:11:05 +0000 (16:11 +0500)]
Fix player (c)

3 years agoMake texture node threaded
Sergey Sharybin [Thu, 3 Mar 2016 10:59:20 +0000 (15:59 +0500)]
Make texture node threaded

Quite trivial idea -- just pass tread ID to the texture sampling function.

Implemented as a TLS to avoid passing huge amount of extra contexts around.
Should be working on all platforms, but compilation test is required.

Reviewers: juicyfruit, campbellbarton

Reviewed By: campbellbarton

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

3 years agoAdd utility macro to work with thread local storage
Sergey Sharybin [Thu, 3 Mar 2016 10:53:42 +0000 (15:53 +0500)]
Add utility macro to work with thread local storage

3 years agoPyAPI: API for selectively writing data-blocks
Campbell Barton [Thu, 3 Mar 2016 02:11:07 +0000 (13:11 +1100)]
PyAPI: API for selectively writing data-blocks

Useful for writing asset-libraries to a file, eg.

`bpy.data.libraries.write(filepath, datablocks, relative_remap=False, fake_user=False)`

3 years agoRefactor BKE_copybuffer for general partial saving
Campbell Barton [Thu, 3 Mar 2016 10:11:22 +0000 (21:11 +1100)]
Refactor BKE_copybuffer for general partial saving

Move to re-usable BKE_blendfile_write_partial API

3 years agoAvoid some obvious crashes when running out memory allocating render result
Sergey Sharybin [Thu, 3 Mar 2016 08:21:04 +0000 (13:21 +0500)]
Avoid some obvious crashes when running out memory allocating render result

3 years agoRender Save Buffers: Use proper memory buffer size for a display buffer
Sergey Sharybin [Thu, 3 Mar 2016 08:13:42 +0000 (13:13 +0500)]
Render Save Buffers: Use proper memory buffer size for a display buffer

3 years agoCMake: Remove redundant print of Git Found message
Sergey Sharybin [Thu, 3 Mar 2016 08:04:31 +0000 (13:04 +0500)]
CMake: Remove redundant print of Git Found message

find_package(Git) will already print this.

3 years agoUI: move checkbox for missing add-ons to LHS
Campbell Barton [Thu, 3 Mar 2016 07:50:15 +0000 (18:50 +1100)]
UI: move checkbox for missing add-ons to LHS

3 years agoExperimental option to build Blender with C11 support
Sergey Sharybin [Fri, 29 Jan 2016 16:43:40 +0000 (17:43 +0100)]
Experimental option to build Blender with C11 support

It'll be nice to eventually go C11/C++11 by default, but for until
then it's kinda handy to be able to build locally with C11 support,

Reviewers: mont29, campbellbarton

Reviewed By: mont29, campbellbarton

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

3 years agoCleanup: take Main argument for copy
Campbell Barton [Thu, 3 Mar 2016 02:35:21 +0000 (13:35 +1100)]
Cleanup: take Main argument for copy

3 years agoFix RNA property clamp assigning in Python
Campbell Barton [Thu, 3 Mar 2016 01:33:43 +0000 (12:33 +1100)]
Fix RNA property clamp assigning in Python

On first assignment the value was clamped, but successive assignments weren't.

3 years agoCleanup: comments for creator_args & line length
Campbell Barton [Thu, 3 Mar 2016 01:35:33 +0000 (12:35 +1100)]
Cleanup: comments for creator_args & line length

3 years agoArmature edit-mode: Add clear-roll operator, Alt-R
Campbell Barton [Thu, 3 Mar 2016 00:45:43 +0000 (11:45 +1100)]
Armature edit-mode: Add clear-roll operator, Alt-R

3 years agoIncrease max-frame to 500,000
Campbell Barton [Wed, 2 Mar 2016 21:43:22 +0000 (08:43 +1100)]
Increase max-frame to 500,000

Note that we could increase to 524286 without loosing subframe precision,
however this is a round number allowing for longer video export / animations.

See T46859 for details.

3 years agoCleanup: replace dict /w list for module reload
Campbell Barton [Wed, 2 Mar 2016 19:31:11 +0000 (06:31 +1100)]
Cleanup: replace dict /w list for module reload

Never used keys and better reload in same order loaded.

3 years agoCorrection to own previous rB9c0de0084bfe.
Bastien Montagne [Wed, 2 Mar 2016 17:09:32 +0000 (18:09 +0100)]
Correction to own previous rB9c0de0084bfe.

'1mm+1m' would fail with original fix, now consuming all alpha chars before checking unit again...

3 years agoFix bplayer (c)
Bastien Montagne [Wed, 2 Mar 2016 17:04:26 +0000 (18:04 +0100)]
Fix bplayer (c)

Seriously...

3 years agoFix T47661: cm (centimeter) unit breaks m (meter) unit in Metric.
Bastien Montagne [Wed, 2 Mar 2016 16:57:03 +0000 (17:57 +0100)]
Fix T47661: cm (centimeter) unit breaks m (meter) unit in Metric.

`m` unit when used after `cm`/`mm`/etc. ones would get ignored, and the alt version of miles
would be used instead.

The root of the issue is that, in `unit_find_str`, once we get a 'hit' for a unit, we check
it's actual unit (since 'm' would also hit on 'cm', 'mm', etc.). In case that hit is not a
valid unit one, we would just return NULL, breaking the cycle of checks over that unit, and
hence missing all later usages of it.

So now, in case we have an 'invalid unit hit', we immediately retry to find it within remaining string.

3 years agoFix crash accessing nodes search menu
Sergey Sharybin [Wed, 2 Mar 2016 12:57:16 +0000 (17:57 +0500)]
Fix crash accessing nodes search menu

Was caused by d49985c.

3 years agoAvoid node tree update tag when changed nodes which are not affecting result
Sergey Sharybin [Thu, 4 Feb 2016 20:39:42 +0000 (01:39 +0500)]
Avoid node tree update tag when changed nodes which are not affecting result

This was we don't have re-compo or viewport re-rendering happening when changing
nodes which are not connected to the output at all (for example when adding new
nodes or changing settings for unconnected nodes).

Only basic operations are covered for now. checks could be added to more tools
when needed.

Currently it's not fully optimal implementation, but seems to work fast enough.
Don't see reliable alternative to that -- keeping tag in the node wouldn't work
because of the node groups (which are probably already broken, but should be
easy to solve with current approach). So guess it's more matter of optimizing
path search from a node to output.

Before processing forward let's check whether it's indeed something we want
and whether the approach is indeed not fully bad.

Reviewers: campbellbarton, mont29

Subscribers: sebastian_k

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

3 years agoFix T47564: Unwrapping the same mesh results in different UVs.
Bastien Montagne [Wed, 2 Mar 2016 11:21:53 +0000 (12:21 +0100)]
Fix T47564: Unwrapping the same mesh results in different UVs.

Pointers of faces were passed as face keys during parametrizer's face creation. Since those
addresses were different for every run, the layout of the faces ended up being different
in the internal hash, leading to inconsistent order of their evaluation during LSCM solving,
and slightly different UV maps.

Solved by simply using faces' indices as key instead, which ensures we always get same results
with exact same input data now.

Many thanks to Roman Nagornov (RomanN) for raising the issue, investigating it and finding
the solution! And thanks to Brecht for quick review too.

3 years agoFix bplayer (c)
Bastien Montagne [Wed, 2 Mar 2016 10:06:23 +0000 (11:06 +0100)]
Fix bplayer (c)

3 years agoCycles: Fix wrong default value for volume samples
Sergey Sharybin [Wed, 2 Mar 2016 09:53:36 +0000 (14:53 +0500)]
Cycles: Fix wrong default value for volume samples

3 years agoFix T47610: Texture node in compositing nodes does not update
Sergey Sharybin [Wed, 2 Mar 2016 07:45:46 +0000 (12:45 +0500)]
Fix T47610: Texture node in compositing nodes does not update

The issue was caused by some code accessing R from a functions which
are marked as safe for use from outside of render pipeline.

Now those functions are safe(er) for use.

3 years agoCleanup: style, and --help edits
Campbell Barton [Wed, 2 Mar 2016 06:01:38 +0000 (17:01 +1100)]
Cleanup: style, and --help edits

3 years agoUI: Show categories in operator search popup
Campbell Barton [Wed, 2 Mar 2016 03:05:49 +0000 (14:05 +1100)]
UI: Show categories in operator search popup

Gives better context especially when operators have generic names.

3 years agoUI: Add search-create callback
Campbell Barton [Wed, 2 Mar 2016 02:57:16 +0000 (13:57 +1100)]
UI: Add search-create callback

Needed to support alternate search UI's, no functional changes.

3 years agoFix assert in UI code
Campbell Barton [Wed, 2 Mar 2016 01:53:55 +0000 (12:53 +1100)]
Fix assert in UI code

Dont attempt to clip empty string

3 years agoFix T47642: Crash baking w/ cycles
Campbell Barton [Wed, 2 Mar 2016 01:32:42 +0000 (12:32 +1100)]
Fix T47642: Crash baking w/ cycles