minor fixes and debug output

This commit is contained in:
itsmattkc
2019-09-11 17:35:45 +10:00
parent 5fbd90d9f5
commit 1879dac247
5 changed files with 28 additions and 15 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ Block::Block() :
texture_output_->set_data_type(NodeParam::kTexture);
AddParameter(texture_output_);
connect(this, SIGNAL(EdgeAdded(NodeEdgePtr)), this, SLOT(EdgeAddedSlot(NodeEdgePtr)));
connect(this, SIGNAL(EdgeRemoved(NodeEdgePtr)), this, SLOT(EdgeRemovedSlot(NodeEdgePtr)));
connect(this, SIGNAL(EdgeAdded(NodeEdgePtr)), this, SLOT(EdgeAddedSlot(NodeEdgePtr)), Qt::DirectConnection);
connect(this, SIGNAL(EdgeRemoved(NodeEdgePtr)), this, SLOT(EdgeRemovedSlot(NodeEdgePtr)), Qt::DirectConnection);
}
QString Block::Category()
+2 -1
View File
@@ -23,7 +23,8 @@
#include "node/node.h"
NodeOutput::NodeOutput(const QString &id) :
NodeParam(id)
NodeParam(id),
data_type_(kNone)
{
}
+4 -1
View File
@@ -153,7 +153,10 @@ NodeOutput* TrackOutput::track_output()
void TrackOutput::InvalidateCache(const rational &start_range, const rational &end_range, NodeInput *from)
{
// We intercept IC signals from Blocks since we may be performing several options and they may over-signal
if (!block_invalidate_cache_stack_) {
if (block_invalidate_cache_stack_ == 0) {
qDebug() << "Received IC Signal:" << start_range.toDouble() << "to" << end_range.toDouble();
qDebug() << "Limiting IC Signal To:" << qMax(start_range, rational(0)).toDouble() << "to" << qMin(end_range, in()).toDouble();
Node::InvalidateCache(qMax(start_range, rational(0)), qMin(end_range, in()), from);
}
}