App: Add PropertyMaterialList::resizeByOneIfNeeded to avoid code duplication

This commit is contained in:
wmayer
2024-04-05 15:07:46 +02:00
parent 101564091b
commit acb7be7a95
2 changed files with 31 additions and 77 deletions

View File

@@ -1188,11 +1188,14 @@ public:
protected:
Material getPyValue(PyObject* py) const override;
void verifyIndex(int index) const;
void setSizeOne();
void RestoreDocFileV0(uint32_t count, Base::Reader& reader);
void RestoreDocFileV1(Base::Reader& reader);
private:
void verifyIndex(int index) const;
void setSizeOne();
int resizeByOneIfNeeded(int index);
};