Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2015-04-29 17:18:18 +0300
committerDalai Felinto <dfelinto@gmail.com>2015-04-29 17:18:22 +0300
commitb033736eb7ea65d47bc3cb13605df176c490efe1 (patch)
treea586bf6439a119a2621e23f63349419c1f2dfd2d /source/blender/compositor/operations/COM_CompositorOperation.cpp
parent3acc1ba49c95786841608c0b516a7fd0879bad76 (diff)
Multi-View: new util functions RE_RenderViewGetById() and RE_RenderViewGetByName()
Both functions try to find a valid RenderView and if they can't they fallback to the first RenderView of the RenderResult
Diffstat (limited to 'source/blender/compositor/operations/COM_CompositorOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_CompositorOperation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_CompositorOperation.cpp b/source/blender/compositor/operations/COM_CompositorOperation.cpp
index eacbdf91be2..76f74c144f6 100644
--- a/source/blender/compositor/operations/COM_CompositorOperation.cpp
+++ b/source/blender/compositor/operations/COM_CompositorOperation.cpp
@@ -82,7 +82,7 @@ void CompositorOperation::deinitExecution()
RenderResult *rr = RE_AcquireResultWrite(re);
if (rr) {
- RenderView *rv = (RenderView *)BLI_findstring(&rr->views, this->m_viewName, offsetof(RenderView, name));
+ RenderView *rv = RE_RenderViewGetByName(rr, this->m_viewName);
if (rv->rectf != NULL) {
MEM_freeN(rv->rectf);