mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 06:27:43 +00:00
Add ability to search for blender version dynamically
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
|
||||
class QSequentialAnimationGroup;
|
||||
|
||||
const uint32_t MinBlenderVersionMajor = 2;
|
||||
const uint32_t MaxBlenderVersionMajor = 2;
|
||||
const uint32_t MinBlenderVersionMinor = 90;
|
||||
const uint32_t MaxBlenderVersionMinor = 91;
|
||||
|
||||
class SysReqTableModel : public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
uint64_t m_cpuSpeed = 0;
|
||||
@@ -31,7 +36,10 @@ public:
|
||||
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
bool isBlenderVersionOk() const { return m_blendMajor == 2 && m_blendMinor == 90; }
|
||||
bool isBlenderVersionOk() const {
|
||||
return (m_blendMajor >= MinBlenderVersionMajor && m_blendMajor <= MaxBlenderVersionMajor) &&
|
||||
(m_blendMinor >= MinBlenderVersionMinor && m_blendMinor <= MaxBlenderVersionMinor);
|
||||
}
|
||||
void updateFreeDiskSpace(const QString& path);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user