Arch: fixed minor bug in Offline rendering module

This commit is contained in:
Yorik van Havre
2020-06-22 14:12:17 +02:00
parent 8b8210f290
commit ac6e9f4640

View File

@@ -427,6 +427,7 @@ def buildScene(objects,colors=None):
if isinstance(color,list):
# DiffuseColor, not supported here
color = color[0]
color = color[:3]
mat = coin.SoMaterial()
mat.diffuseColor = color
node.insertChild(mat,0)