From 39b85e452faae543d10831e4fa66fdffbc22e0a1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 25 May 2015 22:12:18 +1000 Subject: Fix T44815: Sound bake doesn't check filepath --- source/blender/editors/space_graph/graph_edit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index a8cb4ce56ea..3de3ecebc44 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -1179,6 +1179,11 @@ static int graphkeys_sound_bake_exec(bContext *C, wmOperator *op) RNA_string_get(op->ptr, "filepath", path); + if (!BLI_is_file(path)) { + BKE_reportf(op->reports, RPT_ERROR, "File not found '%s'", path); + return OPERATOR_CANCELLED; + } + scene = ac.scene; /* current scene */ /* store necessary data for the baking steps */ -- cgit v1.2.3