mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
See #3016. Scene shading styles are now stored as part of the drawing style.
This commit is contained in:
@@ -1705,9 +1705,6 @@ class ActivateDrawingStyle(bpy.types.Operator, Operator):
|
|||||||
except:
|
except:
|
||||||
# Differences in Blender versions mean result in failures here
|
# Differences in Blender versions mean result in failures here
|
||||||
print("Failed to set shading style {path} to {value}")
|
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):
|
def set_query(self, context):
|
||||||
self.include_global_ids = []
|
self.include_global_ids = []
|
||||||
|
|||||||
@@ -297,6 +297,7 @@ class RasterStyleProperty(enum.Enum):
|
|||||||
SHADING = "scene.display.shading"
|
SHADING = "scene.display.shading"
|
||||||
DISPLAY = "scene.display"
|
DISPLAY = "scene.display"
|
||||||
OVERLAY = "space.overlay"
|
OVERLAY = "space.overlay"
|
||||||
|
SPACE_SHADING = "space.shading"
|
||||||
|
|
||||||
|
|
||||||
RASTER_STYLE_PROPERTIES_EXCLUDE = (
|
RASTER_STYLE_PROPERTIES_EXCLUDE = (
|
||||||
|
|||||||
Reference in New Issue
Block a user