3 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

3 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

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

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

3 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:

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

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

3 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

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

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

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

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

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

3 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:

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

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

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

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

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

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

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

3 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:

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

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

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

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

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

3 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:

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

3 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!

3 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!

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

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

3 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

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

3 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

Reviewed By: brecht

Differential Revision:

3 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

Reviewed By: campbellbarton

Differential Revision:

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

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

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

3 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:

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

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

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

3 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

3 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

3 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

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

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

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

3 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:

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

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

3 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

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

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

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

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

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

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

3 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

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

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

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

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

3 years agoCleanup: duplicate versioning block
Campbell Barton [Wed, 11 Jul 2018 09:39:58 +0000 (11:39 +0200)]
Cleanup: duplicate versioning block

3 years agoDepsgraph: Fix face dependency cycle when bone uses id property from self
Sergey Sharybin [Wed, 11 Jul 2018 08:19:56 +0000 (10:19 +0200)]
Depsgraph: Fix face dependency cycle when bone uses id property from self

3 years agoOpenSubdiv: Fix wrong topology refiner cast
Sergey Sharybin [Tue, 10 Jul 2018 12:37:34 +0000 (14:37 +0200)]
OpenSubdiv: Fix wrong topology refiner cast

3 years agoOpenSubdiv: Make more flexible C-API to specify FVar interpolation
Sergey Sharybin [Tue, 10 Jul 2018 12:36:04 +0000 (14:36 +0200)]
OpenSubdiv: Make more flexible C-API to specify FVar interpolation

3 years agoCMake: Disable OpenAL and JACK when AUDASPACE is disabled
Sergey Sharybin [Tue, 10 Jul 2018 09:25:47 +0000 (11:25 +0200)]
CMake: Disable OpenAL and JACK when AUDASPACE is disabled

Previously CMake was raising a fatal error, which wasn't too helpful.

There is still some fatal messages about Audaspace and Game Engine,
but the latter one is on it's EOL and is removed in Blender 2.8.

3 years agoGHOST: Fix memory leak in X11 DPI query
Sergey Sharybin [Tue, 10 Jul 2018 08:59:06 +0000 (10:59 +0200)]
GHOST: Fix memory leak in X11 DPI query

The X resource database is to be explicitly destroyed. This fixes 46 bytes
leak per every window DPI query (which happens a lot on window move/resize
and even on areas resize).

Unfortunately, this does not fully fix the leak since the known leak:

3 years agoKeymap: minor changes for keymap display
Campbell Barton [Tue, 10 Jul 2018 05:41:49 +0000 (07:41 +0200)]
Keymap: minor changes for keymap display

3 years agoFix transform plane constraint orientation cycle
Campbell Barton [Tue, 10 Jul 2018 04:51:25 +0000 (06:51 +0200)]
Fix transform plane constraint orientation cycle

Regression since 2.79b release

3 years agoCleanup: use const transform args
Campbell Barton [Mon, 9 Jul 2018 15:57:05 +0000 (17:57 +0200)]
Cleanup: use const transform args

3 years agoCleanup: remove 'Orientation' from keymap item name
Campbell Barton [Mon, 9 Jul 2018 05:39:26 +0000 (07:39 +0200)]
Cleanup: remove 'Orientation' from keymap item name

It's constraint not an orientation,
in transform context it can be inferred.

3 years agoKeymap: remove some hard coded transform events
Campbell Barton [Mon, 9 Jul 2018 05:29:12 +0000 (07:29 +0200)]
Keymap: remove some hard coded transform events

Also re-order for display purposes

3 years agoCleanup: right shift
Campbell Barton [Mon, 9 Jul 2018 04:38:07 +0000 (06:38 +0200)]
Cleanup: right shift

3 years agoFix scale in Apply Pose As Rest Pose for bendy bones.
Alexander Gavrilov [Sat, 7 Jul 2018 11:41:29 +0000 (14:41 +0300)]
Fix scale in Apply Pose As Rest Pose for bendy bones.

Scale is multiplicative, and adding it up causes the bone to bloat.

3 years agoCleanup: isinstance can take multiple types
Campbell Barton [Sat, 7 Jul 2018 09:27:48 +0000 (11:27 +0200)]
Cleanup: isinstance can take multiple types

3 years agoCleanup: pep8
Campbell Barton [Sat, 7 Jul 2018 06:48:35 +0000 (08:48 +0200)]
Cleanup: pep8

3 years agoCleanup: redundant poll checks
Campbell Barton [Sat, 7 Jul 2018 06:36:17 +0000 (08:36 +0200)]
Cleanup: redundant poll checks

3 years agoPyDrivers: update bytecode check for Python3.6
Campbell Barton [Fri, 6 Jul 2018 17:31:00 +0000 (19:31 +0200)]
PyDrivers: update bytecode check for Python3.6

3 years agoAnimation player: Ensure new frames are displayed while dragging mouse
Sergey Sharybin [Fri, 6 Jul 2018 15:14:16 +0000 (17:14 +0200)]
Animation player: Ensure new frames are displayed while dragging mouse

Thanks Campbell for review!

3 years agoCleanup: use outliner_flag_* name prefix
Campbell Barton [Fri, 6 Jul 2018 12:40:13 +0000 (14:40 +0200)]
Cleanup: use outliner_flag_* name prefix

3 years agofix c++ comment style in 3cc2a9b934d0
Philipp Oeser [Fri, 6 Jul 2018 10:58:07 +0000 (12:58 +0200)]
fix c++ comment style in 3cc2a9b934d0

3 years agoOcean Modifier: removed unused refresh flags
Sybren A. Stüvel [Fri, 6 Jul 2018 10:42:58 +0000 (12:42 +0200)]
Ocean Modifier: removed unused refresh flags

The flags were set and cleared correctly, but nothing was actually reading

3 years agoOcean Modifier: removed the MOD_OCEAN_REFRESH_ADD flag
Sybren A. Stüvel [Fri, 6 Jul 2018 10:40:09 +0000 (12:40 +0200)]
Ocean Modifier: removed the MOD_OCEAN_REFRESH_ADD flag

The flag was only used in readfile.c, and resulted in a delayed call to
BKE_ocean_add(); this call is now immediately made instead as it's not
very expensive.

3 years agoFix T55581: kill running (render) jobs when deleting a scene
Philipp Oeser [Fri, 22 Jun 2018 11:44:12 +0000 (13:44 +0200)]
Fix T55581: kill running (render) jobs when deleting a scene

also fixed passing WM_JOB_TYPE_ANY to WM_jobs_kill_type()

Reviewed By: brecht

Differential Revision:

3 years agoCycles: Enabled half precision textures for OpenCL devices that support the cl_khr_fp...
Stefan Werner [Fri, 6 Jul 2018 09:42:34 +0000 (11:42 +0200)]
Cycles: Enabled half precision textures for OpenCL devices that support the cl_khr_fp16 extension.

3 years agoCycles: Fixed OpenCL kernel build, it threw a compiler error.
Stefan Werner [Fri, 6 Jul 2018 08:21:02 +0000 (10:21 +0200)]
Cycles: Fixed OpenCL kernel build, it threw a compiler error.

3 years agoCleanup: strip trailing space for cycles
Campbell Barton [Fri, 6 Jul 2018 08:17:58 +0000 (10:17 +0200)]
Cleanup: strip trailing space for cycles

3 years agoEmpty Object: Center images by default
Campbell Barton [Fri, 6 Jul 2018 08:05:14 +0000 (10:05 +0200)]
Empty Object: Center images by default

3 years agoBKE_addons: utility to remove by name
Campbell Barton [Fri, 6 Jul 2018 05:55:29 +0000 (07:55 +0200)]
BKE_addons: utility to remove by name

3 years agoCleanup: flag checks
Campbell Barton [Thu, 5 Jul 2018 20:49:42 +0000 (22:49 +0200)]
Cleanup: flag checks

3 years agoRNA: correct callback type
Campbell Barton [Thu, 5 Jul 2018 20:25:34 +0000 (22:25 +0200)]
RNA: correct callback type

Missed when changing callbacks from int to bool type.

3 years agoCycles: Adding native support for UINT16 textures.
Stefan Werner [Thu, 5 Jul 2018 10:37:52 +0000 (12:37 +0200)]
Cycles: Adding native support for UINT16 textures.

Textures in 16 bit integer format are sometimes used for displacement, bump and normal maps and can be exported by tools like Substance Painter. Without this patch, Cycles would promote those textures to single precision floating point, causing them to take up twice as much memory as needed.

Reviewers: #cycles, brecht, sergey

Reviewed By: #cycles, brecht, sergey

Subscribers: sergey, dingto, #cycles

Tags: #cycles

Differential Revision:

3 years agoCleanup: pep8
Campbell Barton [Thu, 5 Jul 2018 05:53:21 +0000 (07:53 +0200)]
Cleanup: pep8

3 years agoCycles Denoising: Pass tile buffers to every OpenCL kernel to conform to standard...
Lukas Stockner [Wed, 4 Jul 2018 12:02:38 +0000 (14:02 +0200)]
Cycles Denoising: Pass tile buffers to every OpenCL kernel to conform to standard and get rid of set_tile_info

3 years agoCycles Denoising: Correctly handle target buffer in tile unmapping and move device...
Lukas Stockner [Wed, 4 Jul 2018 11:19:12 +0000 (13:19 +0200)]
Cycles Denoising: Correctly handle target buffer in tile unmapping and move device swap logic to the device_memory

3 years agoCycles Denoising: Cleanup: Rename tiles to tile_info
Lukas Stockner [Wed, 4 Jul 2018 12:26:42 +0000 (14:26 +0200)]
Cycles Denoising: Cleanup: Rename tiles to tile_info