diff --git a/client/web/src/components/panels/Document.vue b/client/web/src/components/panels/Document.vue
index 672fd591..a03193e4 100644
--- a/client/web/src/components/panels/Document.vue
+++ b/client/web/src/components/panels/Document.vue
@@ -112,7 +112,7 @@
-
+
diff --git a/core/document/src/document.rs b/core/document/src/document.rs
index b659aaa9..93b471be 100644
--- a/core/document/src/document.rs
+++ b/core/document/src/document.rs
@@ -227,6 +227,16 @@ impl Document {
Ok(())
}
+ fn mark_as_dirty(&mut self, path: &[LayerId]) -> Result<(), DocumentError> {
+ let mut root = &mut self.root;
+ root.cache_dirty = true;
+ for id in path {
+ root = root.as_folder_mut()?.layer_mut(*id).ok_or(DocumentError::LayerNotFound)?;
+ root.cache_dirty = true;
+ }
+ Ok(())
+ }
+
/// Mutate the document by applying the `operation` to it. If the operation necessitates a
/// reaction from the frontend, responses may be returned.
pub fn handle_operation(&mut self, operation: Operation) -> Result