mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Move gear: the marker getter names the direct-write exception too (#11381)
Doc only: the getter's comment now says, as the field's does, that a direct write to DocState::active_layer through active_mut() bypasses the change marker. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
2e4ced2469
commit
d8bce6b97d
1 file changed
+4
-3
@@ -43,9 +43,10 @@ impl Session {
|
||||
self.active_generation
|
||||
}
|
||||
|
||||
/// Change marker: advances at least once whenever the active document or layer changes, by any
|
||||
/// path. Compare two readings for equality to know whether anything changed in between; it is
|
||||
/// not an exact count of operations.
|
||||
/// Change marker: advances at least once whenever the active document or layer changes through
|
||||
/// the `Session` API (see the field). Compare two readings for equality to know whether anything
|
||||
/// changed in between; it is not an exact count of operations. A direct write to
|
||||
/// `DocState::active_layer` through `active_mut()` bypasses it.
|
||||
pub fn active_layer_changes(&self) -> u64 {
|
||||
self.active_layer_changes
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user