Skip to content

Commit

Permalink
Hotfix v1.2.4: Fix TreeFactory(season='winter'), fix join_objects ign…
Browse files Browse the repository at this point in the history
…oring empty meshes
  • Loading branch information
araistrick committed Mar 5, 2024
1 parent 66a4493 commit 331b4e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ v1.1.0
- Add unit tests

v1.2.0
- Integrate OcMesher terrain option - see https://github.com/princeton-vl/OcMesher
- Integrate OcMesher terrain option - see https://github.com/princeton-vl/OcMesher

v1.2.4
- Fix TreeFactory crash for season='winter'
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.3"
__version__ = "1.2.4"
4 changes: 4 additions & 0 deletions infinigen/core/util/blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ def join_objects(objs, check_attributes=False):
else:
join_target.data.attributes.new(att.name, att.data_type, att.domain)

empty_objs = [o for o in objs if len(o.data.vertices) == 0]
objs = [o for o in objs if len(o.data.vertices) > 0]
delete(empty_objs)

select(objs)
bpy.context.view_layer.objects.active = objs[0]
bpy.ops.object.join()
Expand Down

0 comments on commit 331b4e5

Please sign in to comment.