Revision: 25433 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25433 Author: campbellbarton Date: 2009-12-17 12:16:28 +0100 (Thu, 17 Dec 2009)
Log Message: ----------- remove warnings. Sequencer selection for fcurve view didnt work in metastrips. - added RNA_property_string_set to the RNA_access.h - include BKE_animsys.h in pipeline.c for sequencer update, hope these are ok. Modified Paths: -------------- trunk/blender/source/blender/blenkernel/BKE_sequencer.h trunk/blender/source/blender/blenkernel/intern/scene.c trunk/blender/source/blender/blenkernel/intern/sequencer.c trunk/blender/source/blender/blenloader/intern/readfile.c trunk/blender/source/blender/editors/animation/anim_filter.c trunk/blender/source/blender/editors/screen/screen_ops.c trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c trunk/blender/source/blender/makesrna/RNA_access.h trunk/blender/source/blender/render/intern/source/pipeline.c Modified: trunk/blender/source/blender/blenkernel/BKE_sequencer.h =================================================================== --- trunk/blender/source/blender/blenkernel/BKE_sequencer.h 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/blenkernel/BKE_sequencer.h 2009-12-17 11:16:28 UTC (rev 25433) @@ -192,7 +192,7 @@ void clear_scene_in_allseqs(struct Scene *sce); -struct Sequence *get_seq_by_name(struct Scene *scene, const char *name); +struct Sequence *get_seq_by_name(struct ListBase *seqbase, const char *name, int recursive); struct Sequence *active_seq_get(struct Scene *scene); void active_seq_set(struct Scene *scene, struct Sequence *seq); Modified: trunk/blender/source/blender/blenkernel/intern/scene.c =================================================================== --- trunk/blender/source/blender/blenkernel/intern/scene.c 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/blenkernel/intern/scene.c 2009-12-17 11:16:28 UTC (rev 25433) @@ -350,7 +350,7 @@ sce->r.bake_normal_space= R_BAKE_SPACE_TANGENT; sce->r.scemode= R_DOCOMP|R_DOSEQ|R_EXTENSION; - sce->r.stamp= R_STAMP_TIME|R_STAMP_FRAME|R_STAMP_DATE|R_STAMP_SCENE|R_STAMP_CAMERA; + sce->r.stamp= R_STAMP_TIME|R_STAMP_FRAME|R_STAMP_DATE|R_STAMP_SCENE|R_STAMP_CAMERA|R_STAMP_RENDERTIME; sce->r.threads= 1; Modified: trunk/blender/source/blender/blenkernel/intern/sequencer.c =================================================================== --- trunk/blender/source/blender/blenkernel/intern/sequencer.c 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/blenkernel/intern/sequencer.c 2009-12-17 11:16:28 UTC (rev 25433) @@ -3575,18 +3575,20 @@ } -Sequence *get_seq_by_name(Scene *scene, const char *name) +Sequence *get_seq_by_name(ListBase *seqbase, const char *name, int recursive) { - Sequence *seq=NULL; - Editing *ed= seq_give_editing(scene, FALSE); - - if(ed==NULL) return NULL; - - for (seq=ed->seqbase.first; seq; seq=seq->next) { - if (strcmp(name, seq->name+2) == 0) - break; + Sequence *iseq=NULL; + Sequence *rseq=NULL; + + for (iseq=seqbase->first; iseq; iseq=iseq->next) { + if (strcmp(name, iseq->name+2) == 0) + return iseq; + else if(recursive && (iseq->seqbase.first) && (rseq=get_seq_by_name(&iseq->seqbase, name, 1))) { + return rseq; + } } - return seq; + + return NULL; } Modified: trunk/blender/source/blender/blenloader/intern/readfile.c =================================================================== --- trunk/blender/source/blender/blenloader/intern/readfile.c 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/blenloader/intern/readfile.c 2009-12-17 11:16:28 UTC (rev 25433) @@ -4289,7 +4289,6 @@ Editing *ed; Sequence *seq; MetaStack *ms; - TimeMarker *marker; sce->theDag = NULL; sce->dagisvalid = 0; Modified: trunk/blender/source/blender/editors/animation/anim_filter.c =================================================================== --- trunk/blender/source/blender/editors/animation/anim_filter.c 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/editors/animation/anim_filter.c 2009-12-17 11:16:28 UTC (rev 25433) @@ -778,16 +778,17 @@ } } else if (GS(owner_id->name) == ID_SCE) { - Scene *sce = (Scene *)owner_id; + Scene *scene = (Scene *)owner_id; /* only consider if F-Curve involves sequence_editor.sequences */ if ((fcu->rna_path) && strstr(fcu->rna_path, "sequences_all")) { + Editing *ed= seq_give_editing(scene, FALSE); Sequence *seq; char *seq_name; /* get strip name, and check if this strip is selected */ seq_name= BLI_getQuotedStr(fcu->rna_path, "sequences_all["); - seq = get_seq_by_name(sce, seq_name); + seq = get_seq_by_name(ed->seqbasep, seq_name, FALSE); if (seq_name) MEM_freeN(seq_name); /* can only add this F-Curve if it is selected */ Modified: trunk/blender/source/blender/editors/screen/screen_ops.c =================================================================== --- trunk/blender/source/blender/editors/screen/screen_ops.c 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/editors/screen/screen_ops.c 2009-12-17 11:16:28 UTC (rev 25433) @@ -2339,9 +2339,6 @@ ScreenAnimData *sad= wt->customdata; ScrArea *sa; int sync; -#ifdef DURIAN_CAMERA_SWITCH - Object *camera_orig= scene->camera; -#endif /* sync, don't sync, or follow scene setting */ if(sad->flag & ANIMPLAY_FLAG_SYNC) sync= 1; Modified: trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c =================================================================== --- trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c 2009-12-17 11:16:28 UTC (rev 25433) @@ -2370,7 +2370,7 @@ /* view_all operator */ static int sequencer_view_toggle_exec(bContext *C, wmOperator *op) { - SpaceSeq *sseq= CTX_wm_space_data(C); + SpaceSeq *sseq= (SpaceSeq *)CTX_wm_space_data(C); sseq->view++; if (sseq->view > SEQ_VIEW_SEQUENCE_PREVIEW) sseq->view = SEQ_VIEW_SEQUENCE; Modified: trunk/blender/source/blender/makesrna/RNA_access.h =================================================================== --- trunk/blender/source/blender/makesrna/RNA_access.h 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/makesrna/RNA_access.h 2009-12-17 11:16:28 UTC (rev 25433) @@ -686,6 +686,7 @@ void RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop, char *value); char *RNA_property_string_get_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen); +void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *value); int RNA_property_string_length(PointerRNA *ptr, PropertyRNA *prop); // TODO: get default strings... Modified: trunk/blender/source/blender/render/intern/source/pipeline.c =================================================================== --- trunk/blender/source/blender/render/intern/source/pipeline.c 2009-12-17 10:47:55 UTC (rev 25432) +++ trunk/blender/source/blender/render/intern/source/pipeline.c 2009-12-17 11:16:28 UTC (rev 25433) @@ -50,6 +50,7 @@ #include "BKE_writeavi.h" /* <------ should be replaced once with generic movie module */ #include "BKE_sequencer.h" #include "BKE_pointcache.h" +#include "BKE_animsys.h" /* <------ should this be here?, needed for sequencer update */ #include "MEM_guardedalloc.h" @@ -2441,7 +2442,7 @@ if(recurs_depth==0) { /* otherwise sequencer animation isnt updated */ - BKE_animsys_evaluate_all_animation(G.main, frame_to_float(re->scene, cfra)); + BKE_animsys_evaluate_all_animation(G.main, (float)cfra); // XXX, was frame_to_float(re->scene, cfra) } recurs_depth++; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs