1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 20:17:46 +00:00
novus/mdlviewer/include/vec3edit.h
Joshua Goins 9688c091af Add bone editing to mdlviewer
This is big, as it shows we are now correctly parsing the havok XML
sidecard data and you can edit the scale of the bones in the viewport.

This also pulls in a new libxiv version, which is required to fill out
the used bones list on a Model. Right now the bone editing is incredibly
basic, and the viewport suffers from a lack of depth testing still.
2022-04-28 17:50:05 -04:00

23 lines
381 B
C++

#pragma once
#include <QSpinBox>
#include <QWidget>
#include <glm/glm.hpp>
class Vector3Edit : public QWidget {
Q_OBJECT
public:
explicit Vector3Edit(glm::vec3& vec, QWidget* parent = nullptr);
~Vector3Edit();
signals:
void onValueChanged();
private:
struct {
QDoubleSpinBox *x, *y, *z;
} spinBoxes;
glm::vec3& vec;
QTimer* updateTimer;
};