Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-05-28 11:16:55 +0400
committerMatt Ebb <matt@mke3.net>2010-05-28 11:16:55 +0400
commit1eb49d944fd1b77986e17ec7d6ceb2de2b569b0e (patch)
treed2f95463661131f11c93f286b23c8fae689dcba8 /source/blender
parenta6a1ede7a5da6e7afe1607ca3dd873b2f77f1c96 (diff)
Fix [#22429] Seg Fault when deleting a material from a pinned panel
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_space.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 500ea6ee429..47dccda58f2 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -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);