blender.git
9 months agoFix collision multithreading inconsistency cloth-improvements
Luca Rood [Wed, 19 Sep 2018 13:40:38 +0000 (15:40 +0200)]
Fix collision multithreading inconsistency

Multithreading makes collisions be detected in different orders, causing
the clustering step of collision resolution to generate possibly
slightly different results on each run. This commit makes collision
order consistent.

9 months agoFix mistake in collision indexing
Luca Rood [Wed, 19 Sep 2018 11:35:48 +0000 (13:35 +0200)]
Fix mistake in collision indexing

11 months agoFix incorrect poll function signature in rna_cloth.c
Luca Rood [Sun, 22 Jul 2018 23:36:39 +0000 (01:36 +0200)]
Fix incorrect poll function signature in rna_cloth.c

11 months agoMerge branch 'master' into cloth-improvements
Luca Rood [Thu, 19 Jul 2018 14:02:49 +0000 (16:02 +0200)]
Merge branch 'master' into cloth-improvements

12 months 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.

12 months 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.

12 months 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.

12 months 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.

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

12 months 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

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

12 months 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!

12 months 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!

12 months 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.

12 months 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.

12 months 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

12 months 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.

12 months 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

12 months 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

12 months 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.

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

12 months 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.

12 months 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

12 months 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.

12 months 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.

12 months 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.

12 months 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

12 months 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

12 months 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

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

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

12 months 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.

12 months 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

12 months 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.

12 months 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.

12 months 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

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

12 months 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.

12 months 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.

12 months 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.

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

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

12 months 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

12 months 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.

12 months 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.

12 months 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...

12 months 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.

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

12 months 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

12 months 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

12 months 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

12 months 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.

12 months 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:

  https://bugs.freedesktop.org/show_bug.cgi?id=94604

12 months 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

12 months 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

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

12 months 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.

12 months 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

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

12 months 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.

12 months 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

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

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

12 months 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

12 months 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!

12 months 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

12 months 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

12 months 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
them.

12 months 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.

12 months 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: https://developer.blender.org/D3498

12 months 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.

12 months 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.

12 months 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

12 months 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

12 months 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

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

12 months 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.

12 months 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: https://developer.blender.org/D3523

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

12 months 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

12 months 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

12 months 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

12 months agoCycles Denoising: Refactor denoiser tile handling
Lukas Stockner [Wed, 4 Jul 2018 12:26:15 +0000 (14:26 +0200)]
Cycles Denoising: Refactor denoiser tile handling

This deduplicates the calls for tile (un)mapping and allows to have a target buffer that is different from the source buffer (needed for baking and animation denoising).

12 months agoCycles Denoising: Split main function into logical steps
Lukas Stockner [Wed, 4 Jul 2018 12:22:38 +0000 (14:22 +0200)]
Cycles Denoising: Split main function into logical steps

12 months agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 20:35:37 +0000 (22:35 +0200)]
Cleanup: pep8

12 months agoPython: Print file:line when editing UI source
Campbell Barton [Tue, 3 Jul 2018 05:22:26 +0000 (07:22 +0200)]
Python: Print file:line when editing UI source

12 months agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 04:47:49 +0000 (06:47 +0200)]
Cleanup: pep8

12 months agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 04:27:53 +0000 (06:27 +0200)]
Cleanup: pep8

12 months agoCleanup: right shift
Campbell Barton [Mon, 2 Jul 2018 16:45:26 +0000 (18:45 +0200)]
Cleanup: right shift

12 months agoPainting: fix uninitialized variable use
Campbell Barton [Mon, 2 Jul 2018 16:16:37 +0000 (18:16 +0200)]
Painting: fix uninitialized variable use

12 months agoCycles: Fix missing curve hair when building with GCC-8 in release mode
Sergey Sharybin [Mon, 2 Jul 2018 13:11:48 +0000 (15:11 +0200)]
Cycles: Fix missing curve hair when building with GCC-8 in release mode

Reshuffle cast intrinsics to make XOR to operate on __m128i rather
than on __m128.

Hopefully this does not affect performance.

12 months agoScreen: support splitting from floating menu
Campbell Barton [Mon, 2 Jul 2018 10:24:21 +0000 (12:24 +0200)]
Screen: support splitting from floating menu

12 months agoCleanup: use bool for poll functions
Campbell Barton [Mon, 2 Jul 2018 09:47:00 +0000 (11:47 +0200)]
Cleanup: use bool for poll functions

12 months agoCorrect f-string in own recent changes
Campbell Barton [Mon, 2 Jul 2018 07:18:38 +0000 (09:18 +0200)]
Correct f-string in own recent changes

12 months agoCleanup: right shift in interface code
Campbell Barton [Sun, 1 Jul 2018 17:57:31 +0000 (19:57 +0200)]
Cleanup: right shift in interface code

12 months agoFix T55687: compile error when not using c++11.
Brecht Van Lommel [Sun, 1 Jul 2018 14:48:19 +0000 (16:48 +0200)]
Fix T55687: compile error when not using c++11.

12 months agoFix T55626, fix T55106: Cycles motion blur + persistent images bug.
Brecht Van Lommel [Sun, 1 Jul 2018 14:31:46 +0000 (16:31 +0200)]
Fix T55626, fix T55106: Cycles motion blur + persistent images bug.

12 months agoRNA: use bool for boolean RNA types
Campbell Barton [Sun, 1 Jul 2018 13:47:09 +0000 (15:47 +0200)]
RNA: use bool for boolean RNA types

We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.

12 months agoCleanup: reduce variable scope
Campbell Barton [Sun, 1 Jul 2018 08:32:47 +0000 (10:32 +0200)]
Cleanup: reduce variable scope

12 months agoCleanup: avoid calloc when immediately overwritten
Campbell Barton [Sun, 1 Jul 2018 08:26:37 +0000 (10:26 +0200)]
Cleanup: avoid calloc when immediately overwritten