diff options
author | Stan Seibert <stan@mtrr.org> | 2012-01-22 10:45:37 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:38 -0700 |
commit | deda5c8fa3264bf80e3d4dcba52f13913d6d254c (patch) | |
tree | aebb08b83d5235b8ec2f18b4184c3b7965e793d6 | |
parent | 4264a823b0458aa595424d47d51322c8600ce381 (diff) | |
download | chroma-deda5c8fa3264bf80e3d4dcba52f13913d6d254c.tar.gz chroma-deda5c8fa3264bf80e3d4dcba52f13913d6d254c.tar.bz2 chroma-deda5c8fa3264bf80e3d4dcba52f13913d6d254c.zip |
Fix silly typos in BVH loading functions
-rw-r--r-- | chroma/loader.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chroma/loader.py b/chroma/loader.py index 4923f99..6a0bf87 100644 --- a/chroma/loader.py +++ b/chroma/loader.py @@ -69,7 +69,7 @@ def load_geometry_from_string(geometry_str, # Find BVH id if given bvh_name = 'default' if ':' in geometry_str: - geometry_id, bvh_name = geometry_id.split(':') + geometry_id, bvh_name = geometry_str.split(':') else: geometry_id = geometry_str @@ -119,7 +119,8 @@ def load_geometry_from_string(geometry_str, geometry = cache.load_geometry(geometry_id) # Cached geometries are flattened already - geometry.bvh = load_bvh(geometry, auto_build_bvh=auto_build_bvh, + geometry.bvh = load_bvh(geometry, bvh_name=bvh_name, + auto_build_bvh=auto_build_bvh, read_bvh_cache=read_bvh_cache, update_bvh_cache=update_bvh_cache, cache_dir=cache_dir, @@ -139,7 +140,7 @@ def load_bvh(geometry, bvh_name="default", mesh_hash = geometry.mesh.md5() bvh = None if read_bvh_cache and cache.exist_bvh(mesh_hash, bvh_name): - logger.info('Loading BVH for geometry from cache.') + logger.info('Loading BVH "%s" for geometry from cache.' % bvh_name) bvh = cache.load_bvh(mesh_hash, bvh_name) elif auto_build_bvh: logger.info('Building new BVH using simple algorithm.') |