diff options
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp index 97d4fd6c548..9b4f128ff3d 100644 --- a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp +++ b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp @@ -123,6 +123,8 @@ extern "C" { // load mesh if( controller->LoadMesh(re, srl) ) // returns if scene cannot be loaded or if empty return; + if( re->test_break(re->tbh) ) + return; // add style modules FreestyleConfig* config = &srl->freestyleConfig; @@ -234,6 +236,11 @@ extern "C" { // - compute view map prepare(re, srl); + if( re->test_break(re->tbh) ) { + controller->CloseFile(); + break; + } + // render and composite Freestyle result if( controller->_ViewMap ) { |