diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-29 03:23:47 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-29 03:23:47 +0400 |
commit | a591a47c4337b62304a1d69b0e7de009bf3742bd (patch) | |
tree | 12e8c556da00b868b2c0015669fd0b4c501a0fc1 /source/blender/makesrna/intern/rna_nodetree.c | |
parent | 9cc638fb161c1a9795dc3351520ad16c573b4f1f (diff) |
RNA:
* Automatically do us++ and us-- reference counting in ID pointer
set functions.
* Added an enum property callback to dynamically vary the list of
available items.
* Added some functions to do removes on pointers and collections
runtime defined for RNA and using ID properties.
* Constraints now have owner/target space wrapped, and most
pointers made editable. They can be ported to use python layouts.
* Also other pointers made editable that I think are see now with
the automatic reference counting.
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index be3e429c1a2..76baed46666 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -333,6 +333,7 @@ static void def_sh_texture(BlenderRNA *brna, int id) prop= RNA_def_property(srna, "texture", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "id"); RNA_def_property_struct_type(prop, "Texture"); + RNA_def_property_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Texture", ""); prop= RNA_def_property(srna, "node_output", PROP_INT, PROP_NONE); @@ -350,6 +351,7 @@ static void def_sh_material(BlenderRNA *brna, int id) prop= RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "id"); RNA_def_property_struct_type(prop, "Material"); + RNA_def_property_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Material", ""); prop= RNA_def_property(srna, "diffuse", PROP_BOOLEAN, PROP_NONE); |