Blender Git Loki

Blender Git "soc-2021-porting-modifiers-to-nodes-decimate" branch commits.

Page: 10 / 18

July 30, 2021, 14:56 (GMT)
Cleanup: Use asset utility function to get the asset .blend path

For this to work, the utility function needs to be callable without
context, which is only needed for a File Browser specific hack anyway
(doesn't apply to this usage of it).
July 30, 2021, 14:56 (GMT)
Cleanup: use single back-tick quoting in comments

While doxygen supports both, conform to our style guide.

Note that single back-tick's are already used in a majority of comments.
July 30, 2021, 14:56 (GMT)
Cleanup: Fix missing braces warning on Clang
July 30, 2021, 14:56 (GMT)
Cleanup: use '#if 0' for disabling multiple lines
July 30, 2021, 14:56 (GMT)
Asset: Clearly describe RNA property description as temporary

The asset handle design is only temporary (see 35affaa971cf) and this
RNA property is only needed for internal, technical reasons of the asset
view template. So although not nice, at least make it clear in the RNA
property description that this should not be used.
July 30, 2021, 14:56 (GMT)
Cleanup: fix clang-tidy warning modernize-use-nullptr

No functional changes.
July 30, 2021, 14:56 (GMT)
Cleanup: use named enum types.

Added ePreviewRenderMethod and ePreviewType.
July 30, 2021, 14:56 (GMT)
Cleanup: spelling
July 30, 2021, 14:56 (GMT)
Docs: Update RNA to user manual mappings
July 30, 2021, 14:56 (GMT)
Cleanup: Make function static, use const object argument

Also use `const Curve *` instead of `const Object *`, since the
function works at a lower level than objects anyway.

And also remove another unused function. Since this section of code
for converting curves to meshes will likely be replaced, it's nicer to
see which parts actually remain used at this point.
July 30, 2021, 14:56 (GMT)
Cleanup: quiet GCC maybe-uninitialized warning

Function signatures for snap callbacks used `const` incorrectly
which was hidden by casting function types.

This made it seem as if the input arguments wouldn't be change and
wouldn't be initialized.

Name return arguments with an `r_` prefix, order them last,
remove function casts and correct `const` usage.
July 30, 2021, 14:56 (GMT)
Fix T89827: Attribute transfer node crash on mesh with no faces

Just add a check for whether the mesh has faces when retrieving an
attribute on the corner domain. In the future there could be an info
message in the node in this case, since maybe it's not intuitive.
July 30, 2021, 14:56 (GMT)
Fix i18n utils_cli mistake.

Reported by James Monthea (@jmonteath), thanks.
July 30, 2021, 14:56 (GMT)
Fix compile issue.
July 30, 2021, 14:56 (GMT)
Cleanup: use doxygen style parameters in noise.c

These used their own ad-hoc syntax.
July 30, 2021, 14:56 (GMT)
Fix memory leak with asset view template operator properties
July 30, 2021, 14:56 (GMT)
Cleanup: fix clang-tidy readability-else-after-return

No functional changes
July 30, 2021, 14:56 (GMT)
Cleanup: spelling
July 30, 2021, 14:56 (GMT)
Fix T89993: Failed assert drawing single point cyclic splines

The same check used for the curve to mesh node.
July 30, 2021, 14:56 (GMT)
UI: Fix Cycles Materials menu Layout

Fix an incoherence between the Eevee Materials menu and the Cycles Materials menu :

Eevee :
{F10230448}

Cycles :
{F10230449}

Simply Fixed by replacing the Cycles UI code by the Eevee UI code.

Thanks to @Brainzman for helping me create this diff and translate

Reviewed By: Blendify

Differential Revision: https://developer.blender.org/D11979
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021