Fix T52314: New ID copy code (rBrB9da7dfa1586d) Breaks node previews in compositor.

"Just" forgot to copy data block's name in 'NO_MAIN' case... *sigh*
This commit is contained in:
Bastien Montagne 2017-08-10 10:26:22 +02:00
parent 422fddab87
commit a152743ba3
Notes: blender-bot 2023-02-14 08:06:35 +01:00
Referenced by issue #52314, New ID copy code (rBrB9da7dfa1586d) Breaks node previews in compositor.
1 changed files with 3 additions and 0 deletions

View File

@ -1132,6 +1132,9 @@ void *BKE_libblock_alloc(Main *bmain, short type, const char *name, const int fl
DAG_id_type_tag(bmain, type);
}
}
else {
BLI_strncpy(id->name + 2, name, sizeof(id->name) - 2);
}
}
return id;