Skip to content

Commit

Permalink
Merge pull request #184 from princeton-vl/hotfix_v1.2.0.2
Browse files Browse the repository at this point in the history
Fix hello world crash
  • Loading branch information
araistrick authored Dec 17, 2023
2 parents 48be1cd + e230736 commit 0c622a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion infinigen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import logging

__version__ = "1.2.0.1"
__version__ = "1.2.0.2"
3 changes: 2 additions & 1 deletion infinigen/terrain/utils/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,11 @@ def export_blender(self, name, collection="Collection", material=None):
if material is not None:
new_object.data.materials.append(material)

butil.put_in_collection(bpy.data.objects[name], butil.get_collection('terrain'))

with butil.SelectObjects(new_object):
bpy.ops.object.shade_flat()

butil.put_in_collection(bpy.data.objects[name], butil.get_collection('terrain'))
return new_object

@property
Expand Down
2 changes: 1 addition & 1 deletion infinigen_examples/configs/base.gin
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ compose_scene.flying_creature_registry = [
group_collections.config = [
{'name': 'assets', 'hide_viewport': True, 'hide_render': True}, # collections of assets used by scatters
{'name': 'scatter', 'hide_viewport': True, 'hide_render': False}, # actual instanced objects for scatters
{'name': 'placeholders', 'hide_viewport': True, 'hide_render': True}, # low-res markers / proxies for where assets will be spawned
{'name': 'placeholders', 'hide_viewport': False, 'hide_render': True}, # low-res markers / proxies for where assets will be spawned
{'name': 'unique_assets', 'hide_viewport': True, 'hide_render': False}, # actual hi-res assets spawned at each placeholder location
{'name': 'particleassets', 'hide_viewport': True, 'hide_render': False}, # actual hi-res assets spawned at each placeholder location
{'name': 'particles', 'hide_viewport': True, 'hide_render': False}, # actual particle emitters / particle systems
Expand Down

0 comments on commit 0c622a1

Please sign in to comment.