RNA: disable undo on OperatorProperties and its subclasses.
Since these are temporary properties, changing them shouldn't cause undo pushes. There already is a flag to disable that, but since each operator inherits its own properties from the base, RNA define code also had to be changed to allow inheriting the flag.
This commit is contained in:
@@ -1868,6 +1868,7 @@ static void rna_def_operator(BlenderRNA *brna)
|
||||
RNA_def_struct_idprops_func(srna, "rna_OperatorProperties_idprops");
|
||||
RNA_def_struct_property_tags(srna, rna_enum_operator_property_tags);
|
||||
RNA_def_struct_flag(srna, STRUCT_NO_DATABLOCK_IDPROPERTIES);
|
||||
RNA_def_struct_clear_flag(srna, STRUCT_UNDO);
|
||||
}
|
||||
|
||||
static void rna_def_macro_operator(BlenderRNA *brna)
|
||||
|
||||
Reference in New Issue
Block a user