2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 30 Jul 2018 16:38:27 +0000 (18:38 +0200)]
Merge branch 'master' into blender2.8

2 years agoUI: make horizontal wheel scroll in 2D view match vertical scroll speed.
Brecht Van Lommel [Mon, 30 Jul 2018 16:25:01 +0000 (18:25 +0200)]
UI: make horizontal wheel scroll in 2D view match vertical scroll speed.

2 years agoClean Keyframes operator tweaks
Joshua Leung [Mon, 30 Jul 2018 15:48:37 +0000 (03:48 +1200)]
Clean Keyframes operator tweaks

By popular demand, the CLean Keyframes operator will now
leave handles and other interpolation settings untouched.

Previously, it would recreate the keyframes from scratch,
keeping only the frame + value, under the assumption that
the handle information was "bad" (i.e. the source of bumps
and roughness, due to bad hand tweaking). However, since
most animators use this on hand-keyed animation instead of
motion-capture data, this assumption didn't hold, and was
actually overly destructive - wiping out lots of hand-adjusted
curve data.

2 years agoMinor cleanup.
Bastien Montagne [Mon, 30 Jul 2018 15:42:28 +0000 (17:42 +0200)]
Minor cleanup.

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 will need to be run again to rebuild libraries.

Differential Revision:

2 years agoSilencing a bunch of compiler warnings
Joshua Leung [Mon, 30 Jul 2018 14:57:53 +0000 (02:57 +1200)]
Silencing a bunch of compiler warnings

Most of these were mismatched const qualifiers

2 years agoCleanup/Refactor: Move CurveCache runtime data into Object.runtime struct.
Bastien Montagne [Mon, 30 Jul 2018 14:54:40 +0000 (16:54 +0200)]
Cleanup/Refactor: Move CurveCache runtime data into Object.runtime struct.

Also, fix missing cleanup of Object.runtime when copying Object

2 years agoWorkbench: Use FXAA instead of TAA when viewport is animated.
Clément Foucault [Mon, 30 Jul 2018 14:48:44 +0000 (16:48 +0200)]
Workbench: Use FXAA instead of TAA when viewport is animated.

Fix T55996 "Playback in "Active Editor Only" doesn't work"

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 agoFix T56020: Crash while opening .blend file made with older version.
Bastien Montagne [Mon, 30 Jul 2018 13:00:51 +0000 (15:00 +0200)]
Fix T56020: Crash while opening .blend file made with older version.

We need a NULL workspace check here, in some cases we get a SRTemp
screen even though it's not tagged as temp...

2 years agoUI: Hide labels from MatCaps
Pablo Vazquez [Mon, 30 Jul 2018 12:50:44 +0000 (14:50 +0200)]
UI: Hide labels from MatCaps

They were added as placeholder to show something until they lazy-load.
But since the load is fast and it's hard to fit the text, and their name
is displayed already in the tooltip, we can do without for now.

In the future when we have insta-tooltips we should make them use this.

2 years agoMotion Path: Don't blit MSAA buffer if there is no motion paths
Clément Foucault [Mon, 30 Jul 2018 12:18:38 +0000 (14:18 +0200)]
Motion Path: Don't blit MSAA buffer if there is no motion paths

2 years agoArmature: Fix bone always transparent when enabling MSAA
Clément Foucault [Mon, 30 Jul 2018 12:17:53 +0000 (14:17 +0200)]
Armature: Fix bone always transparent when enabling MSAA

2 years agoMotion Path: Fix motion path when MSAA is enabled
Clément Foucault [Mon, 30 Jul 2018 12:15:40 +0000 (14:15 +0200)]
Motion Path: Fix motion path when MSAA is enabled

2 years agoDRW: Add option to only resolve framebuffer colors without depth test
Clément Foucault [Mon, 30 Jul 2018 11:56:22 +0000 (13:56 +0200)]
DRW: Add option to only resolve framebuffer colors without depth test

2 years agoDRW: Add DRW_shgroup_is_empty and DRW_pass_is_empty
Clément Foucault [Mon, 30 Jul 2018 10:23:23 +0000 (12:23 +0200)]
DRW: Add DRW_shgroup_is_empty and DRW_pass_is_empty

2 years agoViewport: add new default set of matcaps.
Brecht Van Lommel [Mon, 30 Jul 2018 11:43:06 +0000 (13:43 +0200)]
Viewport: add new default set of matcaps.

These were made by the community and curated by Pablo and William.
Thanks to everyone who contributed!

Command used for compression:
oiiotool %s --ch R,G,B -d half --compression dwab -o output/%s

2 years agoShape keys: change default interpolation for absolute shape keys to linear.
Brecht Van Lommel [Mon, 30 Jul 2018 10:22:18 +0000 (12:22 +0200)]
Shape keys: change default interpolation for absolute shape keys to linear.

2 years agoFix T56121 and maybe others: DST.gpu_context was being created in the wrong DST.gl_co...
mano-wii [Mon, 30 Jul 2018 11:49:27 +0000 (08:49 -0300)]
Fix T56121 and maybe others: DST.gpu_context was being created in the wrong DST.gl_context.

In addition to the crash in the selection of bones, this was responsible for other problems such as wrong hair and disappearing objects.

2 years agoFix T56152: Rotate crash w/ individual origins
Campbell Barton [Mon, 30 Jul 2018 10:53:34 +0000 (20:53 +1000)]
Fix T56152: Rotate crash w/ individual origins

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 30 Jul 2018 06:51:39 +0000 (16:51 +1000)]
Merge branch 'master' into blender2.8

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 agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 30 Jul 2018 06:41:28 +0000 (16:41 +1000)]
Merge branch 'master' into blender2.8

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 agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 30 Jul 2018 06:26:29 +0000 (16:26 +1000)]
Merge branch 'master' into blender2.8

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:40:09 +0000 (15:40 +1000)]
Cleanup: trailing space

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 30 Jul 2018 05:39:12 +0000 (15:39 +1000)]
Merge branch 'master' into blender2.8

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 agoUI: Custom FPS not showing properly if editor is narrow
Pablo Vazquez [Sun, 29 Jul 2018 20:49:49 +0000 (22:49 +0200)]
UI: Custom FPS not showing properly if editor is narrow

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Sun, 29 Jul 2018 17:27:01 +0000 (11:27 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

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 agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 29 Jul 2018 02:12:36 +0000 (12:12 +1000)]
Merge branch 'master' into blender2.8

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 agoUI: correct RNA property
Campbell Barton [Sun, 29 Jul 2018 01:54:12 +0000 (11:54 +1000)]
UI: correct RNA property

2 years agoFix T56120: Crash on "Install Matcap, World or Camera HDRI"
Ines Almeida [Sat, 28 Jul 2018 20:58:33 +0000 (22:58 +0200)]
Fix T56120: Crash on "Install Matcap, World or Camera HDRI"

Code was trying to hide properties by name that may not exist.
Check if it was actually found and add 'files' to the filter,
since it is what WM_OT_studio_lights_install uses.

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 agoFix outliner icon row with counters not correct for nested collections.
Brecht Van Lommel [Thu, 26 Jul 2018 15:35:14 +0000 (17:35 +0200)]
Fix outliner icon row with counters not correct for nested collections.

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:

2 years agoCleanup: Remove occurances of GPULamp
Clément Foucault [Fri, 27 Jul 2018 16:12:02 +0000 (18:12 +0200)]
Cleanup: Remove occurances of GPULamp

2 years agoGPUTexture: Fix wrong texture size check
Clément Foucault [Fri, 27 Jul 2018 15:50:14 +0000 (17:50 +0200)]
GPUTexture: Fix wrong texture size check

2 years agoEevee: Fix assert when baking lightprobes.
Clément Foucault [Fri, 27 Jul 2018 15:33:53 +0000 (17:33 +0200)]
Eevee: Fix assert when baking lightprobes.

The GPU context was freed before all framebuffer attached to it were

Fix T56117

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 27 Jul 2018 15:21:43 +0000 (17:21 +0200)]
Merge branch 'master' into blender2.8

2 years agoSubsurf: Correction to origindex
Sergey Sharybin [Wed, 25 Jul 2018 08:30:11 +0000 (10:30 +0200)]
Subsurf: Correction to origindex

Only enforce origindex to NONE for a generated geometry. For the rest
of geometry rely on CustomData_copy() to set it to the proper value.

This will ensure origindex is set correct for cases when there is an
array modifier prior to subsurf.

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:

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 agoGHOST: Fix SDL backend.
Clément Foucault [Fri, 27 Jul 2018 14:28:44 +0000 (16:28 +0200)]
GHOST: Fix SDL backend.

We use a hidden window for each offscreen context we need.

On X11 (linux) it does not show any other windows in the OS task bar
but it might be the case on other operating systems (untested).

2 years agoWorkbench: option to change background
Jeroen Bakker [Fri, 27 Jul 2018 13:05:46 +0000 (15:05 +0200)]
Workbench: option to change background

Replaced the draw world option with a shading.background_type enum.
Where the user can select Theme, World or a Custom color.

World and theme colors do not always work in workbench. We needed to
have an option what the user could control locally (per viewport).
Especially when using linked data.

I removed the world background drawing from the draw_manager. It was never used as EEVEE and Workbench both override the logic.

Not 100% sure about the naming of Theme, World, Viewport.
In other parts of blender's codebase World is sometimes called Scene.
Will stick to the names that describes its location best.


Reviewers: fclem, campbellbarton

Reviewed By: fclem

Subscribers: venomgfx

Tags: #bf_blender_2.8

Differential Revision:

2 years agoFix crash enabling disabled collection containing curves.
Brecht Van Lommel [Fri, 27 Jul 2018 12:13:47 +0000 (14:13 +0200)]
Fix crash enabling disabled collection containing curves.

Fixes T55948, T56016, T55926, T55947.

Differential Revision:

2 years agoFix GPU build error after recent commit.
Brecht Van Lommel [Fri, 27 Jul 2018 12:15:45 +0000 (14:15 +0200)]
Fix GPU build error after recent commit.

2 years agoDRW: Fix Race condition in defered compilation
Clément Foucault [Fri, 27 Jul 2018 11:57:46 +0000 (13:57 +0200)]
DRW: Fix Race condition in defered compilation

2 years agoFix T55888: Eevee: crash when shadow cube size is > 512px
Clément Foucault [Fri, 27 Jul 2018 11:56:07 +0000 (13:56 +0200)]
Fix T55888: Eevee: crash when shadow cube size is > 512px

Note that this was only reported to happen on AMD GPU + windows.

2 years agoFix T55744: Assertion failure using the Knife angle constraint option
Clément Foucault [Fri, 27 Jul 2018 10:15:39 +0000 (12:15 +0200)]
Fix T55744: Assertion failure using the Knife angle constraint option

2 years agoRNA: Set default for Camera properties
Clément Foucault [Thu, 26 Jul 2018 10:29:16 +0000 (12:29 +0200)]
RNA: Set default for Camera properties

Change the default clipend value to match the viewport (1000.0f)

2 years agoUI: Fix error in camera property panel
Clément Foucault [Thu, 26 Jul 2018 10:28:12 +0000 (12:28 +0200)]
UI: Fix error in camera property panel

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 agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 27 Jul 2018 07:41:58 +0000 (17:41 +1000)]
Merge branch 'master' into blender2.8

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 agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 27 Jul 2018 07:09:38 +0000 (17:09 +1000)]
Merge branch 'master' into blender2.8

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 agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 27 Jul 2018 01:01:01 +0000 (11:01 +1000)]
Merge branch 'master' into blender2.8

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 agoUI: Tooltip tweaks for Display Mode
Pablo Vazquez [Fri, 27 Jul 2018 00:13:52 +0000 (02:13 +0200)]
UI: Tooltip tweaks for Display Mode

Keep UI -> Keep User Interface, and don't use the word UI again in the tooltip.

2 years agoUI: Help menu minor tweaks
Pablo Vazquez [Fri, 27 Jul 2018 00:02:11 +0000 (02:02 +0200)]
UI: Help menu minor tweaks

Show "Operators Cheatsheet" and Python API link only when developers extra is enabled.
Fix URL for User Communities, Developer Community and Release Notes (which 404s
now just like the wiki anyway since the page for 2.80 is being made).

2 years agoFix assert in snapEditMesh.
mano-wii [Thu, 26 Jul 2018 16:48:26 +0000 (13:48 -0300)]
Fix assert in snapEditMesh.

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:

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 agoUI: Use Single Column and Grid Flow layout for Physics Cloth
Vuk Gardašević [Thu, 26 Jul 2018 10:33:31 +0000 (12:33 +0200)]
UI: Use Single Column and Grid Flow layout for Physics Cloth

See D3559

2 years agoCleanup: unused args
Campbell Barton [Thu, 26 Jul 2018 09:51:56 +0000 (19:51 +1000)]
Cleanup: unused args

2 years agoUI: Single column layout and sub-panels for Rigid Body Physics panels
William Reynish [Thu, 26 Jul 2018 09:39:29 +0000 (11:39 +0200)]
UI: Single column layout and sub-panels for Rigid Body Physics panels

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 26 Jul 2018 08:39:57 +0000 (18:39 +1000)]
Merge branch 'master' into blender2.8

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 agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 26 Jul 2018 05:51:29 +0000 (15:51 +1000)]
Merge branch 'master' into blender2.8

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 agoCleanup: remove redundant flag
Campbell Barton [Thu, 26 Jul 2018 04:58:36 +0000 (14:58 +1000)]
Cleanup: remove redundant flag

Caller can pass this flag if necessary.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 26 Jul 2018 04:49:52 +0000 (14:49 +1000)]
Merge branch 'master' into blender2.8

2 years agoWM: remove duplicate ui-list functions
Campbell Barton [Thu, 26 Jul 2018 04:46:33 +0000 (14:46 +1000)]
WM: remove duplicate ui-list functions

Missed when moving into own file.

Caused issues on MSVC, not GCC.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 26 Jul 2018 03:50:56 +0000 (13:50 +1000)]
Merge branch 'master' into blender2.8

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 agoUI: More opaque type icons in the Outliner
Pablo Vazquez [Thu, 26 Jul 2018 00:42:20 +0000 (02:42 +0200)]
UI: More opaque type icons in the Outliner

Also always draw the counter of elements-per-type with a dark background
regardless of the active status. It being white when active affects
readability since the icon background itself is already highlighted.

Thanks devtalk forum for feedback.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 25 Jul 2018 19:12:04 +0000 (21:12 +0200)]
Merge branch 'master' into blender2.8


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 crash Cycles rendering with --debug-value 256.
Brecht Van Lommel [Wed, 25 Jul 2018 17:15:20 +0000 (19:15 +0200)]
Fix crash Cycles rendering with --debug-value 256.

2 years agoFix for holdout / indirect only with collection instances.
Brecht Van Lommel [Wed, 25 Jul 2018 16:30:26 +0000 (18:30 +0200)]
Fix for holdout / indirect only with collection instances.

2 years agoUI: Sort panels in mesh context
Pablo Vazquez [Wed, 25 Jul 2018 14:48:04 +0000 (16:48 +0200)]
UI: Sort panels in mesh context

Also collapse by default the less frequented Face Maps and Normals

2 years agoCycles: add per layer collection indirectly on setting.
Brecht Van Lommel [Wed, 25 Jul 2018 10:26:09 +0000 (12:26 +0200)]
Cycles: add per layer collection indirectly on setting.

In the outliner, right click > view layer > set indirect only. This is
like clearing camera ray visibility on objects in the collection, and is
temporary until we have more general dynamic overrides.

2 years agoUI: Single column and subpanels for Particles Physics Fluids and Boids
William Reynish [Wed, 25 Jul 2018 14:12:04 +0000 (16:12 +0200)]
UI: Single column and subpanels for Particles Physics Fluids and Boids