error in last commit (wasnt writing NULL when no active property exists)
added id.tag so you can tag any library data - materials, meshes etc
This commit is contained in:
@@ -1834,9 +1834,8 @@ static void rna_generate_property(FILE *f, StructRNA *srna, const char *nest, Pr
|
||||
else fprintf(f, "NULL, ");
|
||||
if(cprop->remove) fprintf(f, "&rna_%s_%s_func, ", srna->identifier, (char*)cprop->remove);
|
||||
else fprintf(f, "NULL, ");
|
||||
|
||||
if(cprop->active) fprintf(f, "(PropertyRNA*)&rna_%s%s_%s, ", srna->identifier, strnest, cprop->active->identifier);
|
||||
|
||||
else fprintf(f, "NULL, ");
|
||||
if(cprop->type) fprintf(f, "&RNA_%s\n", (char*)cprop->type);
|
||||
else fprintf(f, "NULL\n");
|
||||
break;
|
||||
|
||||
@@ -312,6 +312,10 @@ static void rna_def_ID(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Fake User", "Saves this datablock even if it has no users");
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_ID_fake_user_set");
|
||||
|
||||
prop= RNA_def_property(srna, "tag", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", LIB_DOIT);
|
||||
RNA_def_property_ui_text(prop, "Tag", "Tools can use this to tag data, (initial state is undefined).");
|
||||
|
||||
prop= RNA_def_property(srna, "library", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "lib");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
Reference in New Issue
Block a user