mirror of
https://github.com/redstrate/Novus.git
synced 2025-06-08 14:17:45 +00:00
Add bone editor to full model viewer
This commit is contained in:
parent
8e9fd7fe15
commit
d9da02cdeb
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include "fullmodelviewer.h"
|
#include "fullmodelviewer.h"
|
||||||
|
|
||||||
#include "magic_enum.hpp"
|
#include "magic_enum.hpp"
|
||||||
|
#include "boneeditor.h"
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
FullModelViewer::FullModelViewer(GameData *data) : data(data) {
|
FullModelViewer::FullModelViewer(GameData *data) : data(data) {
|
||||||
|
@ -12,7 +13,11 @@ FullModelViewer::FullModelViewer(GameData *data) : data(data) {
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
gearView = new GearView(data);
|
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();
|
auto controlLayout = new QHBoxLayout();
|
||||||
layout->addLayout(controlLayout);
|
layout->addLayout(controlLayout);
|
||||||
|
|
Loading…
Add table
Reference in a new issue