Add resource node persistence

This commit is contained in:
2026-05-17 17:08:05 -07:00
parent 843340ebdc
commit 5da545e000
13 changed files with 276 additions and 4 deletions
+4
View File
@@ -864,6 +864,10 @@ def spawn_demo_actor(spec, height_values, materials, safe_spawn_location_xy=None
raise RuntimeError(f"Could not spawn {spec['label']}")
set_actor_label(actor, spec["label"])
try:
actor.set_editor_property("persistence_node_id", spec["label"])
except Exception:
pass
material_key = material_key_for_actor_label(spec["label"])
if material_key:
apply_material_to_actor_meshes(actor, materials[material_key])