File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ def set_colors(meshes_list, colors_list):
280280
281281 data = IDListColorList (
282282 ids = [x .data .id for x in meshes_list ],
283- values = [utils .formatted_color (utils . sanitize_vector3 ( x ) ) for x in colors_list ]
283+ values = [utils .formatted_color (x ) for x in colors_list ]
284284 )
285285
286286 client .sio .emit ('urchin-meshes-colors' , data .to_string ())
Original file line number Diff line number Diff line change @@ -68,8 +68,7 @@ def sanitize_color(color):
6868 raise ValueError ("Input list must contain three or four floats." )
6969
7070 elif isinstance (color , str ):
71- if color .startswith ('#' ):
72- return hex_to_rgb (color )
71+ return hex_to_rgb (color )
7372
7473 else :
7574 raise TypeError ("Input type not recognized." )
You can’t perform that action at this time.
0 commit comments