[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29018] trunk/blender/source/blender/ editors/object/object_select.c: make bpy.ops.object.select_name(name) also make the object active since Alt+RMB wasnt setting the object active.
Campbell Barton
ideasman42 at gmail.com
Thu May 27 10:09:25 CEST 2010
Revision: 29018
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29018
Author: campbellbarton
Date: 2010-05-27 10:09:25 +0200 (Thu, 27 May 2010)
Log Message:
-----------
make bpy.ops.object.select_name(name) also make the object active since Alt+RMB wasnt setting the object active.
if other tools need this not to switch the active object we could make setting active an option.
Modified Paths:
--------------
trunk/blender/source/blender/editors/object/object_select.c
Modified: trunk/blender/source/blender/editors/object/object_select.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_select.c 2010-05-27 07:45:57 UTC (rev 29017)
+++ trunk/blender/source/blender/editors/object/object_select.c 2010-05-27 08:09:25 UTC (rev 29018)
@@ -999,7 +999,9 @@
}
CTX_DATA_BEGIN(C, Base*, base, selectable_bases) {
+ /* this is a bit dodjy, there should only be ONE object with this name, but library objects can mess this up */
if(strcmp(name, base->object->id.name+2)==0) {
+ ED_base_object_activate(C, base);
ED_base_object_select(base, BA_SELECT);
changed= 1;
}
More information about the Bf-blender-cvs
mailing list