Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2008-11-29 04:04:15 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2008-11-29 04:04:15 +0300
commit6cb554fa9666d7f3f7d558b50673f7379b9bb759 (patch)
tree4b206fbdb27604564d6962861bb5e4d6d1172f90 /source/blender/makesrna/intern/rna_nodetree.c
parent001f9558a310ed05671ce7324ac02de410279259 (diff)
* start RNA_screen
* nicer RNA names for NodeTree and Node
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index bef4ec42009..72f7534fa4d 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -40,15 +40,17 @@ void RNA_def_nodetree(BlenderRNA *brna)
StructRNA *srna;
PropertyRNA *prop;
- srna= RNA_def_struct(brna, "bNodeTree", "ID", "Node Tree");
+ srna= RNA_def_struct(brna, "NodeTree", "ID", "Node Tree");
+ RNA_def_struct_sdna(srna, "bNodeTree");
prop= RNA_def_property(srna, "Nodes", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "nodes", NULL);
- RNA_def_property_struct_type(prop, "bNode");
+ RNA_def_property_struct_type(prop, "Node");
RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
RNA_def_property_ui_text(prop, "Nodes", "Nodes in the Node Tree.");
- srna= RNA_def_struct(brna, "bNode", NULL, "Node");
+ srna= RNA_def_struct(brna, "Node", NULL, "Node");
+ RNA_def_struct_sdna(srna, "bNode");
prop= RNA_def_property(srna, "location", PROP_FLOAT, PROP_VECTOR);
RNA_def_property_float_sdna(prop, NULL, "locx");