mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-12 22:39:09 -05:00
Properly fix useCaching for point cloud colormaps
Forgot the update function in 1092948518, oops
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
||||
*/
|
||||
void initializeTexture();
|
||||
|
||||
void update(const dataloader::Dataset& dataset);
|
||||
void update(const dataloader::Dataset& dataset, bool useCaching = true);
|
||||
|
||||
static documentation::Documentation Documentation();
|
||||
|
||||
|
||||
@@ -1384,7 +1384,7 @@ void RenderablePointCloud::update(const UpdateData&) {
|
||||
preUpdate();
|
||||
|
||||
if (_hasColorMapFile) {
|
||||
_colorSettings.colorMapping->update(_dataset);
|
||||
_colorSettings.colorMapping->update(_dataset, _useCaching);
|
||||
}
|
||||
|
||||
if (_spriteTextureIsDirty) {
|
||||
|
||||
@@ -396,9 +396,9 @@ void ColorMappingComponent::initializeTexture() {
|
||||
_texture->uploadTexture();
|
||||
}
|
||||
|
||||
void ColorMappingComponent::update(const dataloader::Dataset& dataset) {
|
||||
void ColorMappingComponent::update(const dataloader::Dataset& dataset, bool useCaching) {
|
||||
if (_colorMapFileIsDirty) {
|
||||
initialize(dataset);
|
||||
initialize(dataset, useCaching);
|
||||
_colorMapTextureIsDirty = true;
|
||||
_colorMapFileIsDirty = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user