Do not trim MIDI region end to last event on session-load
This amends 295fb3ff5a
. Tape tracks were only available
for audio data.
This commit is contained in:
parent
fe6c5f98b2
commit
ad7ff1ffd7
@ -1402,7 +1402,7 @@ Region::_set_state (const XMLNode& node, int /*version*/, PropertyChange& what_c
|
|||||||
* punches/capture passes were carried out.
|
* punches/capture passes were carried out.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!_sources.empty()) {
|
if (!_sources.empty() && _type == DataType::AUDIO) {
|
||||||
if (_length > _sources.front()->length(_position)) {
|
if (_length > _sources.front()->length(_position)) {
|
||||||
_length = _sources.front()->length(_position) - _start;
|
_length = _sources.front()->length(_position) - _start;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user