mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Skip empty AppliedPatchSets for sending changes.
This commit is contained in:
parent
2a6a8b42a6
commit
565c12405e
2 changed files with 11 additions and 3 deletions
|
|
@ -154,7 +154,9 @@ impl JobThreadContext {
|
|||
|
||||
for id in affected_ids {
|
||||
if let Some(patch) = compute_and_apply_changes(&mut tree, &self.vfs, id) {
|
||||
applied_patches.push(patch);
|
||||
if !patch.is_empty() {
|
||||
applied_patches.push(patch);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -253,7 +255,9 @@ impl JobThreadContext {
|
|||
apply_patch_set(&mut tree, patch_set)
|
||||
};
|
||||
|
||||
self.message_queue.push_messages(&[applied_patch]);
|
||||
if !applied_patch.is_empty() {
|
||||
self.message_queue.push_messages(&[applied_patch]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue