Skip to content

Commit

Permalink
Fix issues (part of 2024.1.1 update).
Browse files Browse the repository at this point in the history
  • Loading branch information
digisomni committed Oct 17, 2024
1 parent 528124d commit 2ce702a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
9 changes: 8 additions & 1 deletion import_export/world_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,11 @@ def export_all(self, scene: bpy.types.Scene) -> Dict[str, List[Any]]:
"textures": textures,
"images": images,
"cameras": cameras
}
}

def register():
pass

def unregister():
pass

10 changes: 8 additions & 2 deletions import_export/world_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
return self.uuid_to_object.get(uuid)

def register():
pass

def unregister():
pass
2 changes: 1 addition & 1 deletion import_export/world_import_export_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ce702a

Please sign in to comment.