[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56445] trunk/blender/intern/cycles/ blender/blender_python.cpp: Fix for bug reported by Thomas Dinges on IRC: OSL script node was not initializing the data_type variable for shader sockets and so tried to set a non-existing float RNA property , leading to failed assert.
Lukas Toenne
lukas.toenne at googlemail.com
Wed May 1 15:28:44 CEST 2013
Revision: 56445
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56445
Author: lukastoenne
Date: 2013-05-01 13:28:44 +0000 (Wed, 01 May 2013)
Log Message:
-----------
Fix for bug reported by Thomas Dinges on IRC: OSL script node was not initializing the data_type variable for shader sockets and so tried to set a non-existing float RNA property, leading to failed assert.
Modified Paths:
--------------
trunk/blender/intern/cycles/blender/blender_python.cpp
Modified: trunk/blender/intern/cycles/blender/blender_python.cpp
===================================================================
--- trunk/blender/intern/cycles/blender/blender_python.cpp 2013-05-01 13:21:15 UTC (rev 56444)
+++ trunk/blender/intern/cycles/blender/blender_python.cpp 2013-05-01 13:28:44 UTC (rev 56445)
@@ -258,6 +258,7 @@
if(param->isclosure) {
socket_type = "NodeSocketShader";
+ data_type = BL::NodeSocket::type_SHADER;
}
else if(param->type.vecsemantics == TypeDesc::COLOR) {
socket_type = "NodeSocketColor";
More information about the Bf-blender-cvs
mailing list