diff options
author | Hans Goudey <h.goudey@me.com> | 2022-01-03 22:52:39 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-01-03 22:52:55 +0300 |
commit | 675d3cdd699d8c59cd886bcf5849e25002a69792 (patch) | |
tree | 15a25b1407896d872bf8d2e96ae03775a9e9e056 /source/blender/nodes | |
parent | 4e44cfa3d9969f0f3e175b53f116f377278a3245 (diff) |
Cleanup: Clang tidy
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_fresnel.cc | 2 | ||||
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_vector_transform.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_fresnel.cc b/source/blender/nodes/shader/nodes/node_shader_fresnel.cc index a6317c1adba..0a06cec407b 100644 --- a/source/blender/nodes/shader/nodes/node_shader_fresnel.cc +++ b/source/blender/nodes/shader/nodes/node_shader_fresnel.cc @@ -71,7 +71,7 @@ void register_node_type_sh_fresnel() sh_node_type_base(&ntype, SH_NODE_FRESNEL, "Fresnel", NODE_CLASS_INPUT, 0); node_type_socket_templates(&ntype, file_ns::sh_node_fresnel_in, file_ns::sh_node_fresnel_out); node_type_gpu(&ntype, file_ns::node_shader_gpu_fresnel); - node_type_exec(&ntype, NULL, NULL, file_ns::node_shader_exec_fresnel); + node_type_exec(&ntype, nullptr, nullptr, file_ns::node_shader_exec_fresnel); nodeRegisterType(&ntype); } diff --git a/source/blender/nodes/shader/nodes/node_shader_vector_transform.cc b/source/blender/nodes/shader/nodes/node_shader_vector_transform.cc index fc6a05d93b6..67766900189 100644 --- a/source/blender/nodes/shader/nodes/node_shader_vector_transform.cc +++ b/source/blender/nodes/shader/nodes/node_shader_vector_transform.cc @@ -100,7 +100,7 @@ static int gpu_shader_vect_transform(GPUMaterial *mat, const char *vtransform = "direction_transform_m4v3"; const char *ptransform = "point_transform_m4v3"; - const char *func_name = 0; + const char *func_name = nullptr; NodeShaderVectTransform *nodeprop = (NodeShaderVectTransform *)node->storage; |