From 63922c5056d16cc91c30ec3476a28d523adbdbea Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 3 Apr 2020 18:24:08 +0200 Subject: Cleanup: Rename ExtensionRNA variables from ext to rna_ext Makes it more clear that code using this is related to the RNA integration of a type. Part of T74432. Also ran clang-format on affected files. --- source/blender/nodes/composite/node_composite_tree.c | 2 +- source/blender/nodes/composite/nodes/node_composite_common.c | 6 +++--- source/blender/nodes/shader/node_shader_tree.c | 2 +- source/blender/nodes/shader/nodes/node_shader_common.c | 6 +++--- source/blender/nodes/texture/node_texture_tree.c | 2 +- source/blender/nodes/texture/nodes/node_texture_common.c | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) (limited to 'source/blender/nodes') diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c index a830f5f1bf9..00c279ab8f6 100644 --- a/source/blender/nodes/composite/node_composite_tree.c +++ b/source/blender/nodes/composite/node_composite_tree.c @@ -228,7 +228,7 @@ void register_node_tree_type_cmp(void) tt->get_from_context = composite_get_from_context; tt->node_add_init = composite_node_add_init; - tt->ext.srna = &RNA_CompositorNodeTree; + tt->rna_ext.srna = &RNA_CompositorNodeTree; ntreeTypeAdd(tt); } diff --git a/source/blender/nodes/composite/nodes/node_composite_common.c b/source/blender/nodes/composite/nodes/node_composite_common.c index 15637506e77..f5eaaef8a31 100644 --- a/source/blender/nodes/composite/nodes/node_composite_common.c +++ b/source/blender/nodes/composite/nodes/node_composite_common.c @@ -46,9 +46,9 @@ void register_node_type_cmp_group(void) ntype.poll_instance = node_group_poll_instance; ntype.insert_link = node_insert_link_default; ntype.update_internal_links = node_update_internal_links_default; - ntype.ext.srna = RNA_struct_find("CompositorNodeGroup"); - BLI_assert(ntype.ext.srna != NULL); - RNA_struct_blender_type_set(ntype.ext.srna, &ntype); + ntype.rna_ext.srna = RNA_struct_find("CompositorNodeGroup"); + BLI_assert(ntype.rna_ext.srna != NULL); + RNA_struct_blender_type_set(ntype.rna_ext.srna, &ntype); node_type_socket_templates(&ntype, NULL, NULL); node_type_size(&ntype, 140, 60, 400); diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c index a19fb30c53b..f79edcadbda 100644 --- a/source/blender/nodes/shader/node_shader_tree.c +++ b/source/blender/nodes/shader/node_shader_tree.c @@ -206,7 +206,7 @@ void register_node_tree_type_sh(void) tt->get_from_context = shader_get_from_context; tt->validate_link = shader_validate_link; - tt->ext.srna = &RNA_ShaderNodeTree; + tt->rna_ext.srna = &RNA_ShaderNodeTree; ntreeTypeAdd(tt); } diff --git a/source/blender/nodes/shader/nodes/node_shader_common.c b/source/blender/nodes/shader/nodes/node_shader_common.c index 0ecb64cd1d1..a864bef60d9 100644 --- a/source/blender/nodes/shader/nodes/node_shader_common.c +++ b/source/blender/nodes/shader/nodes/node_shader_common.c @@ -238,9 +238,9 @@ void register_node_type_sh_group(void) ntype.poll_instance = node_group_poll_instance; ntype.insert_link = node_insert_link_default; ntype.update_internal_links = node_update_internal_links_default; - ntype.ext.srna = RNA_struct_find("ShaderNodeGroup"); - BLI_assert(ntype.ext.srna != NULL); - RNA_struct_blender_type_set(ntype.ext.srna, &ntype); + ntype.rna_ext.srna = RNA_struct_find("ShaderNodeGroup"); + BLI_assert(ntype.rna_ext.srna != NULL); + RNA_struct_blender_type_set(ntype.rna_ext.srna, &ntype); node_type_socket_templates(&ntype, NULL, NULL); node_type_size(&ntype, 140, 60, 400); diff --git a/source/blender/nodes/texture/node_texture_tree.c b/source/blender/nodes/texture/node_texture_tree.c index cf5d39847cf..31f67cb1ffa 100644 --- a/source/blender/nodes/texture/node_texture_tree.c +++ b/source/blender/nodes/texture/node_texture_tree.c @@ -172,7 +172,7 @@ void register_node_tree_type_tex(void) tt->local_merge = local_merge; tt->get_from_context = texture_get_from_context; - tt->ext.srna = &RNA_TextureNodeTree; + tt->rna_ext.srna = &RNA_TextureNodeTree; ntreeTypeAdd(tt); } diff --git a/source/blender/nodes/texture/nodes/node_texture_common.c b/source/blender/nodes/texture/nodes/node_texture_common.c index c83166f5ed6..0324cb38a73 100644 --- a/source/blender/nodes/texture/nodes/node_texture_common.c +++ b/source/blender/nodes/texture/nodes/node_texture_common.c @@ -167,9 +167,9 @@ void register_node_type_tex_group(void) ntype.poll_instance = node_group_poll_instance; ntype.insert_link = node_insert_link_default; ntype.update_internal_links = node_update_internal_links_default; - ntype.ext.srna = RNA_struct_find("TextureNodeGroup"); - BLI_assert(ntype.ext.srna != NULL); - RNA_struct_blender_type_set(ntype.ext.srna, &ntype); + ntype.rna_ext.srna = RNA_struct_find("TextureNodeGroup"); + BLI_assert(ntype.rna_ext.srna != NULL); + RNA_struct_blender_type_set(ntype.rna_ext.srna, &ntype); node_type_socket_templates(&ntype, NULL, NULL); node_type_size(&ntype, 140, 60, 400); -- cgit v1.2.3