diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-16 17:49:51 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-16 17:49:51 +0400 |
commit | ed5815fc7fb6be111fca613d0500418c4955e217 (patch) | |
tree | e65f06166455fd45f72ba764b6fd3ae754ba02d3 /source/blender/editors/space_buttons/buttons_context.c | |
parent | 7177ee0245713ed22fda6e9ffbbac4e6391910c8 (diff) |
Fix #29243: unlink texture datablock from material node in texture properties
could crash, RNA pointer from context was invalid.
Diffstat (limited to 'source/blender/editors/space_buttons/buttons_context.c')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c index 9de804d275f..4c028612320 100644 --- a/source/blender/editors/space_buttons/buttons_context.c +++ b/source/blender/editors/space_buttons/buttons_context.c @@ -805,7 +805,7 @@ int buttons_context(const bContext *C, const char *member, bContextDataResult *r if(ma) { bNode *node= give_current_material_texture_node(ma); - CTX_data_pointer_set(result, &ma->id, &RNA_Node, node); + CTX_data_pointer_set(result, &ma->nodetree->id, &RNA_Node, node); } } |