mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-27 08:48:14 +00:00
Update studio-frontend/src/app/anim-editor.element.ts
Co-authored-by: Danny McGee <dannymcgee@gmail.com>
This commit is contained in:
@@ -242,8 +242,12 @@ export class AnimEditorElement extends LitElement {
|
|||||||
track_order_hashed[track] = index;
|
track_order_hashed[track] = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
const selected = typeof this.selected_track === "object" && "track" in this.selected_track ? this.selected_track.track : false;
|
const selected = !isOutsideEntity(this.selectedTrack)
|
||||||
const can_add_selected = typeof this.selected_track === "object" && "outside_entity" in this.selected_track ? this.selected_track.outside_entity : false;
|
? this.selectedTrack.track
|
||||||
|
: false;
|
||||||
|
const canAddSelected = isOutsideEntity(this.selectedTrack)
|
||||||
|
? this.selectedTrack.outsideEntity
|
||||||
|
: false;
|
||||||
|
|
||||||
let length = this.timelineEnd - this.timelineStart;
|
let length = this.timelineEnd - this.timelineStart;
|
||||||
let clip_start = (this.clipStart - this.timelineStart) / length;
|
let clip_start = (this.clipStart - this.timelineStart) / length;
|
||||||
|
|||||||
Reference in New Issue
Block a user