mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix critical typo in rendering styles creation that led to invisible styles
This commit is contained in:
@@ -74,7 +74,7 @@ class Style(blenderbim.core.tool.Style):
|
||||
|
||||
@classmethod
|
||||
def get_surface_rendering_attributes(cls, obj):
|
||||
transparency = obj.diffuse_color[3]
|
||||
transparency = 1 - obj.diffuse_color[3]
|
||||
diffuse_color = obj.diffuse_color
|
||||
|
||||
attributes = {
|
||||
|
||||
@@ -175,7 +175,7 @@ class TestGetSurfaceRenderingAttributes(NewFile):
|
||||
"Green": 1,
|
||||
"Blue": 1,
|
||||
},
|
||||
"Transparency": 1,
|
||||
"Transparency": 0,
|
||||
"DiffuseColour": {
|
||||
"Name": None,
|
||||
"Red": 0.5,
|
||||
@@ -202,7 +202,7 @@ class TestGetSurfaceRenderingAttributes(NewFile):
|
||||
"Green": 1,
|
||||
"Blue": 1,
|
||||
},
|
||||
"Transparency": 1,
|
||||
"Transparency": 0,
|
||||
"DiffuseColour": {
|
||||
"Name": None,
|
||||
"Red": 0.5,
|
||||
@@ -229,7 +229,7 @@ class TestGetSurfaceRenderingAttributes(NewFile):
|
||||
"Green": 1,
|
||||
"Blue": 1,
|
||||
},
|
||||
"Transparency": 1,
|
||||
"Transparency": 0,
|
||||
"DiffuseColour": {
|
||||
"Name": None,
|
||||
"Red": 0.5,
|
||||
@@ -255,7 +255,7 @@ class TestGetSurfaceRenderingAttributes(NewFile):
|
||||
"Green": 1,
|
||||
"Blue": 1,
|
||||
},
|
||||
"Transparency": 1,
|
||||
"Transparency": 0,
|
||||
"DiffuseColour": {
|
||||
"Name": None,
|
||||
"Red": 0.5,
|
||||
@@ -281,7 +281,7 @@ class TestGetSurfaceRenderingAttributes(NewFile):
|
||||
"Green": 1,
|
||||
"Blue": 1,
|
||||
},
|
||||
"Transparency": 1,
|
||||
"Transparency": 0,
|
||||
"DiffuseColour": {
|
||||
"Name": None,
|
||||
"Red": 1,
|
||||
|
||||
Reference in New Issue
Block a user