Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 24, 2024
1 parent ed2d374 commit 5bcea02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jupytercad_freecad/freecad/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ def load(self, base64_content: str) -> None:
if obj_name in self._options["guidata"]:
if "color" in self._options["guidata"][obj_name]:
gui_data_color = self._options["guidata"][obj_name]["color"]

obj_data["parameters"]["Color"] = gui_data_color if gui_data_color else default_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 5bcea02

Please sign in to comment.