Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
araistrick committed Aug 4, 2024
2 parents 8d07936 + 792d170 commit 4a4411e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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.6.0-dev"
__version__ = "1.6.1"


def repo_root():
Expand Down
8 changes: 6 additions & 2 deletions infinigen/core/nodes/node_wrangler.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,12 @@ def new_node(
node.name = label

if attrs is not None:
for key, val in attrs.items():
setattr(node, key, val)
for key_path, val in attrs.items():
keys = key_path.split(".")
obj = node
for key in keys[:-1]:
obj = getattr(obj, key)
setattr(obj, keys[-1], val)

if node_type in [
Nodes.VoronoiTexture,
Expand Down

0 comments on commit 4a4411e

Please sign in to comment.