1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Profiles - Fixed suspended elements rendering while the editor is open

This commit is contained in:
Robert 2021-04-10 23:34:54 +02:00
parent 8ca173a119
commit bd75f1038e
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ namespace Artemis.Core
throw new ObjectDisposedException("Folder");
// Ensure the folder is ready
if (!Enabled || Path == null)
if (!Enabled || Suspended || Path == null)
return;
// No point rendering if all children are disabled

View File

@ -289,7 +289,7 @@ namespace Artemis.Core
throw new ObjectDisposedException("Layer");
// Ensure the layer is ready
if (!Enabled || Path == null || LayerShape?.Path == null || !General.PropertiesInitialized || !Transform.PropertiesInitialized)
if (!Enabled || Suspended || Path == null || LayerShape?.Path == null || !General.PropertiesInitialized || !Transform.PropertiesInitialized)
return;
// Ensure the brush is ready
if (LayerBrush == null || LayerBrush?.BaseProperties?.PropertiesInitialized == false)