Preserves automation scale when everything is disconnected

This commit is contained in:
Wong Cho Ching
2014-02-02 20:25:24 +08:00
parent f7963d5b3b
commit 0f746d8163
3 changed files with 33 additions and 13 deletions

View File

@@ -111,6 +111,16 @@ public:
return m_tangents;
}
inline float getMin() const
{
return firstObject()->minValue<float>();
}
inline float getMax() const
{
return firstObject()->maxValue<float>();
}
inline bool hasAutomation() const
{
return m_timeMap.isEmpty() == false;

View File

@@ -66,7 +66,7 @@ private:
QPixmap m_paintPixmap;
bool m_needsUpdate;
void scaleTimemapToFit();
void scaleTimemapToFit( float oldMin, float oldMax );
} ;