mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
Adapt to changes in Ghoul that made absPath return a std::filesystem::path instead of a std::string
This commit is contained in:
@@ -138,7 +138,7 @@ RenderablePoints::RenderablePoints(const ghoul::Dictionary& dictionary)
|
||||
addProperty(_opacity);
|
||||
registerUpdateRenderBinFromOpacity();
|
||||
|
||||
_speckFile = absPath(p.file);
|
||||
_speckFile = absPath(p.file).string();
|
||||
|
||||
if (p.unit.has_value()) {
|
||||
switch (*p.unit) {
|
||||
@@ -175,7 +175,7 @@ RenderablePoints::RenderablePoints(const ghoul::Dictionary& dictionary)
|
||||
addProperty(_pointColor);
|
||||
|
||||
if (p.texture.has_value()) {
|
||||
_spriteTexturePath = absPath(*p.texture);
|
||||
_spriteTexturePath = absPath(*p.texture).string();
|
||||
_spriteTextureFile = std::make_unique<ghoul::filesystem::File>(
|
||||
_spriteTexturePath.value()
|
||||
);
|
||||
@@ -188,7 +188,7 @@ RenderablePoints::RenderablePoints(const ghoul::Dictionary& dictionary)
|
||||
}
|
||||
|
||||
if (p.colorMap.has_value()) {
|
||||
_colorMapFile = absPath(*p.colorMap);
|
||||
_colorMapFile = absPath(*p.colorMap).string();
|
||||
_hasColorMapFile = true;
|
||||
}
|
||||
|
||||
@@ -360,7 +360,7 @@ void RenderablePoints::update(const UpdateData&) {
|
||||
_spriteTexture = nullptr;
|
||||
if (!_spriteTexturePath.value().empty()) {
|
||||
_spriteTexture = ghoul::io::TextureReader::ref().loadTexture(
|
||||
absPath(_spriteTexturePath)
|
||||
absPath(_spriteTexturePath).string()
|
||||
);
|
||||
if (_spriteTexture) {
|
||||
LDEBUG(fmt::format(
|
||||
|
||||
Reference in New Issue
Block a user