diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-25 15:12:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-25 15:13:18 +0300 |
commit | 39b85e452faae543d10831e4fa66fdffbc22e0a1 (patch) | |
tree | 2691871c40d3497ece599e31a258dfdb3e5d54db /source | |
parent | 62f2d9b56655ca840b4f883adcc1d331d911444e (diff) |
Fix T44815: Sound bake doesn't check filepath
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_graph/graph_edit.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |