[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13029] trunk/blender/source/blender/ blenloader/intern/readfile.c: Bugfix - Socket selection status was not updated properly on file load

Juho Vepsalainen bebraw at gmail.com
Fri Dec 28 09:04:37 CET 2007


Revision: 13029
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13029
Author:   bebraw
Date:     2007-12-28 09:04:37 +0100 (Fri, 28 Dec 2007)

Log Message:
-----------
Bugfix - Socket selection status was not updated properly on file load
This commit adds a missing initialization that caused "Toggle Link (f key)"
not to work properly in case a file with an existing selection status was
opened.

Modified Paths:
--------------
    trunk/blender/source/blender/blenloader/intern/readfile.c

Modified: trunk/blender/source/blender/blenloader/intern/readfile.c
===================================================================
--- trunk/blender/source/blender/blenloader/intern/readfile.c	2007-12-27 22:58:32 UTC (rev 13028)
+++ trunk/blender/source/blender/blenloader/intern/readfile.c	2007-12-28 08:04:37 UTC (rev 13029)
@@ -1524,6 +1524,22 @@
 		link->tosock= newdataadr(fd, link->tosock);
 	}
 	
+	/* set selin and selout */
+	for(node= ntree->nodes.first; node; node= node->next) {
+		for(sock= node->inputs.first; sock; sock= sock->next) {
+			if(sock->flag & SOCK_SEL) {
+				ntree->selin= sock;
+				break;
+			}
+		}
+		for(sock= node->outputs.first; sock; sock= sock->next) {
+			if(sock->flag & SOCK_SEL) {
+				ntree->selout= sock;
+				break;
+			}
+		}
+	}
+	
 	/* type verification is in lib-link */
 }
 





More information about the Bf-blender-cvs mailing list