Fix: Grease Pencil: Typo in animation mapping in join operator

This looks like a copy & paste mistake. Found while working on adding
access functions for FCurve RNA paths.

Pull Request: https://projects.blender.org/blender/blender/pulls/161792
This commit is contained in:
Hans Goudey 2026-07-22 17:58:41 +02:00 • committed by Hans Goudey
parent 2373a1b5ca
commit aacbf2815e

View file

@ -5833,7 +5833,7 @@ static void join_object_with_active(Main &bmain,
if (dtar->rna_path && strstr(dtar->rna_path, "layers[")) {
for (auto [name_src, name_dst] : layer_name_map.items()) {
if (name_dst != name_src) {
const char *old_path = fcu->rna_path;
const char *old_path = dtar->rna_path;
dtar->rna_path = BKE_animsys_fix_rna_path_rename(
id, dtar->rna_path, "layers", name_src, name_dst);
if (old_path != dtar->rna_path) {