bugfix for 33746 Unable to add Controller to objects correctly
authorDalai Felinto <dfelinto@gmail.com>
Sat, 26 Jan 2013 02:46:07 +0000 (02:46 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Sat, 26 Jan 2013 02:46:07 +0000 (02:46 +0000)
(live from the global game jam Vancouver ;)

source/blender/editors/interface/interface_handlers.c

index 0d65cd1903405ea3eaebd3caf82ba019d9a67c60..30b95b0e9dccb4bb9721d5b71930cd2aae6d99ab 100644 (file)
@@ -880,7 +880,6 @@ static void ui_add_smart_controller(bContext *C, uiBut *from, uiBut *to)
        RNA_pointer_create((ID *)ob, &RNA_Object, ob, &object_ptr);
        
        WM_operator_properties_create(&props_ptr, "LOGIC_OT_controller_add");
-       RNA_string_set(&props_ptr, "object", ob->id.name + 2);
 
        /* (3) add a new controller */
        if (WM_operator_name_call(C, "LOGIC_OT_controller_add", WM_OP_EXEC_DEFAULT, &props_ptr) & OPERATOR_FINISHED) {