Fix for [#27142] manipulator in particle mode does not work
authorJanne Karhu <jhkarh@gmail.com>
Sun, 15 May 2011 16:42:39 +0000 (16:42 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Sun, 15 May 2011 16:42:39 +0000 (16:42 +0000)
* Manipulator operator wasn't registered in particle mode.

source/blender/editors/physics/physics_ops.c

index aafa5a185edb0a37886ad221ca908189ddcaeb34..56bd8b975320fa81c6bdec3029e1f7af15820b37 100644 (file)
@@ -110,6 +110,9 @@ static void keymap_particle(wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "PARTICLE_OT_hide", HKEY, KM_PRESS, 0, 0);
        RNA_boolean_set(WM_keymap_add_item(keymap, "PARTICLE_OT_hide", HKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "unselected", 1);
 
+       kmi = WM_keymap_verify_item(keymap, "VIEW3D_OT_manipulator", LEFTMOUSE, KM_PRESS, KM_ANY, 0);
+       RNA_boolean_set(kmi->ptr, "release_confirm", 1);
+
        WM_keymap_add_item(keymap, "PARTICLE_OT_brush_edit", LEFTMOUSE, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "PARTICLE_OT_brush_edit", LEFTMOUSE, KM_PRESS, KM_SHIFT, 0);