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:
authorSergey Sharybin <sergey@blender.org>2022-02-02 14:02:36 +0300
committerSergey Sharybin <sergey@blender.org>2022-02-03 12:02:20 +0300
commit45d5773519bdd760d8ac1d8742a9471ebcbf5023 (patch)
tree8e751f9eef1e022d93243a4a2eb4ca0d0759d495 /source/blender/makesrna
parentc80411ce3b14a6b9d2181eb8c8c921932ed2709d (diff)
Cleanup: Use utility function to access original modifier in RNA
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_particle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index fbc7625d815..ff22a7758bb 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -368,7 +368,7 @@ static void rna_ParticleHairKey_co_object_set(ID *id,
/* Mark particle system as edited, so then particle_system_update() does not reset the hair
* keys from path. This behavior is similar to how particle edit mode sets flags. */
ParticleSystemModifierData *orig_modifier = (ParticleSystemModifierData *)
- modifier->modifier.orig_modifier_data;
+ BKE_modifier_get_original(&modifier->modifier);
orig_modifier->psys->flag |= PSYS_EDITED;
hair_key_location_object_set(hair_key, object, modifier, particle, co);