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:
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.
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue