Bprojection: another fix for key map, in the futur I will attemp to do something...
authorGeo Kgeo <kgeogeo@hotmail.com>
Sun, 16 Dec 2012 11:40:45 +0000 (11:40 +0000)
committerGeo Kgeo <kgeogeo@hotmail.com>
Sun, 16 Dec 2012 11:40:45 +0000 (11:40 +0000)
space_view3d_paint_bprojection.py

index f6d9cd9f64f97db3599dae1e7aa01dc1a38274b2..b19e6b895aaaf0f7d23459e1770d2404cdb6ae66 100644 (file)
@@ -814,24 +814,24 @@ class AddBProjectionPlane(Operator):
             # ----------------------------------------------
             # XXX, this isnt future proof, DON'T USE INDEX's - campbell                    
             km = bpy.data.window_managers['WinMan'].keyconfigs['Blender'].keymaps['3D View']
-            km.keymap_items[3-1].idname = 'view3d.rotate_view3d'
-            km.keymap_items[22-1].idname = 'view3d.zoom_view3d'
-            km.keymap_items[22-1].properties.delta = 1.0
-            km.keymap_items[23-1].idname = 'view3d.zoom_view3d'
-            km.keymap_items[23-1].properties.delta = -1.0
-            km.keymap_items[4-1].idname = 'view3d.pan_view3d'
-            km.keymap_items[29-1].idname = 'view3d.preset_view3d'
-            km.keymap_items[29-1].properties.view = 'FRONT'
-            km.keymap_items[31-1].idname = 'view3d.preset_view3d'
-            km.keymap_items[31-1].properties.view = 'RIGHT'            
-            km.keymap_items[35-1].idname = 'view3d.preset_view3d'
-            km.keymap_items[35-1].properties.view = 'TOP'
-            km.keymap_items[37-1].idname = 'view3d.preset_view3d'
-            km.keymap_items[37-1].properties.view = 'BACK'
-            km.keymap_items[38-1].idname = 'view3d.preset_view3d'
-            km.keymap_items[38-1].properties.view = 'LEFT'            
-            km.keymap_items[39-1].idname = 'view3d.preset_view3d'
-            km.keymap_items[39-1].properties.view = 'BOTTOM'                                   
+            km.keymap_items[6-1].idname = 'view3d.rotate_view3d'
+            km.keymap_items[25-1].idname = 'view3d.zoom_view3d'
+            km.keymap_items[25-1].properties.delta = 1.0
+            km.keymap_items[26-1].idname = 'view3d.zoom_view3d'
+            km.keymap_items[26-1].properties.delta = -1.0
+            km.keymap_items[7-1].idname = 'view3d.pan_view3d'
+            km.keymap_items[34-1].idname = 'view3d.preset_view3d'
+            km.keymap_items[34-1].properties.view = 'FRONT'
+            km.keymap_items[36-1].idname = 'view3d.preset_view3d'
+            km.keymap_items[36-1].properties.view = 'RIGHT'            
+            km.keymap_items[40-1].idname = 'view3d.preset_view3d'
+            km.keymap_items[40-1].properties.view = 'TOP'
+            km.keymap_items[42-1].idname = 'view3d.preset_view3d'
+            km.keymap_items[42-1].properties.view = 'BACK'
+            km.keymap_items[43-1].idname = 'view3d.preset_view3d'
+            km.keymap_items[43-1].properties.view = 'LEFT'            
+            km.keymap_items[44-1].idname = 'view3d.preset_view3d'
+            km.keymap_items[44-1].properties.view = 'BOTTOM'                                   
             km = context.window_manager.keyconfigs.default.keymaps['Image Paint']
             kmi = km.keymap_items.new("object.intuitivescale", 'LEFTMOUSE', 'PRESS', shift=True)
                         
@@ -925,24 +925,24 @@ def reinitkey():
     km = bpy.data.window_managers['WinMan'].keyconfigs['Blender'].keymaps['3D View']
     # ----------------------------------------------
     # XXX, this isnt future proof, DON'T USE INDEX's - campbell
-    km.keymap_items[3-1].idname = 'view3d.rotate'
-    km.keymap_items[22-1].idname = 'view3d.zoom'
-    km.keymap_items[22-1].properties.delta = 1.0
-    km.keymap_items[23-1].idname = 'view3d.zoom'
-    km.keymap_items[23-1].properties.delta = -1.0
-    km.keymap_items[4-1].idname = 'view3d.move'
-    km.keymap_items[29-1].idname = 'view3d.viewnumpad'
-    km.keymap_items[29-1].properties.type = 'FRONT'
-    km.keymap_items[31-1].idname = 'view3d.viewnumpad'
-    km.keymap_items[31-1].properties.type = 'RIGHT'            
-    km.keymap_items[35-1].idname = 'view3d.viewnumpad'
-    km.keymap_items[35-1].properties.type = 'TOP'
-    km.keymap_items[37-1].idname = 'view3d.viewnumpad'
-    km.keymap_items[37-1].properties.type = 'BACK'
-    km.keymap_items[38-1].idname = 'view3d.viewnumpad'
-    km.keymap_items[38-1].properties.type = 'LEFT'            
-    km.keymap_items[39-1].idname = 'view3d.viewnumpad'
-    km.keymap_items[39-1].properties.type = 'BOTTOM'            
+    km.keymap_items[6-1].idname = 'view3d.rotate'
+    km.keymap_items[25-1].idname = 'view3d.zoom'
+    km.keymap_items[25-1].properties.delta = 1.0
+    km.keymap_items[26-1].idname = 'view3d.zoom'
+    km.keymap_items[26-1].properties.delta = -1.0
+    km.keymap_items[7-1].idname = 'view3d.move'
+    km.keymap_items[34-1].idname = 'view3d.viewnumpad'
+    km.keymap_items[34-1].properties.type = 'FRONT'
+    km.keymap_items[36-1].idname = 'view3d.viewnumpad'
+    km.keymap_items[36-1].properties.type = 'RIGHT'            
+    km.keymap_items[40-1].idname = 'view3d.viewnumpad'
+    km.keymap_items[40-1].properties.type = 'TOP'
+    km.keymap_items[42-1].idname = 'view3d.viewnumpad'
+    km.keymap_items[42-1].properties.type = 'BACK'
+    km.keymap_items[43-1].idname = 'view3d.viewnumpad'
+    km.keymap_items[43-1].properties.type = 'LEFT'            
+    km.keymap_items[44-1].idname = 'view3d.viewnumpad'
+    km.keymap_items[44-1].properties.type = 'BOTTOM'            
             
     km = bpy.context.window_manager.keyconfigs.default.keymaps['Image Paint']
     #to do