RNA: LibraryWeakReference: make path and ID name editable.
There is no real reason to keep these read-only, they are not exposed in the UI anyway, and being able to edit them can become necessary in a pipeline mamangement context.
This commit is contained in:
committed by
Philipp Oeser
parent
f451b984ce
commit
657c1f6912
@@ -2593,12 +2593,10 @@ static void rna_def_library_weak_reference(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "filepath", PROP_STRING, PROP_FILEPATH);
|
||||
RNA_def_property_string_sdna(prop, nullptr, "library_filepath");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "File Path", "Path to the library .blend file");
|
||||
|
||||
prop = RNA_def_property(srna, "id_name", PROP_STRING, PROP_FILEPATH);
|
||||
RNA_def_property_string_sdna(prop, nullptr, "library_id_name");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(
|
||||
prop,
|
||||
"ID name",
|
||||
|
||||
Reference in New Issue
Block a user