From ef8a6e5c846ea9c10beadcbfb9096443687faf99 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 22 Sep 2010 08:10:46 +0000 Subject: [PATCH] RNA renaming nodetree to node_tree * previously some were left as nodetree, that is not only inconsistent, but it was also raising one of those RNA property not found errors) --- source/blender/makesrna/intern/rna_scene.c | 3 ++- source/blender/makesrna/intern/rna_space.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 6d0c197a6fb..eba441ad82f 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -3224,7 +3224,8 @@ void RNA_def_scene(BlenderRNA *brna) /* Nodes (Compositing) */ - prop= RNA_def_property(srna, "nodetree", PROP_POINTER, PROP_NONE); + prop= RNA_def_property(srna, "node_tree", PROP_POINTER, PROP_NONE); + RNA_def_property_pointer_sdna(prop, NULL, "nodetree"); RNA_def_property_ui_text(prop, "Node Tree", "Compositing node tree"); prop= RNA_def_property(srna, "use_nodes", PROP_BOOLEAN, PROP_NONE); diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 780cc31edea..3d68a286b41 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2209,7 +2209,8 @@ static void rna_def_space_node(BlenderRNA *brna) RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "ID From", "Datablock from which the edited datablock is linked"); - prop= RNA_def_property(srna, "nodetree", PROP_POINTER, PROP_NONE); + prop= RNA_def_property(srna, "node_tree", PROP_POINTER, PROP_NONE); + RNA_def_property_pointer_sdna(prop, NULL, "nodetree"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Node Tree", "Node tree being displayed and edited");