Skip to content

Commit

Permalink
deadlock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed May 17, 2024
1 parent 4456e88 commit bc1707b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fyrox-impl/src/engine/hotreload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@ impl SceneState {
resource_manager: &ResourceManager,
widget_constructors: &Arc<WidgetConstructorContainer>,
) -> Result<(), String> {
let script_message_sender = prefab.data_ref().scene.graph.script_message_sender.clone();
self.deserialize_into_scene_internal(
|handle: Handle<Node>, index, script| {
prefab.data_ref().scene.graph[handle].scripts[index].script = script;
},
|handle: Handle<Node>, node| {
prefab.data_ref().scene.graph[handle] = node;
},
prefab.data_ref().scene.graph.script_message_sender.clone(),
script_message_sender,
serialization_context,
resource_manager,
widget_constructors,
Expand Down

0 comments on commit bc1707b

Please sign in to comment.