pub fn mark_children_as_dirty(layer: &mut Layer) -> bool {
		match layer.data {
			LayerDataType::Folder(ref mut folder) => {
				for sub_layer in folder.layers_mut() {
					if Document::mark_children_as_dirty(sub_layer) {
						layer.cache_dirty = true;
					}
				}
			}
			_ => layer.cache_dirty = true,
		}
		layer.cache_dirty
	}
/// Visit each layer recursively, marks all children as dirty
Visit each layer recursively, marks all children as dirty
Visit each layer recursively marks all children as dirty
pub fn mark_children_as_dirty(layer: &mut Layer) -> bool {
		match layer.data {
			LayerDataType::Folder(ref mut folder) => {
				for sub_layer in folder.layers_mut() {
					if Document::mark_children_as_dirty(sub_layer) {
						layer.cache_dirty = true;
					}
				}
			}
			_ => layer.cache_dirty = true,
		}
		layer.cache_dirty
	}
pub fn mark_children_as_dirty ( layer : & mut Layer ) -> bool { match layer . data { LayerDataType :: Folder ( ref mut folder ) => { for sub_layer in folder . layers_mut ( ) { if Document :: mark_children_as_dirty ( sub_layer ) { layer . cache_dirty = true ; } } } _ => layer . cache_dirty = true , } layer . cache_dirty }
Visit each layer recursively, marks all children as dirty
Visit each layer recursively marks all children as dirty
layer
&mut Layer
layer
&mut Layer