From 2e2aa3afb406e43dde72067fbffdc5d1477e5d32 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 11:42:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- modules/omniverse/omniverse_integration.ipynb | 1 + modules/omniverse/utility.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/omniverse/omniverse_integration.ipynb b/modules/omniverse/omniverse_integration.ipynb index e545fe380..8ba6082f5 100644 --- a/modules/omniverse/omniverse_integration.ipynb +++ b/modules/omniverse/omniverse_integration.ipynb @@ -122,6 +122,7 @@ "\n", "import vtk\n", "import vtkmodules\n", + "\n", "# from ipyvtklink.viewer import ViewInteractiveWidget\n", "\n", "from utility import convert_to_mesh, convert_mesh_to_usd\n", diff --git a/modules/omniverse/utility.py b/modules/omniverse/utility.py index a031b680e..1d738f274 100644 --- a/modules/omniverse/utility.py +++ b/modules/omniverse/utility.py @@ -141,9 +141,9 @@ def convert_to_mesh( writer.Write() print(f"Mesh successfully exported to {output_filename}") - + if len(label_values.keys()) > 1: - # Modify GLTF to include actor names + # Modify GLTF to include actor names with open(output_filename, "r") as f: gltf_data = json.load(f)