mirror of
https://github.com/redstrate/Novus.git
synced 2025-05-12 19:57:44 +00:00
22 lines
No EOL
586 B
C++
22 lines
No EOL
586 B
C++
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include "boneeditor.h"
|
|
|
|
#include "gearview.h"
|
|
|
|
BoneEditor::BoneEditor(GearView *gearView, QWidget *parent)
|
|
: SklbPart(parent)
|
|
{
|
|
connect(&gearView->part(), &MDLPart::skeletonChanged, this, [this, gearView] {
|
|
load(*gearView->part().skeleton);
|
|
});
|
|
|
|
connect(this, &SklbPart::valueChanged, &gearView->part(), &MDLPart::reloadRenderer);
|
|
|
|
if (gearView->part().skeleton) {
|
|
load(*gearView->part().skeleton);
|
|
}
|
|
}
|
|
|
|
#include "moc_boneeditor.cpp" |