Merge pull request #4547 from chennes/lgtmArchUnusedIterationVariable1

[Arch] Refactor to eliminate unused variable
This commit is contained in:
Yorik van Havre
2021-03-30 13:01:06 +02:00
committed by GitHub

View File

@@ -2261,7 +2261,7 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
diffusecolor = obj.ViewObject.DiffuseColor
if shapecolor and (shapetype != "clone"): # cloned objects are already colored
key = None
rgbt = [shapecolor+(transparency,) for shape in shapes]
rgbt = [shapecolor+(transparency,)] * len(shapes)
if diffusecolor \
and (len(diffusecolor) == len(obj.Shape.Faces)) \
and (len(obj.Shape.Solids) == len(colorshapes)):