Fix [#22429] Seg Fault when deleting a material from a pinned panel

This commit is contained in:
Matt Ebb
2010-05-28 07:16:55 +00:00
parent a6a1ede7a5
commit 1eb49d944f

View File

@@ -526,6 +526,11 @@ static void rna_SpaceProperties_pin_id_update(Main *bmain, Scene *scene, Pointer
SpaceButs *sbuts= (SpaceButs*)(ptr->data);
ID *id = sbuts->pinid;
if (id == NULL) {
sbuts->flag &= ~SB_PIN_CONTEXT;
return;
}
switch (GS(id->name)) {
case ID_MA:
WM_main_add_notifier(NC_MATERIAL|ND_SHADING, NULL);