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.
This commit is contained in:
Campbell Barton 2010-05-27 08:09:25 +00:00
parent ef0239fa6f
commit 9852543154

@ -999,7 +999,9 @@ static int object_select_name_exec(bContext *C, wmOperator *op)
}
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;
}