blender.git
2 years agoFix T56197: Cycles OpenCL build error after recent changes.
Brecht Van Lommel [Wed, 1 Aug 2018 17:31:27 +0000 (19:31 +0200)]
Fix T56197: Cycles OpenCL build error after recent changes.

2 years agoFix T56195: Typo in BLI_array_utils.h.
Bastien Montagne [Wed, 1 Aug 2018 14:12:36 +0000 (16:12 +0200)]
Fix T56195: Typo in BLI_array_utils.h.

2 years agoCleanup: remove unused array member
Campbell Barton [Wed, 1 Aug 2018 06:32:22 +0000 (16:32 +1000)]
Cleanup: remove unused array member

2 years agoCleanup: declare vars or make static
Campbell Barton [Tue, 31 Jul 2018 22:57:31 +0000 (08:57 +1000)]
Cleanup: declare vars or make static

2 years agoDNA: remove View3D.flag3
Campbell Barton [Tue, 31 Jul 2018 22:08:59 +0000 (08:08 +1000)]
DNA: remove View3D.flag3

Having 'flag, flag2, flag3' is getting out of hand especially
when we support increasing the size of types.

Make flag2 into an int.

Note, this looses the 'show world' option,
but it's not such an important setting.

2 years agoRevert "Gitignore: Ignore diffs in all subdirs"
Aaron Carlisle [Tue, 31 Jul 2018 17:03:48 +0000 (13:03 -0400)]
Revert "Gitignore: Ignore diffs in all subdirs"

This is an issue for some file in the extern dir

This reverts commit d940a081a9f1f4106a5d2d155682695b0a6b0cb6.

2 years agoGitignore: Ignore diffs in all subdirs
Aaron Carlisle [Tue, 26 Jun 2018 17:53:54 +0000 (13:53 -0400)]
Gitignore: Ignore diffs in all subdirs

2 years agoFix cmake external library build for blosc/freetype on some systems.
Brecht Van Lommel [Tue, 31 Jul 2018 12:22:32 +0000 (14:22 +0200)]
Fix cmake external library build for blosc/freetype on some systems.

2 years agoFix building w/ FreeBSD
Campbell Barton [Tue, 31 Jul 2018 10:52:36 +0000 (20:52 +1000)]
Fix building w/ FreeBSD

fileno could be a macro which can't take a void pointer.

2 years agoFix Shape Key retime starting at frame 10
Campbell Barton [Tue, 31 Jul 2018 08:42:22 +0000 (18:42 +1000)]
Fix Shape Key retime starting at frame 10

D3571 by @alm

2 years agoBLF: replace global aa pref w/ monochrome flag
Campbell Barton [Tue, 31 Jul 2018 06:57:05 +0000 (16:57 +1000)]
BLF: replace global aa pref w/ monochrome flag

Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.

2 years agoUI: use text hinting (now user preference)
Campbell Barton [Tue, 31 Jul 2018 06:05:31 +0000 (16:05 +1000)]
UI: use text hinting (now user preference)

D3201 by @ambient w/ edits not to impact fonts used for rendering
(only change display for UI text).

2 years agoUI: add check for any kind of popup
Campbell Barton [Tue, 31 Jul 2018 00:37:46 +0000 (10:37 +1000)]
UI: add check for any kind of popup

Fixes T56155 when merging into 2.8

2 years agoBuild: require C11/C++11 for all operating systems in master.
Brecht Van Lommel [Wed, 25 Jul 2018 14:59:46 +0000 (16:59 +0200)]
Build: require C11/C++11 for all operating systems in 

This is in preparation of upgrading our library dependencies, some of which
need C++11. We already use C++11 in blender2.8 and for Windows and macOS, so
this just affects Linux.

On many distributions this will not require any changes, on some
install_deps.sh will need to be run again to rebuild libraries.

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

2 years agoCycles: Fixed OpenCL build. sqr(float4) is available on CUDA and CPU, but not on...
Stefan Werner [Mon, 30 Jul 2018 13:42:00 +0000 (15:42 +0200)]
Cycles: Fixed OpenCL build. sqr(float4) is available on CUDA and CPU, but not on OpenCL.

2 years agoSequencer: move text & color into own category
Campbell Barton [Mon, 30 Jul 2018 06:46:55 +0000 (16:46 +1000)]
Sequencer: move text & color into own category

Add 'Generate' menu, these aren't effects from a user perspective.

D3546 by @rudolf.ortner

2 years agoCleanup: id-property creation
Campbell Barton [Mon, 30 Jul 2018 06:36:07 +0000 (16:36 +1000)]
Cleanup: id-property creation

D3473 by @JacquesLucke

2 years agoUse Ctrl Snap to seconds w/ play-head drag
Campbell Barton [Mon, 30 Jul 2018 06:16:44 +0000 (16:16 +1000)]
Use Ctrl Snap to seconds w/ play-head drag

D3056 by @alourenco

2 years agoCleanup: trailing space
Campbell Barton [Mon, 30 Jul 2018 05:38:39 +0000 (15:38 +1000)]
Cleanup: trailing space

2 years agoCMake: omit superfluous Up-to-date messages
Campbell Barton [Mon, 30 Jul 2018 05:20:34 +0000 (15:20 +1000)]
CMake: omit superfluous Up-to-date messages

Causes a lot of noise when building the install target.

2 years agomake.bat : fix msvc 2017 detection.
Ray Molenkamp [Sun, 29 Jul 2018 17:24:49 +0000 (11:24 -0600)]
make.bat : fix msvc 2017 detection.

when 2017 was not found, it did not properly bail out of the rest of the detection process unless verbose mode was used.

2 years agoFix T56120: bad property access (from 2.8)
Campbell Barton [Sun, 29 Jul 2018 02:09:00 +0000 (12:09 +1000)]
Fix T56120: bad property access (from 2.8)

Thanks to @brita_ for the fix.

2 years agoCycles: speed up mesh volume bounds construction.
Stefan Werner [Sat, 28 Jul 2018 16:14:05 +0000 (18:14 +0200)]
Cycles: speed up mesh volume bounds construction.

Patch by Stefan, with minor tweaks by Brecht.

2 years agoCycles: Save a few instructions in area light sampling
Lukas Stockner [Fri, 27 Jul 2018 21:30:20 +0000 (23:30 +0200)]
Cycles: Save a few instructions in area light sampling

Just basic algebra - because all vectors have the same z coordinate, a lot of terms end up cancelling out.

Not exactly a massive improvement, but it's measurable with Branched PT and a high sample count on the lamp.

Reviewers: brecht, sergey

Reviewed By: brecht

Subscribers: swerner

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

2 years agoCycles: Initial implementation of detailed statistics
Sergey Sharybin [Fri, 27 Jul 2018 13:46:13 +0000 (15:46 +0200)]
Cycles: Initial implementation of detailed statistics

Gathers information about object geometry and textures. Very basic at
this moment, but need to start somewhere.

Things which needs to be included still:

- "Runtime" information, like BVH. While it is not directly controllable
  by artists, it's still important to know.

- Device array sizes. Again, not under artists control, but is added to
  the overall size.

- Memory peak at different synchronization stages.

At this point it simply prints info to the stdout after F12 is done,
need better control over that too.

Reviewers: brecht

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

2 years agoCycles: Add utility function to query graph node size in bytes
Sergey Sharybin [Fri, 27 Jul 2018 09:40:44 +0000 (11:40 +0200)]
Cycles: Add utility function to query graph node size in bytes

2 years agoFix T56092: command line arguments after -- beginning with -h don't work.
Brecht Van Lommel [Fri, 27 Jul 2018 09:34:52 +0000 (11:34 +0200)]
Fix T56092: command line arguments after -- beginning with -h don't work.

2 years agoCycles: Cleanup, indentation
Sergey Sharybin [Fri, 27 Jul 2018 09:19:29 +0000 (11:19 +0200)]
Cycles: Cleanup, indentation

2 years agoCycles: Cleanup, indentation
Sergey Sharybin [Fri, 27 Jul 2018 09:09:10 +0000 (11:09 +0200)]
Cycles: Cleanup, indentation

2 years agoCycles: Cleanup, spelling
Sergey Sharybin [Fri, 27 Jul 2018 08:30:10 +0000 (10:30 +0200)]
Cycles: Cleanup, spelling

2 years agoCycles: Cleanup, indentation
Sergey Sharybin [Fri, 27 Jul 2018 08:28:28 +0000 (10:28 +0200)]
Cycles: Cleanup, indentation

2 years agoCycles: Cleanup, line length
Sergey Sharybin [Fri, 27 Jul 2018 08:28:06 +0000 (10:28 +0200)]
Cycles: Cleanup, line length

2 years agoCycles: Cleanup, move functions outside of class methods
Sergey Sharybin [Fri, 27 Jul 2018 08:24:03 +0000 (10:24 +0200)]
Cycles: Cleanup, move functions outside of class methods

There is no reason or justification to have helper functions as
class methods: they do not depend on anything in the class itself.

There are probably more cases like that.

2 years agoCycles: Cleanup, remove unused function
Sergey Sharybin [Fri, 27 Jul 2018 08:22:45 +0000 (10:22 +0200)]
Cycles: Cleanup, remove unused function

2 years agoCycles: Cleanup in image manager, switch statement instead of if-else
Sergey Sharybin [Fri, 27 Jul 2018 08:16:30 +0000 (10:16 +0200)]
Cycles: Cleanup in image manager, switch statement instead of if-else

Allows to catch enumerator values which are missing from being handled.

Also use `const char*`, no need to construct string just to throw it away.

2 years agoFix Vector.project crash w/ >4 length vectors
Campbell Barton [Fri, 27 Jul 2018 07:40:01 +0000 (17:40 +1000)]
Fix Vector.project crash w/ >4 length vectors

2 years agoFix T55991: Python ignores scene switch argument
Campbell Barton [Fri, 27 Jul 2018 06:49:41 +0000 (16:49 +1000)]
Fix T55991: Python ignores scene switch argument

2 years agoCorrect arguments for callback
Campbell Barton [Fri, 27 Jul 2018 06:41:18 +0000 (16:41 +1000)]
Correct arguments for callback

2 years agoFix T56074: Remove doubles creates holes
Campbell Barton [Fri, 27 Jul 2018 00:51:42 +0000 (10:51 +1000)]
Fix T56074: Remove doubles creates holes

Own regression when moving remove-doubles to kd-tree
(seems to happen only in rare cases).

2 years agoCycles: Add reflection fix to Bump and Normal Map nodes
Lukas Stockner [Thu, 26 Jul 2018 14:48:15 +0000 (16:48 +0200)]
Cycles: Add reflection fix to Bump and Normal Map nodes

While changing the shading normal is a great way to add additional detail to a model, there are some problems with it.
One of them is that at grazing angles and/or strong changes to the normal, the reflected ray can end up pointing into the actual geometry, which results in a black spot.

This patch helps avoid this by automatically reducing the strength of the bump/normal map if the reflected direction would end up too shallow or inside the geometry.

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

2 years agoFix compiling after ui cleanups
Jens Verwiebe [Thu, 26 Jul 2018 12:21:15 +0000 (14:21 +0200)]
Fix compiling after ui cleanups

2 years agoWM: replace UI draw callbacks w/ property poll
Campbell Barton [Thu, 26 Jul 2018 07:35:33 +0000 (17:35 +1000)]
WM: replace UI draw callbacks w/ property poll

Custom drawing functions were used just to control property display.
Move to poll function.

2 years agoUI: hide transform constraints when not used
Campbell Barton [Thu, 26 Jul 2018 05:44:27 +0000 (15:44 +1000)]
UI: hide transform constraints when not used

2 years agoUI: hide proportional transform options
Campbell Barton [Thu, 26 Jul 2018 01:13:38 +0000 (11:13 +1000)]
UI: hide proportional transform options

Adds property poll function to transform.

2 years agoWM: Add operator property poll callback
Campbell Barton [Wed, 25 Jul 2018 23:59:56 +0000 (09:59 +1000)]
WM: Add operator property poll callback

This allows operators to filter out properties from the
auto-generated draw functions.

Some custom draw functions can move to using this.

2 years agoCleanup: Use const argument
Campbell Barton [Thu, 26 Jul 2018 01:07:56 +0000 (11:07 +1000)]
Cleanup: Use const argument

2 years agoFix T55964: Direction not normalized in isect_ray_aabb_v3_simple()?
Bastien Montagne [Wed, 25 Jul 2018 19:05:44 +0000 (21:05 +0200)]
Fix T55964: Direction not normalized in isect_ray_aabb_v3_simple()?

RNA API Object.ray_cast would not normalize direction vector before
doing first quick bbox intersection test, while using its returned
distance value. This could lead to wrong exclusion of object.
Thanks to @codemanx for finding that issue.

2 years agoFix (unreported) potential div-by-zero in ray/bbox intersection BLI code.
Bastien Montagne [Wed, 25 Jul 2018 19:04:28 +0000 (21:04 +0200)]
Fix (unreported) potential div-by-zero in ray/bbox intersection BLI code.

Also added note that direction parameter should be normalized vector
in case one intend to use returned distance values.

2 years agoFix T55958: allow the user to select between spring and spring2.
Alexander Gavrilov [Sat, 14 Jul 2018 14:01:02 +0000 (17:01 +0300)]
Fix T55958: allow the user to select between spring and spring2.

The old springs with damping 1.0 operate in a special way that
is more similar to plastic deformation than a spring. Some users
rely on that, so let the user choose which implementation to use.
This also restores full backward compatibility with 2.79.

Reviewers: sergof

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

2 years agoCleanup: changes from 2.8
Campbell Barton [Tue, 24 Jul 2018 03:54:25 +0000 (13:54 +1000)]
Cleanup: changes from 2.8

2 years agoFix T55668: Volume Keyframe on Cut-ted Metastrip.
Bastien Montagne [Mon, 23 Jul 2018 15:38:41 +0000 (17:38 +0200)]
Fix T55668: Volume Keyframe on Cut-ted Metastrip.

We actually still had cases of Meta strip duplication resulting in
non-unique strip names. Quiet surprising this went unoticed for so long. :(

Fixed that bug, and think it was last one (at least, no other case of
SEQ_DUPE_UNIQUE_NAME usage should be broken, I think...), and raised
subversion and updated doversion to run uniquename check on strips on
all previous fileversions.

Note: will have to do that again when merging in 2.8...

2 years agoFix build for Intel compiler with C++11.
Milan Jaros [Mon, 23 Jul 2018 12:20:06 +0000 (14:20 +0200)]
Fix build for Intel compiler with C++11.

2 years agomake.bat : fix typo
Ray Molenkamp [Sun, 22 Jul 2018 22:02:28 +0000 (16:02 -0600)]
make.bat : fix typo

pointed out by anchpop on irc.

2 years agoFix T54455, T56053, T55564: Cycles OpenCL build error after recent changes.
Brecht Van Lommel [Fri, 20 Jul 2018 17:07:35 +0000 (19:07 +0200)]
Fix T54455, T56053, T55564: Cycles OpenCL build error after recent changes.

2 years agoCleanup: Move 'WAVEFORM_LOADING' of sounds from flags to tags.
Bastien Montagne [Fri, 20 Jul 2018 10:11:34 +0000 (12:11 +0200)]
Cleanup: Move 'WAVEFORM_LOADING' of sounds from flags to tags.

This is purely runtime data, so move it to new tags. ;)

2 years agoFix T55414: waveforms are reprocessed when undoing
Bastien Montagne [Fri, 20 Jul 2018 10:01:38 +0000 (12:01 +0200)]
Fix T55414: waveforms are reprocessed when undoing

Add new tag to bSound (runtime flags), and make read code to set a 'no
reload waveform' new tag, since it uses a mapping to get existing
waveform in undo case...

2 years agoResolve the opposite vector ambiguity in Damped Track constraint.
Alexander Gavrilov [Sat, 7 Jul 2018 20:21:20 +0000 (23:21 +0300)]
Resolve the opposite vector ambiguity in Damped Track constraint.

Damped Track by specification attempts to arrive at the desired
direction via the shortest rotation. However with opposite vectors
there are infinitely many valid 180 degree rotations. Currently
it gives up and does nothing.

I think that it would be more reasonable to resolve the ambiguity
arbitrarily, so that Damped Track won't have a weird dead zone.
To make it more predictable I use a local axis.

In addition, the singularity area vicinity has some floating
point precision problems that result in significant jitter.
This applies workarounds for two causes of instability.

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

2 years agomake.bat : restore msvc2015 support.
Ray Molenkamp [Thu, 19 Jul 2018 02:00:34 +0000 (20:00 -0600)]
make.bat : restore msvc2015 support.

broke when i removed the 2013 support.

2 years agoCycles: increase volume stack to support 32 overlapping volumes.
Brecht Van Lommel [Wed, 18 Jul 2018 20:58:52 +0000 (22:58 +0200)]
Cycles: increase volume stack to support 32 overlapping volumes.

This increases stack memory usage some, and ideally we'd support a dynamic
size. But this is quite difficult on the GPU and hopefully 32 is enough even
for very complex cases.

2 years agoFix E key in Python console not working after recent changes.
Brecht Van Lommel [Wed, 18 Jul 2018 20:23:29 +0000 (22:23 +0200)]
Fix E key in Python console not working after recent changes.

2 years agoCycles: add Principled Hair BSDF.
L. E. Segovia [Wed, 18 Jul 2018 09:14:43 +0000 (11:14 +0200)]
Cycles: add Principled Hair BSDF.

This is a physically-based, easy-to-use shader for rendering hair and fur,
with controls for melanin, roughness and randomization.

Based on the paper "A Practical and Controllable Hair and Fur Model for
Production Path Tracing".

Implemented by Leonardo E. Segovia and Lukas Stockner, part of Google
Summer of Code 2018.

2 years agoCleanup: Cryptomatte node style tweaks.
Brecht Van Lommel [Wed, 18 Jul 2018 11:34:22 +0000 (13:34 +0200)]
Cleanup: Cryptomatte node style tweaks.

2 years agoCompositor: Cryptomatte compositing node.
Stefan Werner [Wed, 18 Jul 2018 11:03:09 +0000 (13:03 +0200)]
Compositor: Cryptomatte compositing node.

This patch adds a new matte node that implements the Cryptomatte specification.
It also incluces a custom eye dropper that works outside of a color picker.
Cryptomatte export for the Cycles render engine will be in a separate patch.

Reviewers: brecht

Reviewed By: brecht

Subscribers: brecht

Tags: #compositing

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

2 years agomake.bat: remove msvc2013 support.
Ray Molenkamp [Tue, 17 Jul 2018 20:44:47 +0000 (14:44 -0600)]
make.bat: remove msvc2013 support.

2 years agoFix T56003: Opening image files as movies in VSE crashes.
Bastien Montagne [Tue, 17 Jul 2018 11:55:43 +0000 (13:55 +0200)]
Fix T56003: Opening image files as movies in VSE crashes.

metadata loading code was assuming all videos in Blender were from
FFMPEG... added empty place-holders for other types too, we probably
could load some metadata from pictures or AVI files too!

2 years agoFix (IRC-reported) wrong usercount handling of deprecated IPO datablocks.
Bastien Montagne [Mon, 16 Jul 2018 20:29:26 +0000 (22:29 +0200)]
Fix (IRC-reported) wrong usercount handling of deprecated IPO datablocks.

versionning code would unref those twice... Reported by @├čergey on IRC, thanks!

2 years agoGhost: Fix memory leak happening with keyboard mapping access
Sergey Sharybin [Mon, 16 Jul 2018 15:32:57 +0000 (17:32 +0200)]
Ghost: Fix memory leak happening with keyboard mapping access

So far only noticed system de-initialization doesn't perform full
object free. So rather harmless but yet stupid.

2 years agoCleanup: Remove obscure flag which was only used for read in subsurf code
Sergey Sharybin [Mon, 16 Jul 2018 14:15:57 +0000 (16:15 +0200)]
Cleanup: Remove obscure flag which was only used for read in subsurf code

Some sort of rudiment from many years ago, is never set by 2.5x code.

2 years agoCleanup: Use const qualifier for UV vertex map
Sergey Sharybin [Mon, 16 Jul 2018 13:58:12 +0000 (15:58 +0200)]
Cleanup: Use const qualifier for UV vertex map

2 years agoCleanup: More clear naming in UV vertex/element mappings
Sergey Sharybin [Mon, 16 Jul 2018 13:37:27 +0000 (15:37 +0200)]
Cleanup: More clear naming in UV vertex/element mappings

Also use unsigned short for loop index within a polygon for UV vertex
mapping, which matches UV element mapping.

2 years agoFix T55944: fbx export error with smoothing face
Philipp Oeser [Mon, 16 Jul 2018 07:48:52 +0000 (09:48 +0200)]
Fix T55944: fbx export error with smoothing face

ddee0931b868 added PROP_RAW_BOOLEAN case for foreach_set, but missed
foreach_get

Reviewed By: brecht

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

2 years agoFix T55527: creating a Quaternion without args should result in identity
Philipp Oeser [Mon, 16 Jul 2018 07:37:24 +0000 (09:37 +0200)]
Fix T55527: creating a Quaternion without args should result in identity
quaternion

Reviewed By: campbellbarton

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

2 years agoBuildbot: update for new VS2017 buildbot worker name.
Brecht Van Lommel [Mon, 16 Jul 2018 12:34:24 +0000 (14:34 +0200)]
Buildbot: update for new VS2017 buildbot worker name.

2 years agoCleanup: doxy comments
Campbell Barton [Sun, 15 Jul 2018 18:29:11 +0000 (20:29 +0200)]
Cleanup: doxy comments

2 years agoFix Cycles incorrect resize and CMYK conversion of uint16/half images.
Brecht Van Lommel [Sun, 15 Jul 2018 16:34:31 +0000 (18:34 +0200)]
Fix Cycles incorrect resize and CMYK conversion of uint16/half images.

2 years agoCycles: add voronoi features and distance settings from Blender.
charlie [Sat, 14 Jul 2018 11:11:28 +0000 (13:11 +0200)]
Cycles: add voronoi features and distance settings from Blender.

Features to get the 2nd, 3rd, 4th closest point instead of the closest, and
various distance metrics. No viewport/Eevee support yet.

Patch by Michel Anders, Charlie Jolly and Brecht Van Lommel.

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

2 years agoCleanup: use float3 SSE instead of ssef for voronoi texture.
Brecht Van Lommel [Sat, 14 Jul 2018 13:38:58 +0000 (15:38 +0200)]
Cleanup: use float3 SSE instead of ssef for voronoi texture.

2 years agoRename operator property from last commit
Campbell Barton [Sat, 14 Jul 2018 08:19:53 +0000 (10:19 +0200)]
Rename operator property from last commit

Restore operator had same option named differently.

2 years agoKeymap: option to export all keymaps
Campbell Barton [Sat, 14 Jul 2018 08:15:46 +0000 (10:15 +0200)]
Keymap: option to export all keymaps

Useful to store a snapshot of the current keymap state
so changes to the default keymap are ignored.

Also useful for testing keymap export works properly.

2 years agoCleanup: use f-string for addon_utils
Campbell Barton [Sat, 14 Jul 2018 07:30:59 +0000 (09:30 +0200)]
Cleanup: use f-string for addon_utils

2 years agoCleanup: minor change for f-string use
Campbell Barton [Sat, 14 Jul 2018 07:30:50 +0000 (09:30 +0200)]
Cleanup: minor change for f-string use

2 years agoMakefile: add note about environment vars
Campbell Barton [Fri, 13 Jul 2018 16:16:05 +0000 (18:16 +0200)]
Makefile: add note about environment vars

2 years agoRemove invalid assert
Campbell Barton [Fri, 13 Jul 2018 15:59:26 +0000 (17:59 +0200)]
Remove invalid assert

2 years agoCleanup: operator type API, header
Campbell Barton [Fri, 13 Jul 2018 10:46:10 +0000 (12:46 +0200)]
Cleanup: operator type API, header

2 years agoCleanup: move WM type registration into own files
Campbell Barton [Fri, 13 Jul 2018 10:15:18 +0000 (12:15 +0200)]
Cleanup: move WM type registration into own files

Type registration is mostly boiler plate logic,
which can be separated from other API's.

2 years agoNodes: add sqrt, ceil, floor and fract to math nodes.
Charlie Jolly [Thu, 12 Jul 2018 21:40:18 +0000 (23:40 +0200)]
Nodes: add sqrt, ceil, floor and fract to math nodes.

This works for Cycles, Eevee, texture nodes and compositing. It helps to
reduce the number of math nodes required in various node setups.

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

2 years agoCleanup: id-property API use
Campbell Barton [Fri, 13 Jul 2018 08:51:49 +0000 (10:51 +0200)]
Cleanup: id-property API use

Also clarify comments.

2 years agoCleanup: split keymap lookups into own functions
Campbell Barton [Fri, 13 Jul 2018 08:26:24 +0000 (10:26 +0200)]
Cleanup: split keymap lookups into own functions

More will be added in 2.8, keep this manageable.

2 years agoKeymap: dope-sheet hotkey to change falloff
Philipp Oeser [Fri, 13 Jul 2018 07:05:17 +0000 (09:05 +0200)]
Keymap: dope-sheet hotkey to change falloff

2 years agoCleanup: right shift arguments
Campbell Barton [Fri, 13 Jul 2018 06:36:10 +0000 (08:36 +0200)]
Cleanup: right shift arguments

2 years agoCleanup: remove legacy mesh save support
Campbell Barton [Thu, 12 Jul 2018 19:32:18 +0000 (21:32 +0200)]
Cleanup: remove legacy mesh save support

This was used for saving files for Blender 2.6x.

2 years agoPyAPI: add undo redo handlers
Campbell Barton [Thu, 12 Jul 2018 12:43:35 +0000 (14:43 +0200)]
PyAPI: add undo redo handlers

Useful so Python can clean up before/after undo steps.

2 years agoFix T55949: increase color management exposure hard range.
Brecht Van Lommel [Thu, 12 Jul 2018 09:46:32 +0000 (11:46 +0200)]
Fix T55949: increase color management exposure hard range.

2 years agoCleanup: header guards
Campbell Barton [Thu, 12 Jul 2018 09:19:22 +0000 (11:19 +0200)]
Cleanup: header guards

2 years agoCleanup: pep8, cycles
Campbell Barton [Thu, 12 Jul 2018 09:03:13 +0000 (11:03 +0200)]
Cleanup: pep8, cycles

2 years agoIcons: support setting blender, inkscape commands
Campbell Barton [Thu, 12 Jul 2018 07:13:18 +0000 (09:13 +0200)]
Icons: support setting blender, inkscape commands

2 years agoFix PyRNA class registration w/ Python 3.7
Campbell Barton [Thu, 12 Jul 2018 06:28:06 +0000 (08:28 +0200)]
Fix PyRNA class registration w/ Python 3.7

In Python3.7 this now raises an error.

2 years agoBuildbot: initial configuration for Visual Studio 2017.
Brecht Van Lommel [Wed, 11 Jul 2018 19:30:37 +0000 (21:30 +0200)]
Buildbot: initial configuration for Visual Studio 2017.

2 years agoFix T55912: saving Viewer Node image error.
Bastien Montagne [Wed, 11 Jul 2018 12:32:43 +0000 (14:32 +0200)]
Fix T55912: saving Viewer Node image error.

Images from viewer node needs the lock parameter...

2 years agoMinor cleanup to logic in BKE's imbuf releasing code.
Bastien Montagne [Wed, 11 Jul 2018 12:32:06 +0000 (14:32 +0200)]
Minor cleanup to logic in BKE's imbuf releasing code.