Skip to content

Commit

Permalink
Bug fix: map to clip pref only for color plane or if the plug-in does…
Browse files Browse the repository at this point in the history
… not use fetchImagePlane
  • Loading branch information
MrKepzie committed Apr 17, 2016
1 parent d3bb6d9 commit 3ae8897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/OfxClipInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ OfxClipInstance::getInputImageInternal(const OfxTime time,
//If components param is not set (i.e: the plug-in uses regular clipGetImage call) then figure out the plane from the TLS set in OfxEffectInstance::render
//otherwise use the param sent by the plug-in call of clipGetImagePlane

bool isMultiplanar = effect->isMultiPlanar();
//bool isMultiplanar = effect->isMultiPlanar();

ImageComponents comp;
if (!ofxPlane) {
Expand Down Expand Up @@ -797,7 +797,7 @@ OfxClipInstance::getInputImageInternal(const OfxTime time,

//If the plug-in used fetchImage and not fetchImagePlane it is expected that we return
//an image mapped to the clip components
const bool mapImageToClipPref = !isMultiplanar;
const bool mapImageToClipPref = !ofxPlane || *ofxPlane == kFnOfxImagePlaneColour;
ImagePtr image = effect->getImage(inputnb, time, renderScale, view,
optionalBounds ? &bounds : NULL,
&comp,
Expand Down

0 comments on commit 3ae8897

Please sign in to comment.