mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-27 03:28:22 -06:00
Merge branch 'fix/f4': community issue fixes
This commit is contained in:
@@ -82,6 +82,7 @@ fn project(s: &Session) -> J {
|
||||
"linearBlending": p.settings.blend_linear,
|
||||
"linearizeWorkingSpace": p.settings.linearize,
|
||||
"workingSpace": p.settings.working_space.map(|w| format!("{w:?}")).unwrap_or_default(),
|
||||
"workingGamma": if p.settings.working_gamma_24() { 2.4 } else { 2.2 },
|
||||
"timeDisplayFrames": p.settings.time_display == effectcraft_project::TimeDisplayStyle::Frames,
|
||||
"renderQueue": p.render_queue.len(),
|
||||
"revision": s.revision,
|
||||
|
||||
@@ -1696,6 +1696,8 @@ Project.prototype = {
|
||||
set linearizeWorkingSpace(v) { __call("file.projectSettings", { linearize: !!v }); },
|
||||
get workingSpace() { return this.__info().workingSpace; },
|
||||
set workingSpace(v) { __call("file.projectSettings", { workingSpace: String(v) || "none" }); },
|
||||
get workingGamma() { return this.__info().workingGamma; },
|
||||
set workingGamma(v) { __call("file.projectSettings", { workingGamma: __num(v) }); },
|
||||
get timeDisplayType() { return this.__info().timeDisplayFrames ? TimeDisplayType.FRAMES : TimeDisplayType.TIMECODE; },
|
||||
set timeDisplayType(v) { __call("file.projectSettings", { timeDisplay: v === TimeDisplayType.FRAMES ? "frames" : "timecode" }); },
|
||||
get expressionEngine() { return "javascript-1.0"; },
|
||||
|
||||
Reference in New Issue
Block a user