Skip to content

Commit

Permalink
Write comments to ensure deletion of qDebug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlamhauge committed Dec 30, 2022
1 parent b684710 commit 06705d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions core_lib/src/managers/layermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void LayerManager::setCurrentLayer(int layerIndex)
mLastCameraLayerIdx = layerIndex;
}

// TODO : erase the following. Only made to test BLUR calculations!
if (currentLayer()->type() == Layer::BITMAP)
{
LayerBitmap* layerBit = static_cast<LayerBitmap*>(editor()->layers()->currentLayer());
Expand Down
4 changes: 2 additions & 2 deletions core_lib/src/structure/layerbitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ GNU General Public License for more details.
*/
#include "layerbitmap.h"

#include <QDebug>
//#include <QDebug>
#include <QDir>
#include <QFile>
#include "keyframe.h"
Expand Down Expand Up @@ -67,7 +67,7 @@ qreal LayerBitmap::getBlur(qreal dist, int outputWidth, int currFrameWidth, qrea
return 0.0;
qreal dof_near = std::getDOF_near(hf_dist, mStandardFocalLength * factor, dist);
qreal dof_far = std::getDOF_far(hf_dist, mStandardFocalLength * factor, dist);
qDebug() << "aperture: " << aperture << " HfDist: " << hf_dist << " Layer-dist: " << getDistance() << " Cam-dist: " << dist << " dof_near: " << dof_near << " dof_far: " << dof_far;
// qDebug() << "aperture: " << aperture << " HfDist: " << hf_dist << " Layer-dist: " << getDistance() << " Cam-dist: " << dist << " dof_near: " << dof_near << " dof_far: " << dof_far;

if (dof_near <= getDistance() && getDistance() <= dof_far)
return 0.0;
Expand Down

0 comments on commit 06705d0

Please sign in to comment.