See #3016. Scene shading styles are now stored as part of the drawing style.

This commit is contained in:
Dion Moult
2023-07-10 14:10:48 +10:00
parent a9f2237d32
commit 3dfd36877e
2 changed files with 1 additions and 3 deletions
@@ -1705,9 +1705,6 @@ class ActivateDrawingStyle(bpy.types.Operator, Operator):
except:
# Differences in Blender versions mean result in failures here
print("Failed to set shading style {path} to {value}")
shading_type = style.get("scene.display.shading.type", None)
if shading_type:
space.shading.type = shading_type
def set_query(self, context):
self.include_global_ids = []
@@ -297,6 +297,7 @@ class RasterStyleProperty(enum.Enum):
SHADING = "scene.display.shading"
DISPLAY = "scene.display"
OVERLAY = "space.overlay"
SPACE_SHADING = "space.shading"
RASTER_STYLE_PROPERTIES_EXCLUDE = (