Keep non-sinking volumes on top of the printbed while scaling

This commit is contained in:
enricoturri1966 2021-07-20 15:32:24 +02:00
parent 097afc6598
commit 368cfedbc7
2 changed files with 30 additions and 7 deletions

View file

@ -186,6 +186,10 @@ private:
// to a set of indices of ModelVolume instances in ModelObject::instances
// Here the index means a position inside the respective std::vector, not ObjectID.
ObjectIdxsToInstanceIdxsMap content;
#if ENABLE_ALLOW_NEGATIVE_Z
// List of ids of the volumes which are sinking when starting dragging
std::vector<unsigned int> sinking_volumes;
#endif // ENABLE_ALLOW_NEGATIVE_Z
};
// Volumes owned by GLCanvas3D.