[Bf-blender-cvs] [45d5773519b] blender-v3.1-release: Cleanup: Use utility function to access original modifier in RNA

Sergey Sharybin noreply at git.blender.org
Thu Feb 3 10:02:27 CET 2022


Commit: 45d5773519bdd760d8ac1d8742a9471ebcbf5023
Author: Sergey Sharybin
Date:   Wed Feb 2 12:02:36 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rB45d5773519bdd760d8ac1d8742a9471ebcbf5023

Cleanup: Use utility function to access original modifier in RNA

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

M	source/blender/makesrna/intern/rna_particle.c

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

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);



More information about the Bf-blender-cvs mailing list