Skip to content

Commit

Permalink
remove root asset dir
Browse files Browse the repository at this point in the history
  • Loading branch information
karhankayan committed Aug 20, 2024
1 parent 2191a2b commit 83b558f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions infinigen/assets/static_assets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@


class StaticAssetFactory(AssetFactory):
root_asset_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "source")

import_map: Dict[str, Callable] = {
"dae": bpy.ops.wm.collada_import,
"abc": bpy.ops.wm.alembic_import,
Expand All @@ -29,16 +27,8 @@ class StaticAssetFactory(AssetFactory):
"blend": bpy.ops.wm.append,
}

@classmethod
def set_root_asset_dir(cls, directory):
cls.root_asset_dir = directory

def __init__(self, factory_seed, coarse=False):
super().__init__(factory_seed, coarse)
if self.root_asset_dir is None:
raise ValueError(
"Root asset directory not set. Call StaticAssetFactory.set_root_asset_dir() first."
)

def import_single_object_from_blend(self, file_path):
with bpy.data.libraries.load(file_path, link=False) as (data_from, data_to):
Expand Down

0 comments on commit 83b558f

Please sign in to comment.