Fix #108495: Pasting a material crashes (back-port from main) #108567
Closed
Campbell Barton
wants to merge 1 commits from
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
ideasman42:pr-material-clipboard-paste-backport
into blender-v3.6-release
pull from: ideasman42:pr-material-clipboard-paste-backport
merge into: blender:blender-v3.6-release
blender:main
blender:brush-assets-project
blender:blender-v3.3-release
blender:blender-v3.6-release
blender:partial-write-refactor
blender:universal-scene-description
blender:blender-v4.1-release
blender:blender-v3.6-temp_wmoss_animrig_public
blender:temp-sculpt-dyntopo
blender:gpencil-next
blender:anim/animation-id-113594
blender:blender-v4.0-release
blender:blender-projects-basics
blender:bridge-curves
blender:sculpt-blender
blender:asset-browser-frontend-split
blender:asset-shelf
blender:tmp-usd-python-mtl
blender:tmp-usd-3.6
blender:blender-v3.5-release
blender:blender-v2.93-release
blender:realtime-clock
blender:sculpt-dev
blender:bevelv2
blender:xr-dev
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
Campbell Barton | 098feaf7bf |
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]: |