Skip to content

Commit

Permalink
Update jupytercad_freecad/freecad/loader.py
Browse files Browse the repository at this point in the history
Co-authored-by: martinRenou <[email protected]>
  • Loading branch information
arjxn-py and martinRenou authored Sep 24, 2024
1 parent c221ecb commit ed2d374
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jupytercad_freecad/freecad/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def load(self, base64_content: str) -> None:

if obj_name in self._options["guidata"]:
if "color" in self._options["guidata"][obj_name]:
obj_data["parameters"]["Color"] = self._options["guidata"][
obj_name
]["color"]
gui_data_color = self._options["guidata"][obj_name]["color"]

obj_data["parameters"]["Color"] = gui_data_color if gui_data_color else default_color
if "visible" in self._options["guidata"][obj_name]:
obj_data["visible"] = self._options["guidata"][obj_name]["visible"]

Expand Down

0 comments on commit ed2d374

Please sign in to comment.