Files
test2/source/blender/blenkernel/intern
Campbell Barton 64ead920a1 Fix #108495: Pasting a material crashes
References to data-blocks in a material were stored in-memory and could
crash if the data-blocks referenced by the material no longer existed
when pasting.

Resolve by using a blend-file for material copy/paste, matching how the
clipboard works in the 3D view-port.

Currently there is no support for including indirectly linked
data-blocks when pasting the material. Instead, data-blocks are restored
by name, by inspecting the current file.

This also fixes a crash where the `SpaceNode::nodetree` could point to
freed memory when pasting a material.

Ref !108496.

Includes contributions by @mont29.

---

Fix back-ported to main [0], including fix [1].

[0]: 5177e2f20b
[1]: 64aa96d421
2023-06-07 13:22:07 +10:00
..
2023-05-09 14:08:19 +10:00
2023-05-09 14:08:19 +10:00
2023-04-22 13:46:11 +02:00
2023-05-09 14:08:19 +10:00
2023-05-09 14:08:19 +10:00
2023-05-09 16:05:40 +02:00
2023-05-09 14:08:19 +10:00
2023-05-02 13:07:48 +02:00
2023-05-09 14:08:19 +10:00
2023-05-15 15:14:22 +02:00
2023-05-09 14:08:19 +10:00
2023-05-15 15:14:22 +02:00
2023-02-03 12:41:01 +11:00
2023-05-09 14:08:19 +10:00
2023-05-09 14:08:19 +10:00
2023-05-15 15:14:22 +02:00
2023-06-06 16:29:22 +02:00
2023-05-11 12:08:28 +12:00
2023-05-15 15:14:22 +02:00
2023-05-15 15:14:22 +02:00
2023-05-17 11:35:46 +12:00
2023-05-09 14:08:19 +10:00
2023-05-15 15:14:22 +02:00
2023-05-09 14:08:19 +10:00
2023-05-09 14:08:19 +10:00