From 2ce702ab91687b0370955df9ce0ad6775ae151ef Mon Sep 17 00:00:00 2001 From: Kalila <69767640+digisomni@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:28:14 +1100 Subject: [PATCH] Fix issues (part of 2024.1.1 update). --- import_export/world_export.py | 9 ++++++++- import_export/world_import.py | 10 ++++++++-- import_export/world_import_export_test.py | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/import_export/world_export.py b/import_export/world_export.py index 2e5a316..ceebd1a 100644 --- a/import_export/world_export.py +++ b/import_export/world_export.py @@ -128,4 +128,11 @@ def export_all(self, scene: bpy.types.Scene) -> Dict[str, List[Any]]: "textures": textures, "images": images, "cameras": cameras - } \ No newline at end of file + } + +def register(): + pass + +def unregister(): + pass + diff --git a/import_export/world_import.py b/import_export/world_import.py index a1b2ea6..98ca891 100644 --- a/import_export/world_import.py +++ b/import_export/world_import.py @@ -2,7 +2,7 @@ from typing import Dict, Any, List, Optional import json -from vircadia_world_sdk_py.shared.modules.vircadia_world_meta.python.world import ( +from ..vircadia_world_sdk_py.shared.modules.vircadia_world_meta.python.world import ( TableWorldGLTF, TableScene, TableNode, TableMesh, TableMaterial, TableTexture, TableImage, TableSampler, TableAnimation, TableSkin, TableCamera, TableBuffer, TableBufferView, TableAccessor, TableMetadata @@ -227,4 +227,10 @@ def assign_texture_to_material(self, material_uuid: str, texture_uuid: str, text pass def get_object_by_uuid(self, uuid: str) -> Optional[bpy.types.ID]: - return self.uuid_to_object.get(uuid) \ No newline at end of file + return self.uuid_to_object.get(uuid) + +def register(): + pass + +def unregister(): + pass diff --git a/import_export/world_import_export_test.py b/import_export/world_import_export_test.py index 443ea59..408370f 100644 --- a/import_export/world_import_export_test.py +++ b/import_export/world_import_export_test.py @@ -5,7 +5,7 @@ import os import random import time -from .world_export import GLTFExporter +from .world_export import BlenderToWorldGLTFExport class TestGLTFExporter(unittest.TestCase): @staticmethod