Revision: 24864
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24864
Author:   campbellbarton
Date:     2009-11-24 15:03:29 +0100 (Tue, 24 Nov 2009)

Log Message:
-----------
bugfix [#19983] clicking onto normal input of a material node crash
actually happened when clicking on any input

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/node.c

Modified: trunk/blender/source/blender/blenkernel/intern/node.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/node.c       2009-11-24 
12:55:04 UTC (rev 24863)
+++ trunk/blender/source/blender/blenkernel/intern/node.c       2009-11-24 
14:03:29 UTC (rev 24864)
@@ -1675,7 +1675,9 @@
        
        /* tag all thats in use */
        for(link= ntree->links.first; link; link= link->next) {
-               link->fromsock->flag |= SOCK_IN_USE;
+       
+               if(link->fromsock) // FIXME, see below
+                       link->fromsock->flag |= SOCK_IN_USE;
                if(link->tosock) // FIXME This can be NULL, when dragging a new 
link in the UI, should probably copy the node tree for preview render - campbell
                        link->tosock->flag |= SOCK_IN_USE;
        }


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to