Add resource node persistence
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user