diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-11-30 01:16:29 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-11-30 01:16:29 +0300 |
commit | cd154da9732962870339952898499ed1b1c32d93 (patch) | |
tree | f59446523990d985a92542ab781d7707c8753009 /release | |
parent | 92b4316708bad0448f4c433ef9c6c2d3cc1f4fb5 (diff) |
1. Extend option for 3d view border select now does something (default True to keep same behavior)
2. Add action parameter to Select_All_Toggle operators, rename to Select_All.
Options are Toggle (default), Select, Deselect, Invert (same as select swap). This makes it possible to map separate hotkeys for select all and deselect all.
NOTE for Aligorith: I didn't change animation operators for select_all which already had an Invert operator. These should be fixed eventually.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/io/import_anim_bvh.py | 4 | ||||
-rw-r--r-- | release/scripts/io/import_scene_obj.py | 4 | ||||
-rw-r--r-- | release/scripts/ui/space_image.py | 2 | ||||
-rw-r--r-- | release/scripts/ui/space_view3d.py | 16 |
4 files changed, 13 insertions, 13 deletions
diff --git a/release/scripts/io/import_anim_bvh.py b/release/scripts/io/import_anim_bvh.py index 9f7063b24cf..bb0f486b09e 100644 --- a/release/scripts/io/import_anim_bvh.py +++ b/release/scripts/io/import_anim_bvh.py @@ -399,7 +399,7 @@ def bvh_node_dict2armature(context, bvh_nodes, IMPORT_START_FRAME= 1, IMPORT_LOO #XXX - sloppy operator code bpy.ops.armature.delete() - bpy.ops.armature.select_all_toggle() + bpy.ops.armature.select_all() bpy.ops.armature.delete() ZERO_AREA_BONES= [] @@ -484,7 +484,7 @@ def bvh_node_dict2armature(context, bvh_nodes, IMPORT_START_FRAME= 1, IMPORT_LOO pass - bpy.ops.pose.select_all_toggle() # set + bpy.ops.pose.select_all() # set bpy.ops.anim.keyframe_insert_menu(type=-4) # XXX - -4 ??? diff --git a/release/scripts/io/import_scene_obj.py b/release/scripts/io/import_scene_obj.py index a1996266674..febd1174a06 100644 --- a/release/scripts/io/import_scene_obj.py +++ b/release/scripts/io/import_scene_obj.py @@ -1277,7 +1277,7 @@ def load_obj(filepath, # deselect all # if context.selected_objects: -# bpy.ops.OBJECT_OT_select_all_toggle() +# bpy.ops.OBJECT_OT_select_all() scene = context.scene # scn = bpy.data.scenes.active @@ -1640,5 +1640,5 @@ menu_item = dynamic_menu.add(bpy.types.INFO_MT_file_import, menu_func) # search image in bpy.config.textureDir - load_image # replaced BPyImage.comprehensiveImageLoad with a simplified version that only checks additional directory specified, but doesn't search dirs recursively (obj_image_load) # bitmask won't work? - 132 -# uses operator bpy.ops.OBJECT_OT_select_all_toggle() to deselect all (not necessary?) +# uses operator bpy.ops.OBJECT_OT_select_all() to deselect all (not necessary?) # uses bpy.sys.time() diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index 32c5dbb9375..ea8ed19d31b 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -75,7 +75,7 @@ class IMAGE_MT_select(bpy.types.Menu): layout.separator() - layout.operator("uv.select_all_toggle") + layout.operator("uv.select_all") layout.operator("uv.select_inverse") layout.operator("uv.unlink_selection") diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py index 5b33fbecac2..58954601337 100644 --- a/release/scripts/ui/space_view3d.py +++ b/release/scripts/ui/space_view3d.py @@ -364,7 +364,7 @@ class VIEW3D_MT_select_object(bpy.types.Menu): layout.separator() - layout.operator("object.select_all_toggle", text="Select/Deselect All") + layout.operator("object.select_all", text="Select/Deselect All") layout.operator("object.select_inverse", text="Inverse") layout.operator("object.select_random", text="Random") layout.operator("object.select_mirror", text="Mirror") @@ -388,7 +388,7 @@ class VIEW3D_MT_select_pose(bpy.types.Menu): layout.separator() - layout.operator("pose.select_all_toggle", text="Select/Deselect All") + layout.operator("pose.select_all", text="Select/Deselect All") layout.operator("pose.select_inverse", text="Inverse") layout.operator("pose.select_constraint_target", text="Constraint Target") layout.operator("pose.select_linked", text="Linked") @@ -419,7 +419,7 @@ class VIEW3D_MT_select_particle(bpy.types.Menu): layout.separator() - layout.operator("particle.select_all_toggle", text="Select/Deselect All") + layout.operator("particle.select_all", text="Select/Deselect All") layout.operator("particle.select_linked") layout.operator("particle.select_inverse") @@ -445,7 +445,7 @@ class VIEW3D_MT_select_edit_mesh(bpy.types.Menu): layout.separator() - layout.operator("mesh.select_all_toggle", text="Select/Deselect All") + layout.operator("mesh.select_all", text="Select/Deselect All") layout.operator("mesh.select_inverse", text="Inverse") layout.separator() @@ -494,7 +494,7 @@ class VIEW3D_MT_select_edit_curve(bpy.types.Menu): layout.separator() - layout.operator("curve.select_all_toggle", text="Select/Deselect All") + layout.operator("curve.select_all", text="Select/Deselect All") layout.operator("curve.select_inverse") layout.operator("curve.select_random") layout.operator("curve.select_every_nth") @@ -523,7 +523,7 @@ class VIEW3D_MT_select_edit_surface(bpy.types.Menu): layout.separator() - layout.operator("curve.select_all_toggle", text="Select/Deselect All") + layout.operator("curve.select_all", text="Select/Deselect All") layout.operator("curve.select_inverse") layout.operator("curve.select_random") layout.operator("curve.select_every_nth") @@ -566,7 +566,7 @@ class VIEW3D_MT_select_edit_lattice(bpy.types.Menu): layout.separator() - layout.operator("lattice.select_all_toggle", text="Select/Deselect All") + layout.operator("lattice.select_all", text="Select/Deselect All") class VIEW3D_MT_select_edit_armature(bpy.types.Menu): @@ -580,7 +580,7 @@ class VIEW3D_MT_select_edit_armature(bpy.types.Menu): layout.separator() - layout.operator("armature.select_all_toggle", text="Select/Deselect All") + layout.operator("armature.select_all", text="Select/Deselect All") layout.operator("armature.select_inverse", text="Inverse") layout.separator() |