Attach IK rig to selected skeleton

This commit is contained in:
Danny McGee
2024-02-28 18:49:16 -05:00
parent 96f1f8ec39
commit 3f887d3f3e
5 changed files with 282 additions and 20 deletions
+6 -3
View File
@@ -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>