Fix (unreported) crash when changing active shapekey in Edit mode.

Looks like someone changed the signature of some RNA update callback,
and for some reason that 'change skey' update function was not updated
(or later got merged from master)...

We'll need RNA to check for its func signatures, some day...
This commit is contained in:
Bastien Montagne 2018-03-13 14:08:17 +01:00
parent 028580fd1e
commit c99c45a1e3
Notes: blender-bot 2023-12-08 16:39:08 +01:00
Referenced by issue #54310, Assert when enable Brush custom icon
1 changed files with 3 additions and 1 deletions

View File

@ -301,9 +301,11 @@ void rna_Object_internal_update_data(Main *UNUSED(bmain), Scene *UNUSED(scene),
WM_main_add_notifier(NC_OBJECT | ND_DRAW, ptr->id.data);
}
static void rna_Object_active_shape_update(bContext *C, Main *bmain, Scene *scene, PointerRNA *ptr)
static void rna_Object_active_shape_update(bContext *C, PointerRNA *ptr)
{
Object *ob = ptr->id.data;
Main *bmain = CTX_data_main(C);
Scene *scene = CTX_data_scene(C);
if (CTX_data_edit_object(C) == ob) {
/* exit/enter editmode to get new shape */