diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-17 14:08:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-17 14:20:11 +0300 |
commit | 6ee2d10005a9e3f47ba6eed53d4e56b9e76f9842 (patch) | |
tree | cc14235e919a16242ac0d832bcab3c0a80195cf8 /source/blender/editors | |
parent | df5fae1fcc9a45c2a38faa1e61522afa70830346 (diff) |
Fix T69974: crashes in .blend files where 3D viewport was split
This was caused by a missing copy of the recently adding 3D viewport shading
ID properties.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index cfd0bf9a012..f398a122e61 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -345,6 +345,10 @@ static SpaceLink *view3d_duplicate(SpaceLink *sl) v3dn->shading.type = OB_SOLID; } + if (v3dn->shading.prop) { + v3dn->shading.prop = IDP_CopyProperty(v3do->shading.prop); + } + /* copy or clear inside new stuff */ v3dn->runtime.properties_storage = NULL; |