Skip to content

Commit

Permalink
Merge pull request #923 from chawyehsu/patch-1
Browse files Browse the repository at this point in the history
fix(core): use `-mfr` only for cc2022+
  • Loading branch information
inlife authored Sep 4, 2023
2 parents 58a8d8a + 59b8a2a commit f707fbe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/nexrender-core/src/tasks/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,16 @@ Estimated date of change to the new behavior: 2023-06-01.\n`);

option(params, '-r', jobScriptFile);

if (!settings.skipRender && settings.multiFrames) params.push('-mfr', 'ON', settings.multiFramesCPU);
if (!settings.skipRender && settings.multiFrames) {
const afterEffects = path.dirname(settings.binary)
const afterEffectsYearMatch = afterEffects.match(/(20[0-9]{2})/);

if (afterEffectsYearMatch && afterEffectsYearMatch[0] >= "2022") {
params.push('-mfr', 'ON', settings.multiFramesCPU);
} else {
params.push('-mp');
}
}
if (settings.reuse) params.push('-reuse');
if (job.template.continueOnMissing) params.push('-continueOnMissingFootage')

Expand Down

0 comments on commit f707fbe

Please sign in to comment.