mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
fix: adjust visibility default values
This commit is contained in:
parent
5a45c9a26b
commit
7c6bebc524
@ -30,7 +30,7 @@ CObject* CObject::fromJSON (json data, CScene* scene, CContainer* container) {
|
|||||||
std::string json = data.dump ();
|
std::string json = data.dump ();
|
||||||
|
|
||||||
auto id_it = jsonFindRequired (data, "id", "Objects must have id");
|
auto id_it = jsonFindRequired (data, "id", "Objects must have id");
|
||||||
auto visible = jsonFindUserConfig<CUserSettingBoolean> (data, "visible", false);
|
auto visible = jsonFindUserConfig<CUserSettingBoolean> (data, "visible", true);
|
||||||
auto origin = jsonFindUserConfig<CUserSettingVector3> (data, "origin", {0, 0, 0});
|
auto origin = jsonFindUserConfig<CUserSettingVector3> (data, "origin", {0, 0, 0});
|
||||||
auto scale = jsonFindUserConfig<CUserSettingVector3> (data, "scale", {1, 1, 1});
|
auto scale = jsonFindUserConfig<CUserSettingVector3> (data, "scale", {1, 1, 1});
|
||||||
auto angles_val = jsonFindDefault<std::string> (data, "angles", "0.0 0.0 0.0");
|
auto angles_val = jsonFindDefault<std::string> (data, "angles", "0.0 0.0 0.0");
|
||||||
|
@ -367,6 +367,9 @@ void CImage::render () {
|
|||||||
if (!this->m_initialized)
|
if (!this->m_initialized)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!this->getImage()->isVisible())
|
||||||
|
return;
|
||||||
|
|
||||||
glColorMask (true, true, true, true);
|
glColorMask (true, true, true, true);
|
||||||
|
|
||||||
// update the position if required
|
// update the position if required
|
||||||
|
Loading…
Reference in New Issue
Block a user