Skip to content

Commit e8b5fab

Browse files
committed
put back setter
1 parent 10e4225 commit e8b5fab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/compas/scene/sceneobject.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ def contrastcolor(self):
280280
self._contrastcolor = self.color.lightened(50)
281281
return self._contrastcolor
282282

283+
@contrastcolor.setter
284+
def contrastcolor(self, color):
285+
# type: (compas.colors.Color) -> None
286+
self._contrastcolor = Color.coerce(color)
287+
283288
def add(self, item, **kwargs):
284289
"""Add a scene object to the scene.
285290

0 commit comments

Comments
 (0)