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-14 20:19:13 +0300
committerSergey Sharybin <sergey@blender.org>2022-02-14 20:19:13 +0300
commit6ae08da5c8a1b39cfba0c8c3bd567321d0768f28 (patch)
tree2782e2bd34189f2129e5079c7deb4f54cbe24dd6 /source/blender/blenkernel/intern
parenta5edff4b73ba74155dcad93103e2fef2c59df67f (diff)
Fix T95756: Crash inserting geometry node after linking modifier
The root issue was caused by a mistake in modifier copy data which was wrongly re-generating source modifier data identifier. The c8cca8885181 simply exposed a bug in code which always was there since the modifiers session UUID was introduced. Shows an importance of const qualifier :)
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/modifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c
index 4f170535d18..d2fadbbd8ac 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -391,7 +391,7 @@ void BKE_modifier_copydata_ex(ModifierData *md, ModifierData *target, const int
}
else {
/* In the case copyData made full byte copy force UUID to be re-generated. */
- BKE_modifier_session_uuid_generate(md);
+ BKE_modifier_session_uuid_generate(target);
}
}