diff --git a/src/WallpaperEngine/Core/CObject.cpp b/src/WallpaperEngine/Core/CObject.cpp index f198b5a..817ca74 100644 --- a/src/WallpaperEngine/Core/CObject.cpp +++ b/src/WallpaperEngine/Core/CObject.cpp @@ -30,7 +30,7 @@ CObject* CObject::fromJSON (json data, CScene* scene, CContainer* container) { std::string json = data.dump (); auto id_it = jsonFindRequired (data, "id", "Objects must have id"); - auto visible = jsonFindUserConfig (data, "visible", false); + auto visible = jsonFindUserConfig (data, "visible", true); auto origin = jsonFindUserConfig (data, "origin", {0, 0, 0}); auto scale = jsonFindUserConfig (data, "scale", {1, 1, 1}); auto angles_val = jsonFindDefault (data, "angles", "0.0 0.0 0.0"); diff --git a/src/WallpaperEngine/Render/Objects/CImage.cpp b/src/WallpaperEngine/Render/Objects/CImage.cpp index a6683af..4ab155b 100644 --- a/src/WallpaperEngine/Render/Objects/CImage.cpp +++ b/src/WallpaperEngine/Render/Objects/CImage.cpp @@ -367,6 +367,9 @@ void CImage::render () { if (!this->m_initialized) return; + if (!this->getImage()->isVisible()) + return; + glColorMask (true, true, true, true); // update the position if required