File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4646* Changed ` compas.geometry.curves.nurbs.NurbsCurve.__new__ ` to prevent instantiation of ` NurbsCurve ` directly.
4747* Changed ` compas_rhino.geometry.curves.new_nurbscurve_from_... ` to ` nurbscurve_from_... ` .
4848* Fixed ` compas_ghpython ` Grasshopper components not included in published pakcage.
49+ * Chnaged ` compas.colors.Color.coerce ` to take color as is, if it is already aninstance of ` compas.colors.Color ` .
4950
5051### Removed
5152
Original file line number Diff line number Diff line change @@ -582,6 +582,8 @@ def coerce(color):
582582 """
583583 if not color :
584584 return
585+ if isinstance (color , Color ):
586+ return color
585587 if Color ._is_rgb255 (color ):
586588 return Color .from_rgb255 (* list (color ))
587589 if Color ._is_hex (color ):
You can’t perform that action at this time.
0 commit comments