mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Merge branch 'master' into thesis/2019/camera-paths and resolve conflicts
# Conflicts: # modules/globebrowsing/globebrowsingmodule.cpp # modules/globebrowsing/globebrowsingmodule_lua.inl
This commit is contained in:
@@ -1092,7 +1092,7 @@ void OpenSpaceEngine::preSynchronization() {
|
||||
global::memoryManager->TemporaryMemory.reset();
|
||||
|
||||
if (_hasScheduledAssetLoading) {
|
||||
LINFO(fmt::format("Loading asset: {}", _scheduledAssetPathToLoad));
|
||||
LINFO(fmt::format("Loading asset: {}", absPath(_scheduledAssetPathToLoad)));
|
||||
global::profile->setIgnoreUpdates(true);
|
||||
loadSingleAsset(_scheduledAssetPathToLoad);
|
||||
global::profile->setIgnoreUpdates(false);
|
||||
@@ -1270,7 +1270,6 @@ void OpenSpaceEngine::drawOverlays() {
|
||||
|
||||
for (const std::function<void()>& func : *global::callback::draw2D) {
|
||||
ZoneScopedN("[Module] draw2D")
|
||||
|
||||
func();
|
||||
}
|
||||
|
||||
|
||||
@@ -332,7 +332,10 @@ int createSingleColorImage(lua_State* L) {
|
||||
|
||||
const glm::dvec3 color = colorDict.value<glm::dvec3>(key);
|
||||
|
||||
std::string fileName = FileSys.cacheManager()->cachedFilename(name + ".ppm", "");
|
||||
std::filesystem::path fileName = FileSys.cacheManager()->cachedFilename(
|
||||
name + ".ppm",
|
||||
""
|
||||
);
|
||||
const bool hasCachedFile = std::filesystem::is_regular_file(fileName);
|
||||
if (hasCachedFile) {
|
||||
LDEBUGC("OpenSpaceEngine", fmt::format("Cached file '{}' used", fileName));
|
||||
|
||||
Reference in New Issue
Block a user