Fix T52415: Copy/Pasting a mesh immediately crashes blender
authorDalai Felinto <dfelinto@gmail.com>
Wed, 16 Aug 2017 10:14:31 +0000 (12:14 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 16 Aug 2017 10:14:31 +0000 (12:14 +0200)
commit6bca0dcf7bd6c071f0b03234ac448d5e8e15fdc5
tree0bddf7e0450c8dd599e7f0e2b3fc45367aeab809
parent2b95617b152abab5ada310baca3e839df0546e07
Fix T52415: Copy/Pasting a mesh immediately crashes blender

Since the paste object is pasted in the active collection, and not on
its original one, we need to flush/calculate the new collection base
settings (visibility, selectability, ...).

DEG_id_tag_update() for the scene now. Though it may be better to tag
only the object specific IDs in the future.
source/blender/blenkernel/intern/blender_copybuffer.c