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