Fix: Renaming Grease Pencil layers doesn't update the Dopesheet Channels Region
This commit is contained in:
@@ -296,6 +296,10 @@ static void action_channel_region_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case NC_GPENCIL:
|
||||||
|
if (wmn->action == NA_RENAME)
|
||||||
|
ED_region_tag_redraw(ar);
|
||||||
|
break;
|
||||||
case NC_ID:
|
case NC_ID:
|
||||||
if (wmn->action == NA_RENAME)
|
if (wmn->action == NA_RENAME)
|
||||||
ED_region_tag_redraw(ar);
|
ED_region_tag_redraw(ar);
|
||||||
|
|||||||
@@ -698,7 +698,7 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
|
|||||||
RNA_def_property_ui_text(prop, "Info", "Layer name");
|
RNA_def_property_ui_text(prop, "Info", "Layer name");
|
||||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_GPencilLayer_info_set");
|
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_GPencilLayer_info_set");
|
||||||
RNA_def_struct_name_property(srna, prop);
|
RNA_def_struct_name_property(srna, prop);
|
||||||
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
|
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA | NA_RENAME, NULL);
|
||||||
|
|
||||||
/* Frames */
|
/* Frames */
|
||||||
prop = RNA_def_property(srna, "frames", PROP_COLLECTION, PROP_NONE);
|
prop = RNA_def_property(srna, "frames", PROP_COLLECTION, PROP_NONE);
|
||||||
|
|||||||
Reference in New Issue
Block a user