[Bf-blender-cvs] [ee509b4] master: Fix: Renaming Grease Pencil layers doesn't update the Dopesheet Channels Region

Joshua Leung noreply at git.blender.org
Mon Feb 8 14:46:58 CET 2016


Commit: ee509b4cb7fb71f48a530d56ba506a01cce82bcc
Author: Joshua Leung
Date:   Tue Feb 9 00:05:09 2016 +1300
Branches: master
https://developer.blender.org/rBee509b4cb7fb71f48a530d56ba506a01cce82bcc

Fix: Renaming Grease Pencil layers doesn't update the Dopesheet Channels Region

===================================================================

M	source/blender/editors/space_action/space_action.c
M	source/blender/makesrna/intern/rna_gpencil.c

===================================================================

diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 09746b6..53c5a00 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -296,6 +296,10 @@ static void action_channel_region_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(
 					break;
 			}
 			break;
+		case NC_GPENCIL:
+			if (wmn->action == NA_RENAME)
+				ED_region_tag_redraw(ar);
+			break;
 		case NC_ID:
 			if (wmn->action == NA_RENAME)
 				ED_region_tag_redraw(ar);
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 2bce9c2..ab8a708 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -698,7 +698,7 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
 	RNA_def_property_ui_text(prop, "Info", "Layer name");
 	RNA_def_property_string_funcs(prop, NULL, NULL, "rna_GPencilLayer_info_set");
 	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 */
 	prop = RNA_def_property(srna, "frames", PROP_COLLECTION, PROP_NONE);




More information about the Bf-blender-cvs mailing list