diff options
author | Thomas Dinges <blender@dingto.org> | 2009-11-18 08:11:16 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-11-18 08:11:16 +0300 |
commit | 1e1a0078da2e5c1c70ad881d1a45b5e0553a1424 (patch) | |
tree | 9170deb3d6643f5f3aaf850223c65e33b9e090c1 /source/blender/makesrna/intern/rna_ID.c | |
parent | 7807a37b89001a0d7ae28b5f95fc57408bfebe5b (diff) |
* NC_WINDOW Notifier for ID Name property (maybe not the best solution, but as ID blocks can be everything (object name, material, even scene) i chose the window Notifier.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index cb1a1211d24..c43f0e20422 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -30,6 +30,7 @@ #include "RNA_types.h" #include "DNA_ID.h" +#include "WM_types.h" #include "rna_internal.h" @@ -302,6 +303,7 @@ static void rna_def_ID(BlenderRNA *brna) RNA_def_property_string_funcs(prop, "rna_ID_name_get", "rna_ID_name_length", "rna_ID_name_set"); RNA_def_property_string_maxlength(prop, sizeof(((ID*)NULL)->name)-2); RNA_def_struct_name_property(srna, prop); + RNA_def_property_update(prop, NC_WINDOW, NULL); prop= RNA_def_property(srna, "users", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "us"); |