Better handling of the ESC key during Freestyle rendering.

This commit is meant to improve the response of the ESC key for stopping Freestyle rendering
throughout the rendering process.  The rendering with Freestyle consists of several steps
including: (1) mesh data loading, (2) winged edge construction, (3) silhouette edge detection,
(4) view map construction, and (5) stroke drawing.  All these steps have been extended to
frequently check if the ESC key is pressed, so that users can abort time-consuming rendering
at any point of time.
This commit is contained in:
2012-07-16 23:29:12 +00:00
parent 9d2a957a0d
commit 5a581c1fd1
13 changed files with 142 additions and 6 deletions

View File

@@ -40,6 +40,8 @@ NodeGroup* BlenderFileLoader::Load()
int id = 0;
for(obi= (ObjectInstanceRen *) _re->instancetable.first; obi; obi=obi->next) {
if (_pRenderMonitor && _pRenderMonitor->testBreak())
break;
if (!(obi->lay & _srl->lay))
continue;
char *name = obi->ob->id.name;