[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24628] trunk/blender/source/blender/ makesrna/intern/rna_ID.c: * 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.
Thomas Dinges
dingto at gmx.de
Wed Nov 18 06:11:16 CET 2009
Revision: 24628
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24628
Author: dingto
Date: 2009-11-18 06:11:16 +0100 (Wed, 18 Nov 2009)
Log Message:
-----------
* 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.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_ID.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_ID.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_ID.c 2009-11-18 01:30:28 UTC (rev 24627)
+++ trunk/blender/source/blender/makesrna/intern/rna_ID.c 2009-11-18 05:11:16 UTC (rev 24628)
@@ -30,6 +30,7 @@
#include "RNA_types.h"
#include "DNA_ID.h"
+#include "WM_types.h"
#include "rna_internal.h"
@@ -302,6 +303,7 @@
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");
More information about the Bf-blender-cvs
mailing list