Blender Git Loki

Git Commits -> Revision 765eba5

Revision 765eba5 by Sergey Sharybin (master)
October 19, 2021, 09:59 (GMT)
Cleanup: More readable Cycles OSL BSDF definition

A Clang-Format configuration to make the closure definition block to
be properly recognized as such.

Also small wrapper macro to avoid comma in the actual definition code
which was causing unwanted indentation of parameters definition.

Requires Clang-Format 7 or newer. The version we ship in the libs is
12, so for recommended development setup it should all be good.

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

Commit Details:

Full Hash: 765eba5a6e0322db7ffdc0fb582f8c9645bbbb6b
Parent Commit: abc3128
Lines Changed: +133, -127

3 Modified Paths:

/.clang-format (+3, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+127, -127) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021