Skip to content

Commit

Permalink
fix EditBlock bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 11, 2022
1 parent c39391e commit 6b770ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Card3D/Card3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ PosMatParam::importChan()
}
}
std::fclose(f);
ImageEffect::EditBlock(*_effect, kParamPosMatImportFile);
ImageEffect::EditBlock eb(*_effect, kParamPosMatImportFile);
_translate->deleteAllKeys();
_rotate->deleteAllKeys();
if (_type == ePosMatCamera && _projection && _projection->_camFocalLength) {
Expand Down
2 changes: 1 addition & 1 deletion CopyRectangle/CopyRectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class CopyRectanglePlugin
OfxPointD origin = getProjectOffset();
OfxPointD p;
// we must denormalise all parameters for which setDefaultCoordinateSystem(eCoordinatesNormalised) couldn't be done
//EditBlock(*this, kParamDefaultsNormalised);
//EditBlock eb(*this, kParamDefaultsNormalised);
p = _btmLeft->getValue();
_btmLeft->setValue(p.x * size.x + origin.x, p.y * size.y + origin.y);
p = _size->getValue();
Expand Down
2 changes: 1 addition & 1 deletion CornerPin/CornerPin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class CornerPinPlugin
OfxPointD origin = getProjectOffset();
OfxPointD p;
// we must denormalise all parameters for which setDefaultCoordinateSystem(eCoordinatesNormalised) couldn't be done
//EditBlock(*this, kParamDefaultsNormalised);
//EditBlock eb(*this, kParamDefaultsNormalised);
for (int i = 0; i < 4; ++i) {
p = _to[i]->getValue();
_to[i]->setValue(p.x * size.x + origin.x, p.y * size.y + origin.y);
Expand Down
2 changes: 1 addition & 1 deletion DenoiseSharpen/DenoiseSharpen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,7 @@ DenoiseSharpenPlugin::analyzeNoiseLevels(const InstanceChangedArgs &args)

// lock values
_analysisLock->setValue(true);
endEditBlock();

progressEndAnalysis();
# ifdef kOfxImageEffectPropInAnalysis // removed from OFX 1.4
getPropertySet().propSetInt(kOfxImageEffectPropInAnalysis, 0, false);
Expand Down
2 changes: 1 addition & 1 deletion SupportExt

0 comments on commit 6b770ba

Please sign in to comment.