[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53272] trunk/blender/source/blender/ editors/space_outliner/outliner_select.c: Bug - old code, not working for new outliner view: Click on World needed a context check.

Ton Roosendaal ton at blender.org
Sat Dec 22 16:10:05 CET 2012


Revision: 53272
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53272
Author:   ton
Date:     2012-12-22 15:10:04 +0000 (Sat, 22 Dec 2012)
Log Message:
-----------
Bug - old code, not working for new outliner view: Click on World needed a context check.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner_select.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner_select.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner_select.c	2012-12-22 14:58:01 UTC (rev 53271)
+++ trunk/blender/source/blender/editors/space_outliner/outliner_select.c	2012-12-22 15:10:04 UTC (rev 53272)
@@ -336,7 +336,8 @@
 	tep = te->parent;
 	if (tep) {
 		tselem = TREESTORE(tep);
-		sce = (Scene *)tselem->id;
+		if (tselem->type == 0)
+			sce = (Scene *)tselem->id;
 	}
 	
 	if (set) {  // make new scene active




More information about the Bf-blender-cvs mailing list