2.5 Weight Paint UI:
authorThomas Dinges <blender@dingto.org>
Fri, 1 Apr 2011 22:19:03 +0000 (22:19 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 1 Apr 2011 22:19:03 +0000 (22:19 +0000)
* Added menu entry for "Set Weight" Tool. Request by venomgfx :)

release/scripts/startup/bl_ui/space_view3d.py
source/blender/editors/sculpt_paint/paint_vertex.c

index d5930c3d14c00647fdb2cb6ae1c5f574515ff9f9..c83affef0e8acabcce781dd4c5b9636bc3fc7bc7 100644 (file)
@@ -1052,6 +1052,10 @@ class VIEW3D_MT_paint_weight(bpy.types.Menu):
         layout.operator("object.vertex_group_invert", text="Invert")
         layout.operator("object.vertex_group_clean", text="Clean")
         layout.operator("object.vertex_group_levels", text="Levels")
+        
+        layout.separator()
+        
+        layout.operator("paint.weight_set")
 
 # ********** Sculpt menu **********
 
index 7d8c3c70708f285636579a7516a99473f0c28c23..19c726616daa031b7c31733acd2b6532f687448a 100644 (file)
@@ -1687,7 +1687,7 @@ static int weight_paint_set_exec(bContext *C, wmOperator *UNUSED(op))
 void PAINT_OT_weight_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Weight Set";
+       ot->name= "Set Weight";
        ot->idname= "PAINT_OT_weight_set";
 
        /* api callbacks */