1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-13 03:57:45 +00:00
novus/apps/armoury/src/boneeditor.cpp

22 lines
586 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
2023-07-06 17:36:58 -04:00
#include "boneeditor.h"
#include "gearview.h"
2023-10-12 23:44:48 -04:00
BoneEditor::BoneEditor(GearView *gearView, QWidget *parent)
: SklbPart(parent)
2023-10-12 23:44:48 -04:00
{
connect(&gearView->part(), &MDLPart::skeletonChanged, this, [this, gearView] {
load(*gearView->part().skeleton);
2023-07-06 17:36:58 -04:00
});
connect(this, &SklbPart::valueChanged, &gearView->part(), &MDLPart::reloadRenderer);
if (gearView->part().skeleton) {
load(*gearView->part().skeleton);
}
2023-07-06 17:36:58 -04:00
}
#include "moc_boneeditor.cpp"