Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
pvl-bot committed Jan 8, 2025
2 parents f0040a7 + e3316af commit 59a2574
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,8 @@ v1.12.2
- Add get_cmd.child_debug flag
- Usability improvements for integration test scripts
- Fix static asset import #391
- Fix indoor_asset_semantics.py typo #398
- Fix indoor_asset_semantics.py typo #398

v1.12.3
- Fix populate_collection missing argument 'cameras'
- Fix split_in_view crash for dist_max=None
2 changes: 1 addition & 1 deletion infinigen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
from pathlib import Path

__version__ = "1.12.2"
__version__ = "1.12.3"


def repo_root():
Expand Down
2 changes: 1 addition & 1 deletion infinigen/core/placement/placement.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def filter_populate_targets(
def populate_collection(
factory: AssetFactory,
placeholder_col: bpy.types.Collection,
cameras,
cameras: list[bpy.types.Object] = None,
asset_col_target=None,
dist_cull=None,
vis_cull=None,
Expand Down
8 changes: 7 additions & 1 deletion infinigen/core/placement/split_in_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ def compute_inview_distances(
bpy.context.scene.frame_set(frame)
for cam in cameras:
dists, vis_dists = compute_vis_dists(points, cam)
frame_cam_mask = (dists < dist_max) & (vis_dists < vis_margin)

frame_cam_mask = np.ones(len(points), dtype=bool)

if dist_max is not None:
frame_cam_mask &= dists < dist_max
if vis_margin is not None:
frame_cam_mask &= vis_dists < vis_margin

if frame_cam_mask.any():
min_vis_dists[frame_cam_mask] = np.minimum(
Expand Down

0 comments on commit 59a2574

Please sign in to comment.