[Bf-blender-cvs] [b5b4802af6c] blender2.8: Fix: Copy and paste error from earlier commit adding message_subscriber callbacks

Joshua Leung noreply at git.blender.org
Fri Apr 20 19:06:59 CEST 2018


Commit: b5b4802af6cda44b48f845c2f866c107c2d46a7c
Author: Joshua Leung
Date:   Fri Apr 20 17:08:06 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb5b4802af6cda44b48f845c2f866c107c2d46a7c

Fix: Copy and paste error from earlier commit adding message_subscriber callbacks

All of these were previously using the timeline theme, instead of the one
for each respective editor

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

M	source/blender/editors/space_action/space_action.c
M	source/blender/editors/space_graph/space_graph.c
M	source/blender/editors/space_nla/space_nla.c
M	source/blender/editors/space_sequencer/space_sequencer.c

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

diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 82547d6f8bc..b68300e0d52 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -436,7 +436,7 @@ static void saction_main_region_message_subscribe(
         struct wmMsgBus *mbus)
 {
 	PointerRNA ptr;
-	RNA_pointer_create(&screen->id, &RNA_SpaceTimeline, sa->spacedata.first, &ptr);
+	RNA_pointer_create(&screen->id, &RNA_SpaceDopeSheetEditor, sa->spacedata.first, &ptr);
 
 	wmMsgSubscribeValue msg_sub_value_region_tag_redraw = {
 		.owner = ar,
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c
index 739883237df..b09de2470a2 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -491,7 +491,7 @@ static void graph_region_message_subscribe(
         struct wmMsgBus *mbus)
 {
 	PointerRNA ptr;
-	RNA_pointer_create(&screen->id, &RNA_SpaceTimeline, sa->spacedata.first, &ptr);
+	RNA_pointer_create(&screen->id, &RNA_SpaceGraphEditor, sa->spacedata.first, &ptr);
 
 	wmMsgSubscribeValue msg_sub_value_region_tag_redraw = {
 		.owner = ar,
diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c
index 4fc2ce07b6c..bf831f16108 100644
--- a/source/blender/editors/space_nla/space_nla.c
+++ b/source/blender/editors/space_nla/space_nla.c
@@ -455,7 +455,7 @@ static void nla_main_region_message_subscribe(
         struct wmMsgBus *mbus)
 {
 	PointerRNA ptr;
-	RNA_pointer_create(&screen->id, &RNA_SpaceTimeline, sa->spacedata.first, &ptr);
+	RNA_pointer_create(&screen->id, &RNA_SpaceNLA, sa->spacedata.first, &ptr);
 
 	wmMsgSubscribeValue msg_sub_value_region_tag_redraw = {
 		.owner = ar,
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 27eb3c56f95..a8344a1fbd0 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -543,7 +543,7 @@ static void sequencer_main_region_message_subscribe(
         struct wmMsgBus *mbus)
 {
 	PointerRNA ptr;
-	RNA_pointer_create(&screen->id, &RNA_SpaceTimeline, sa->spacedata.first, &ptr);
+	RNA_pointer_create(&screen->id, &RNA_SpaceSequenceEditor, sa->spacedata.first, &ptr);
 
 	wmMsgSubscribeValue msg_sub_value_region_tag_redraw = {
 		.owner = ar,



More information about the Bf-blender-cvs mailing list