forked from bartvdbraak/blender
* 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.
This commit is contained in:
parent
7807a37b89
commit
1e1a0078da
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user