forked from bartvdbraak/blender
Cleanup: clang-format
This commit is contained in:
parent
62f5a6bfa7
commit
758c2210ae
@ -242,12 +242,15 @@ ccl_device float3 svm_math_blackbody_color(float t)
|
||||
return make_float3(4.70366907f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
/* Manually align for readability. */
|
||||
/* clang-format off */
|
||||
int i = (t >= 6365.0f) ? 5 :
|
||||
(t >= 3315.0f) ? 4 :
|
||||
(t >= 1902.0f) ? 3 :
|
||||
(t >= 1449.0f) ? 2 :
|
||||
(t >= 1167.0f) ? 1 :
|
||||
0;
|
||||
/* clang-format on */
|
||||
|
||||
ccl_constant float *r = blackbody_table_r[i];
|
||||
ccl_constant float *g = blackbody_table_g[i];
|
||||
|
@ -1102,7 +1102,6 @@ bool BKE_lib_override_library_resync(Main *bmain,
|
||||
BKE_main_id_clear_newpoins(bmain);
|
||||
BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false); /* That one should not be needed in fact. */
|
||||
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
@ -379,7 +379,8 @@ inline bool try_dispatch_float_math_fl3_fl3_fl_to_fl3(const NodeVectorMathOperat
|
||||
|
||||
switch (operation) {
|
||||
case NODE_VECTOR_MATH_REFRACT:
|
||||
return dispatch([](float3 a, float3 b, float c) { return float3::refract(a, b.normalized(), c); });
|
||||
return dispatch(
|
||||
[](float3 a, float3 b, float c) { return float3::refract(a, b.normalized(), c); });
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user