Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_dynamicpaint_types.h5
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_dynamicpaint_types.h b/source/blender/makesdna/DNA_dynamicpaint_types.h
index 24dc90d6c21..c8e09225432 100644
--- a/source/blender/makesdna/DNA_dynamicpaint_types.h
+++ b/source/blender/makesdna/DNA_dynamicpaint_types.h
@@ -241,6 +241,11 @@ enum {
typedef struct DynamicPaintBrushSettings {
/** For fast RNA access. */
struct DynamicPaintModifierData *pmd;
+
+ /* NOTE: Storing the particle system pointer here is very weak, as it prevents modfiers' data
+ * copying to be self-sufficient (extra external code needs to ensure the pointer remains valid
+ * when the modifier data is copied from one object to another). See e.g.
+ * `BKE_object_copy_particlesystems` or `BKE_object_copy_modifier`. */
struct ParticleSystem *psys;
int flags;
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index 03cf4aca963..3de4299e0bd 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -984,6 +984,10 @@ enum {
typedef struct ParticleSystemModifierData {
ModifierData modifier;
+ /* NOTE: Storing the particle system pointer here is very weak, as it prevents modfiers' data
+ * copying to be self-sufficient (extra external code needs to ensure the pointer remains valid
+ * when the modifier data is copied from one object to another). See e.g.
+ * `BKE_object_copy_particlesystems` or `BKE_object_copy_modifier`. */
struct ParticleSystem *psys;
/** Final Mesh - its topology may differ from orig mesh. */
struct Mesh *mesh_final;