1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-12 19:57:44 +00:00
novus/apps/armoury/src/boneeditor.cpp
Joshua Goins 0a488807f6 Gear Editor: General code cleanup
Boring stuff... removing unnecessary lambdas, variables and more.
2024-05-27 18:57:17 -04:00

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"