minor improvements

This commit is contained in:
itsmattkc
2019-09-20 04:45:17 +10:00
parent 03d81c7003
commit 814ee14c0b
4 changed files with 8 additions and 10 deletions
+5
View File
@@ -61,6 +61,11 @@ QString TimelineOutput::Description()
return tr("Node for communicating between a Timeline panel and the node graph.");
}
const rational &TimelineOutput::Timebase()
{
return timebase_;
}
NodeInput *TimelineOutput::track_input()
{
return track_input_;
+1
View File
@@ -39,6 +39,7 @@ public:
virtual QString Category() override;
virtual QString Description() override;
const rational& Timebase();
void SetTimebase(const rational& timebase);
NodeInput* track_input();
-4
View File
@@ -105,7 +105,6 @@ void TrackOutput::Refresh()
block_cache_ = detect_attached_blocks;
Block::Refresh();
qDebug() << "Refreshed with in point" << in().toDouble() << "(from connected block" << previous() << ")";
}
const int &TrackOutput::Index()
@@ -169,9 +168,6 @@ void TrackOutput::InvalidateCache(const rational &start_range, const rational &e
{
// We intercept IC signals from Blocks since we may be performing several options and they may over-signal
if (from == previous_input() && 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);
} else {
Node::InvalidateCache(start_range, end_range, from);