Fix #22422: Adding a new shape key with unchecked 'Relative' checkbox crashes blender
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 27 May 2010 14:00:32 +0000 (14:00 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 27 May 2010 14:00:32 +0000 (14:00 +0000)
commit717701ed0f785f6452c37f412f43e08382694bc2
tree401750f64e0b62246ed17416f0038893485c71ed
parent8f8c59903d30681088f29ffd82d5e80ab06e0c8d
Fix #22422: Adding a new shape key with unchecked 'Relative' checkbox crashes blender

Reorder callning of add_keyblock and do_ob_key in insert_*key.
do_ob_key shouldn't be called for object with uninitialized key blocks.

NOTE: this commit not fixing problems with slurph
source/blender/blenkernel/intern/object.c