mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-23 08:16:05 +00:00
Attach IK rig to selected skeleton
This commit is contained in:
@@ -90,6 +90,11 @@ export class AppElement extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
attachIkRig(): void {
|
||||
if (this.selection)
|
||||
studio.attachIkRig(this.selection.id);
|
||||
}
|
||||
|
||||
toggleHelp(): void {
|
||||
this.showHelp = !this.showHelp;
|
||||
}
|
||||
@@ -123,9 +128,7 @@ export class AppElement extends LitElement {
|
||||
<sts-button
|
||||
icon="share-nodes"
|
||||
?disabled=${this.selection?.type !== SceneElement.Skeleton}
|
||||
@click=${() => {
|
||||
console.log("Attach IK rig");
|
||||
}}
|
||||
@click=${this.attachIkRig}
|
||||
>
|
||||
Attach IK Rig
|
||||
</sts-button>
|
||||
|
||||
Reference in New Issue
Block a user