Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-04-02 16:37:03 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-04-02 16:37:03 +0400
commit824304850710b7897baa640ea6908483d765ff2d (patch)
treeaa00edcd4ad5cde22bea3774da9d9a5c119f7a45 /source/blender/makesrna/intern/rna_timeline.c
parentb07f9446c7b28ec1a8a72c29f44af505fdfe346e (diff)
Fix #30767: VSE timeline marker update
Patch by Dan Eicher, thanks!
Diffstat (limited to 'source/blender/makesrna/intern/rna_timeline.c')
-rw-r--r--source/blender/makesrna/intern/rna_timeline.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_timeline.c b/source/blender/makesrna/intern/rna_timeline.c
index 93c28ce2720..a33e415ce11 100644
--- a/source/blender/makesrna/intern/rna_timeline.c
+++ b/source/blender/makesrna/intern/rna_timeline.c
@@ -37,6 +37,14 @@
#ifdef RNA_RUNTIME
+#include "WM_api.h"
+
+static void rna_TimelineMarker_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
+{
+ WM_main_add_notifier(NC_SCENE|ND_MARKERS, NULL);
+ WM_main_add_notifier(NC_ANIMATION|ND_MARKERS, NULL);
+}
+
#else
static void rna_def_timeline_marker(BlenderRNA *brna)
@@ -52,16 +60,16 @@ static void rna_def_timeline_marker(BlenderRNA *brna)
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
RNA_def_property_ui_text(prop, "Name", "");
RNA_def_struct_name_property(srna, prop);
- RNA_def_property_update(prop, NC_ANIMATION, NULL);
+ RNA_def_property_update(prop, 0, "rna_TimelineMarker_update");
prop = RNA_def_property(srna, "frame", PROP_INT, PROP_TIME);
RNA_def_property_ui_text(prop, "Frame", "The frame on which the timeline marker appears");
- RNA_def_property_update(prop, NC_ANIMATION, NULL);
+ RNA_def_property_update(prop, 0, "rna_TimelineMarker_update");
prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", 1 /*SELECT*/);
RNA_def_property_ui_text(prop, "Select", "Marker selection state");
- RNA_def_property_update(prop, NC_ANIMATION, NULL);
+ RNA_def_property_update(prop, 0, "rna_TimelineMarker_update");
#ifdef DURIAN_CAMERA_SWITCH
prop = RNA_def_property(srna, "camera", PROP_POINTER, PROP_NONE);