diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2016-05-05 17:09:22 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2016-05-05 17:15:52 +0300 |
commit | c8e9832be3ad2a86dc035a413a5be7469685636e (patch) | |
tree | 71d22a0af77ed749e98557620d437befe0c6703d /source/blender/freestyle/intern/application/Controller.cpp | |
parent | 6f83710af94a9f6d117ef60537329941cd8614fa (diff) |
Fix T48320: Freestyle renders wrong edges of objects which in the other RenderLayer.
FSAA sample files in EXR format are no longer always updated (after some
changes between 2.73 and 2.74 releases), and the reported bug was caused
by old samples from a previous frame that were being merged by mistake.
The present revision addresses the documented issue by entirely skipping
the rendering of auto-generated scenes when there are no Freestyle strokes
to render, which suppresses sample merging of the render layers that were
not rendered.
Diffstat (limited to 'source/blender/freestyle/intern/application/Controller.cpp')
-rw-r--r-- | source/blender/freestyle/intern/application/Controller.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index 136fec3dd1c..beb85798223 100644 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -864,10 +864,10 @@ bool Controller::getComputeSteerableViewMapFlag() const return _ComputeSteerableViewMap; } -void Controller::DrawStrokes() +int Controller::DrawStrokes() { if (_ViewMap == 0) - return; + return 0; if (G.debug & G_DEBUG_FREESTYLE) { cout << "\n=== Stroke drawing ===" << endl; @@ -875,12 +875,14 @@ void Controller::DrawStrokes() _Chrono.start(); _Canvas->Draw(); real d = _Chrono.stop(); + int strokeCount = _Canvas->getStrokeCount(); if (G.debug & G_DEBUG_FREESTYLE) { cout << "Strokes generation : " << d << endl; - cout << "Stroke count : " << _Canvas->getStrokeCount() << endl; + cout << "Stroke count : " << strokeCount << endl; } resetModified(); DeleteViewMap(); + return strokeCount; } void Controller::ResetRenderCount() |