From d76924ec009aba12dfef41605b3bc97664b535c6 Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Fri, 12 Jun 2020 18:34:37 +0300 Subject: [PATCH] [22780] Ensure the compositorType property can be set to "none" This patch ensures the compositorType property can be set to "none". Previously this enumeration value was set to read-only, thus an error was thrown when attempting to set the compositorType to "none" --- docs/notes/bugfix-22780.md | 1 + engine/src/exec-interface-stack.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/notes/bugfix-22780.md diff --git a/docs/notes/bugfix-22780.md b/docs/notes/bugfix-22780.md new file mode 100644 index 00000000000..6666d3785a8 --- /dev/null +++ b/docs/notes/bugfix-22780.md @@ -0,0 +1 @@ +# Ensure no error is thrown when setting the compositorType property to "none" diff --git a/engine/src/exec-interface-stack.cpp b/engine/src/exec-interface-stack.cpp index 007f2ad120c..dc24c321e38 100644 --- a/engine/src/exec-interface-stack.cpp +++ b/engine/src/exec-interface-stack.cpp @@ -93,7 +93,7 @@ static MCExecEnumTypeInfo _kMCInterfaceCharsetTypeInfo = static MCExecEnumTypeElementInfo _kMCInterfaceCompositorTypeElementInfo[] = { { "", kMCTileCacheCompositorNone, false }, - { "none", kMCTileCacheCompositorNone, true }, + { "none", kMCTileCacheCompositorNone, false }, { "Software", kMCTileCacheCompositorSoftware, false }, { "CoreGraphics", kMCTileCacheCompositorCoreGraphics, false }, { "opengl", kMCTileCacheCompositorOpenGL, false },