Cleanup: clang-tidy
This commit is contained in:
@@ -97,7 +97,7 @@ static void raycast_to_mesh(const Mesh *mesh,
|
||||
BVHTreeFromMesh tree_data;
|
||||
BKE_bvhtree_from_mesh_get(&tree_data, const_cast<Mesh *>(mesh), BVHTREE_FROM_LOOPTRI, 4);
|
||||
|
||||
if (tree_data.tree != NULL) {
|
||||
if (tree_data.tree != nullptr) {
|
||||
for (const int i : ray_origins.index_range()) {
|
||||
const float ray_length = ray_lengths[i];
|
||||
const float3 ray_origin = ray_origins[i];
|
||||
|
@@ -134,7 +134,7 @@ void register_node_type_sh_mix_rgb(void)
|
||||
sh_node_type_base(&ntype, SH_NODE_MIX_RGB, "Mix", NODE_CLASS_OP_COLOR, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_mix_rgb_in, sh_node_mix_rgb_out);
|
||||
node_type_label(&ntype, node_blend_label);
|
||||
node_type_exec(&ntype, NULL, NULL, node_shader_exec_mix_rgb);
|
||||
node_type_exec(&ntype, nullptr, nullptr, node_shader_exec_mix_rgb);
|
||||
node_type_gpu(&ntype, gpu_shader_mix_rgb);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
Reference in New Issue
Block a user