recordbutton can be disabled
This commit is contained in:
parent
f19843bd46
commit
ab3786ef23
2 changed files with 7 additions and 4 deletions
|
@ -115,6 +115,7 @@ const config = {
|
||||||
rolloverResetLoop: true,
|
rolloverResetLoop: true,
|
||||||
},
|
},
|
||||||
record: {
|
record: {
|
||||||
|
active: false,
|
||||||
ignoreProps: {
|
ignoreProps: {
|
||||||
artboard: ['x', 'y', 'zoom', 'pixelDensity', 'width', 'height'],
|
artboard: ['x', 'y', 'zoom', 'pixelDensity', 'width', 'height'],
|
||||||
layer: ['transformOrigin', 'fontFamily', 'text', 'mirror_x', 'mirror_y', 'mirror_xy'],
|
layer: ['transformOrigin', 'fontFamily', 'text', 'mirror_x', 'mirror_y', 'mirror_xy'],
|
||||||
|
|
|
@ -806,11 +806,13 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) {
|
||||||
console.log('Layer::findInjectPanel', `cannot inject audio panel for ${this.id()} for some reason.`);
|
console.log('Layer::findInjectPanel', `cannot inject audio panel for ${this.id()} for some reason.`);
|
||||||
}
|
}
|
||||||
// should we have a record object, let's inject the buttons, etc
|
// should we have a record object, let's inject the buttons, etc
|
||||||
|
if (config.record.active) {
|
||||||
if (typeof record === 'object' && record.hasOwnProperty('injectPanel')) {
|
if (typeof record === 'object' && record.hasOwnProperty('injectPanel')) {
|
||||||
record.injectPanel(this);
|
record.injectPanel(this);
|
||||||
} else {
|
} else {
|
||||||
console.log('Layer::findInjectPanel', `cannot inject record panel for ${this.id()} for some reason.`);
|
console.log('Layer::findInjectPanel', `cannot inject record panel for ${this.id()} for some reason.`);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
injectedPanel = true;
|
injectedPanel = true;
|
||||||
const detail = {layerID: this.id(), titles: Object.keys(panelPropTitles), containers: Object.keys(panelPropContainers)};
|
const detail = {layerID: this.id(), titles: Object.keys(panelPropTitles), containers: Object.keys(panelPropContainers)};
|
||||||
|
|
Loading…
Reference in a new issue