Commit f4a25f6c authored by Jan Möbius's avatar Jan Möbius

Hannes: Function to invalidate pick caches via plugin functions.



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18800 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fb59b7d6
......@@ -1176,4 +1176,10 @@ QStringList collectObjectMaterials(bool visibleOnly, bool targetedOnly) {
return result;
}
void invalidatePickCaches() {
for(size_t i = 0; i < examiner_widgets_.size(); ++i) {
examiner_widgets_[i]->invalidatePickCache();
}
}
} // End namespace PluginFunctions
......@@ -437,6 +437,9 @@ void viewerSnapshot(int _viewer, QImage& _image, int _width = 0, int _height = 0
/** @} */
DLLEXPORT
void invalidatePickCaches();
}
#endif //PLUGINFUNCTIONS_HH
......@@ -888,6 +888,9 @@ private:
void disallowConstrainedRotation() {
constrainedRotationAxis_[0] = std::numeric_limits<double>::quiet_NaN();
}
void invalidatePickCache() {
updatePickCache_ = true;
}
private slots:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment