[Bf-blender-cvs] [79955e5f85c] master: Docs: Note storage behavior of override operations in comment

Julian Eisel noreply at git.blender.org
Thu Aug 4 15:57:16 CEST 2022


Commit: 79955e5f85c2b05ae7f191af987b2ff743e764fc
Author: Julian Eisel
Date:   Thu Aug 4 15:49:37 2022 +0200
Branches: master
https://developer.blender.org/rB79955e5f85c2b05ae7f191af987b2ff743e764fc

Docs: Note storage behavior of override operations in comment

It's not obvious that override property operations are recreated on undo
pushes, which caused me some confusion. Comment on this, so it's clear
that pointers to the operations shouldn't be stored.

===================================================================

M	source/blender/makesdna/DNA_ID.h

===================================================================

diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index 7cecead8230..b3a07f7ff37 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -256,6 +256,7 @@ typedef struct IDOverrideLibraryProperty {
 
   /**
    * List of overriding operations (IDOverrideLibraryPropertyOperation) applied to this property.
+   * Recreated as part of the diffing, so do not store any of these elsewhere.
    */
   ListBase operations;



More information about the Bf-blender-cvs mailing list