1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 20:47:45 +00:00

Add bone editor to full model viewer

This commit is contained in:
Joshua Goins 2023-07-06 17:38:01 -04:00
parent 8e9fd7fe15
commit d9da02cdeb

View file

@ -1,6 +1,7 @@
#include "fullmodelviewer.h"
#include "magic_enum.hpp"
#include "boneeditor.h"
#include <QVBoxLayout>
FullModelViewer::FullModelViewer(GameData *data) : data(data) {
@ -12,7 +13,11 @@ FullModelViewer::FullModelViewer(GameData *data) : data(data) {
setLayout(layout);
gearView = new GearView(data);
layout->addWidget(gearView);
auto viewportLayout = new QHBoxLayout();
viewportLayout->addWidget(gearView, 1);
viewportLayout->addWidget(new BoneEditor(gearView));
layout->addLayout(viewportLayout);
auto controlLayout = new QHBoxLayout();
layout->addLayout(controlLayout);