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:
authorWillian Padovani Germano <wpgermano@gmail.com>2008-05-17 00:57:06 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2008-05-17 00:57:06 +0400
commitbbe32118ef9a892c090accf0399362b0be085c92 (patch)
tree934aa31eab3e2290498d16ec0f07429b79cc4a86 /source/blender/python
parent9ed039efe06c0cee556096d0a49651f08d4c6b42 (diff)
== Nodes ==
- "Memoryblock free: attempt to free NULL pointer" messages related to the Material node (Add->Input->Material). Deleting it and quitting Blender would bring 2 or 3 of these warnings. Trivial fix (check if NULL) in blenkernel/intern/node.c, though Nodes devs may be interested. Found while testing to fix the following bug: == PyNodes == - Bug #11715 reported by Alexanter Feterman: http://projects.blender.org/tracker/?func=detail&atid=125&aid=11715&group_id=9 Adding a Dynamic node and setting it to a pynode script would crash Blender if no Material Node (MatNode) was present. Thanks Alexander for reporting and Brecht for assigning it to me.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/Node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Node.c b/source/blender/python/api2_2x/Node.c
index 24df6de66cc..92529023b7e 100644
--- a/source/blender/python/api2_2x/Node.c
+++ b/source/blender/python/api2_2x/Node.c
@@ -919,6 +919,8 @@ static int sockoutmap_set_attr(bNodeStack **stack, short type, short idx, PyObje
int i;
short len, wanted_len;
+ if (!stack || !stack[idx]) return 0; /* no MaterialNode */
+
if (type == SOCK_VALUE) {
val = PyNumber_Float(value);
if (!val)