Blender Git Commits

Blender Git "master" branch commits.

Page: 882 / 5574

March 4, 2020, 22:41 (GMT)
UI: Fluid: Use updated preset UI

Part of T73617
March 4, 2020, 22:41 (GMT)
Fix Unreported: Error adding fluid presets
March 4, 2020, 21:38 (GMT)
Cleanup: redundant casts
March 4, 2020, 21:21 (GMT)
Cleanup: material API naming

- Use 'BKE_object_material_*', 'BKE_id_material_*' prefix
for functions that operate on Object and ID types.
- Use '_len' suffix for length (matching BLI naming).
- Use '_p' suffix for functions that return a pointer to values
where the value would typically be returned.

Functions renamed:

- BKE_object_material_resize was BKE_material_resize_object
- BKE_object_material_remap was BKE_material_remap_object
- BKE_object_material_remap_calc was BKE_material_remap_object_calc

- BKE_object_material_array_p was BKE_object_material_array
- BKE_object_material_len_p was BKE_object_material_num
- BKE_id_material_array_p was BKE_id_material_array
- BKE_id_material_len_p was BKE_id_material_num

- BKE_id_material_resize was BKE_material_resize_id
- BKE_id_material_append was BKE_material_append_id
- BKE_id_material_pop was BKE_material_pop_id
- BKE_id_material_clear was BKE_material_clear_id
March 4, 2020, 21:05 (GMT)
Cleanup: formatting, strip trailing space
March 4, 2020, 20:59 (GMT)
Cleanup: replace unnecessary MEM_callocN calls

Use MEM_mallocN when memory is immediately copied over.
Revision a5c4a44 by Sebastián Barschkis
March 4, 2020, 17:46 (GMT)
Fluid: Bounding boxes for effector objects

This commit adds bounding box support for emission objects - similarly to flow objects. Before, each effector object had to iterate over the entire domain. Bake times of scenes with multiple obstacles improved significantly with this optimization.

Other improvements that were implemented alongside the bbox feature:
- Option for subframe sampling for effector objects
- Option to enable / disable effectors (can be animated)
- Optimization for static objects. If a flow or effector object does not move and the adaptive domain is not in use, the bake time will be optimized further by reusing the flow / effector grids from the previous frame (no recalculation).
Revision 3c74d45 by Sebastián Barschkis
March 4, 2020, 17:46 (GMT)
Fluid: Added sanity grid initializations in smoke / liquid scripts

Just a sanity check.
Revision 8f1876b by Sebastián Barschkis
March 4, 2020, 17:46 (GMT)
Fluid: Fix issue with fire emission

Fixes weird behavior at inflow regions. Issue was introduced with d6d44ccc7786.
Revision bf8a73b by Sebastián Barschkis
March 4, 2020, 17:46 (GMT)
Fluid: Naming cleanup for flags grid

Use flags instead of obstacle to avoid confusion with obstacle levelset grid.
Revision 6958ec3 by Sebastián Barschkis
March 4, 2020, 17:46 (GMT)
Fluid: Added an option to delete fluid inside obstacles

Simple checkbox that - if enabled - will tell the solver to clear density or liquid particles in obstacle cells.
March 4, 2020, 17:46 (GMT)
Fluid: Optimization for extrapolation functions in smoke / liquid scripts

Too much extrapolation can become expensive. Reducing it here since extrapolating levelsets into a couple of cells should be sufficient.
March 4, 2020, 16:35 (GMT)
Fix T74434: Video Sequencer: Alt+ clicking (assign to all selected) does
not work for unlocking

Special case for when we do this on "lock":
- locked sequences are not in "selected_editable_sequences"
- use "selected_sequences" in that case

Maniphest Tasks: T74434

Differential Revision: https://developer.blender.org/D7023
March 4, 2020, 15:48 (GMT)
Fix T71578: knife tool draws some points incorrectly

D6417 by @fbessou
Revision a22573e by Julian Eisel
March 4, 2020, 15:45 (GMT)
Build System: Add OpenXR-SDK dependency and WITH_XR_OPENXR build option

The OpenXR-SDK contains utilities for using the OpenXR standard
(https://www.khronos.org/openxr/). Namely C-headers and a so called
"loader" to manage runtime linking to OpenXR platforms ("runtimes")
installed on the user's system.

The WITH_XR_OPENXR build option is disabled by default for now, as there
is no code using it yet. On macOS it will remain disabled for now, it's
untested and there's no OpenXR runtime in sight for it.

Some points on the OpenXR-SDK dependency:
* The repository is located at
https://github.com/KhronosGroup/OpenXR-SDK (Apache 2).
* Notes on updating the dependency:
https://wiki.blender.org/wiki/Source/OpenXR_SDK_Dependency
* It contains a bunch of generated files, for which the sources are in a
separate repository
(https://github.com/KhronosGroup/OpenXR-SDK-Source).
* We could use that other repo by default, but I'd rather go with the
simpler solution and allow people to opt in if they want advanced dev
features.
* We currently use the OpenXR loader lib from it and the headers.
* To use the injected OpenXR API-layers from the SDK (e.g. API
validation layers), the SDK needs to be compiled from this other
repository.

The extra "XR_" prefix in the build option is to avoid mix-ups of OpenXR
with OpenEXR.

Most of this comes from the 2019 GSoC project, "Core Support of Virtual
Reality Headsets through OpenXR"
(https://wiki.blender.org/wiki/User:Severin/GSoC-2019/).

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

Reviewed by: Campbell Barton, Sergey Sharybin, Bastien Montagne, Ray
Molenkamp
March 4, 2020, 12:51 (GMT)
Cleanup: use MEM_recallocN_id utility function
March 4, 2020, 12:48 (GMT)
RNA: ensure missing calls to RNA_enum_item_end crash in debug mode

Would have prevented T74227 from slipping through
since it didn't crash on some systems.
March 4, 2020, 11:24 (GMT)
Fix T74426: Crash in the IK Pose Brush preview with null preview chain

After switching tools, the active vertex can be the same and the cursor
won't update the previews, so the pose_ik_chain_preview will be null.
This often happens in low poly meshes where chances of hovering the same
vertex are high.

Reviewed By: sergey

Maniphest Tasks: T74426

Differential Revision: https://developer.blender.org/D7021
March 4, 2020, 10:46 (GMT)
Cleanup: spelling
March 4, 2020, 10:43 (GMT)
Refactor ID make local to use a single flag parameter.

Instead of using anonymous booleans flags, also allows to keep the same
behavior in all cases, without needing special handling from calling
code for our beloved oddballs object proxies...
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021