diff options
-rw-r--r-- | source/blender/quicktime/apple/qtkit_export.m | 17 | ||||
-rw-r--r-- | source/blender/quicktime/quicktime_export.h | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/source/blender/quicktime/apple/qtkit_export.m b/source/blender/quicktime/apple/qtkit_export.m index 1466d3a3a09..8a537617348 100644 --- a/source/blender/quicktime/apple/qtkit_export.m +++ b/source/blender/quicktime/apple/qtkit_export.m @@ -153,6 +153,23 @@ void makeqtstring (RenderData *rd, char *string) { } } +void filepath_qt(char *string, RenderData *rd) { + char txt[64]; + + if (string==0) return; + + strcpy(string, rd->pic); + BLI_convertstringcode(string, G.sce); + + BLI_make_existing_file(string); + + if (BLI_strcasecmp(string + strlen(string) - 4, ".mov")) { + sprintf(txt, "%04d_%04d.mov", (rd->sfra) , (rd->efra) ); + strcat(string, txt); + } +} + + #pragma mark export functions int start_qt(struct Scene *scene, struct RenderData *rd, int rectx, int recty, ReportList *reports) diff --git a/source/blender/quicktime/quicktime_export.h b/source/blender/quicktime/quicktime_export.h index cf4f55769ba..33c9a85910f 100644 --- a/source/blender/quicktime/quicktime_export.h +++ b/source/blender/quicktime/quicktime_export.h @@ -50,7 +50,7 @@ struct ReportList; int start_qt(struct Scene *scene, struct RenderData *rd, int rectx, int recty, struct ReportList *reports); //for movie handle (BKE writeavi.c now) int append_qt(struct RenderData *rd, int frame, int *pixels, int rectx, int recty, struct ReportList *reports); void end_qt(void); -static void filepath_qt(char *string, struct RenderData *rd); +void filepath_qt(char *string, struct RenderData *rd); /*RNA helper functions */ void quicktime_verify_image_type(struct RenderData *rd); //used by RNA for defaults values init, if needed |