* NC_WINDOW Notifier for ID Name property (maybe not the best solution, but as ID...
authorThomas Dinges <blender@dingto.org>
Wed, 18 Nov 2009 05:11:16 +0000 (05:11 +0000)
committerThomas Dinges <blender@dingto.org>
Wed, 18 Nov 2009 05:11:16 +0000 (05:11 +0000)
source/blender/makesrna/intern/rna_ID.c

index cb1a1211d24cfa27173bd27ce05dfc1150dff110..c43f0e20422a3965732cb58b20961f1608236b3e 100644 (file)
@@ -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");