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:
authorCampbell Barton <ideasman42@gmail.com>2013-04-25 00:19:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-25 00:19:01 +0400
commit27d19aaaf449037f3437996406ed9b77c09831a2 (patch)
treeefbd11bfc23efec3ae067b803db95af01cbccc8f /source/blender/editors/space_node/node_draw.c
parent18b1ab1598b6b5b2623c170369ce0765c7e63533 (diff)
minor fixes
- build with netbsd works again. - select uv more/less was crashing when called outside image space. - node RNA property update was crashing when not called in node space.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 992caf5285f..3db1555757c 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -75,10 +75,13 @@ extern void ui_dropshadow(const rctf *rct, float radius, float aspect, float alp
void ED_node_tree_update(const bContext *C)
{
SpaceNode *snode = CTX_wm_space_node(C);
- snode_set_context(C);
-
- if (snode->nodetree && snode->nodetree->id.us == 0)
- snode->nodetree->id.us = 1;
+ if (snode) {
+ snode_set_context(C);
+
+ if (snode->nodetree && snode->nodetree->id.us == 0) {
+ snode->nodetree->id.us = 1;
+ }
+ }
}
/* id is supposed to contain a node tree */