almost multilayer recording
This commit is contained in:
parent
6aba91b6ca
commit
b46d6bb5d4
2 changed files with 7 additions and 2 deletions
|
@ -950,6 +950,7 @@ const Audio = function(tp, record) {
|
|||
inputElement.dispatchEvent(new Event('change'));
|
||||
}
|
||||
}
|
||||
console.log(p, clone(record.getHot()));
|
||||
record.addValue(p.id, p.title, p.value, position);
|
||||
if (p.title.indexOf('color') === 0) {
|
||||
if (!config.audio.colorSeparateRGBA || p.title === 'color.a') {
|
||||
|
|
|
@ -255,12 +255,12 @@ const Record = function(tp) {
|
|||
// make all mapped props hot and
|
||||
Object.keys(audio.mapping)
|
||||
.forEach((layerID) => {
|
||||
if (getLayer(layerID).isSelected()) {
|
||||
//if (getLayer(layerID).isSelected()) { // NOTE: multilayer recording
|
||||
Object.keys(audio.mapping[layerID])
|
||||
.forEach((propTitle) => {
|
||||
addHot(layerID, propTitle);
|
||||
});
|
||||
}
|
||||
//}
|
||||
});
|
||||
} else {
|
||||
// only make this propTitle hot and
|
||||
|
@ -356,6 +356,10 @@ const Record = function(tp) {
|
|||
value,
|
||||
position = tp.sheet.sequence.position,
|
||||
lastPosition = buffy.NO_TIME) => {
|
||||
// NOTE: multilayer recording
|
||||
if (!hot.hasOwnProperty(layerID) || !hot[layerID].hasOwnProperty(propTitle)) {
|
||||
return;
|
||||
}
|
||||
hot[layerID][propTitle].recording.push({
|
||||
position,
|
||||
value,
|
||||
|
|
Loading…
Reference in a new issue