batch remove .'s used with RNA_def_struct_ui_text
[blender.git] / source / blender / editors / space_view3d / view3d_snap.c
index 2ff45ea600ec26091df1bba7c1a4bdefa50894dd..807e0790e7982bfdbb51d77c130e81a6eeb7dc43 100644 (file)
@@ -555,7 +555,7 @@ void VIEW3D_OT_snap_selected_to_grid(wmOperatorType *ot)
        
        /* identifiers */
        ot->name= "Snap Selection to Grid";
-       ot->description= "Snap selected item(s) to nearest grid node.";
+       ot->description= "Snap selected item(s) to nearest grid node";
        ot->idname= "VIEW3D_OT_snap_selected_to_grid";
        
        /* api callbacks */
@@ -680,7 +680,7 @@ void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot)
        
        /* identifiers */
        ot->name= "Snap Selection to Cursor";
-       ot->description= "Snap selected item(s) to cursor.";
+       ot->description= "Snap selected item(s) to cursor";
        ot->idname= "VIEW3D_OT_snap_selected_to_cursor";
        
        /* api callbacks */
@@ -707,7 +707,7 @@ static int snap_curs_to_grid(bContext *C, wmOperator *op)
        curs[1]= gridf*floor(.5+curs[1]/gridf);
        curs[2]= gridf*floor(.5+curs[2]/gridf);
        
-       WM_event_add_notifier(C, NC_SCENE|ND_TRANSFORM, scene); // hrm
+       WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, v3d);        // hrm
        
        return OPERATOR_FINISHED;
 }
@@ -717,7 +717,7 @@ void VIEW3D_OT_snap_cursor_to_grid(wmOperatorType *ot)
        
        /* identifiers */
        ot->name= "Snap Cursor to Grid";
-       ot->description= "Snap cursor to nearest grid node.";
+       ot->description= "Snap cursor to nearest grid node";
        ot->idname= "VIEW3D_OT_snap_cursor_to_grid";
        
        /* api callbacks */
@@ -814,7 +814,7 @@ static int snap_curs_to_sel(bContext *C, wmOperator *op)
                        }
                }
        }
-       WM_event_add_notifier(C, NC_SCENE|ND_TRANSFORM, scene); // hrm
+       WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, v3d);
        
        return OPERATOR_FINISHED;
 }
@@ -824,7 +824,7 @@ void VIEW3D_OT_snap_cursor_to_selected(wmOperatorType *ot)
        
        /* identifiers */
        ot->name= "Snap Cursor to Selected";
-       ot->description= "Snap cursor to center of selected item(s)."; 
+       ot->description= "Snap cursor to center of selected item(s)"; 
        ot->idname= "VIEW3D_OT_snap_cursor_to_selected";
        
        /* api callbacks */
@@ -866,7 +866,7 @@ static int snap_curs_to_active(bContext *C, wmOperator *op)
                }
        }
        
-       WM_event_add_notifier(C, NC_SCENE|ND_TRANSFORM, scene);
+       WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, v3d);
        return OPERATOR_FINISHED;
 }
 
@@ -875,7 +875,7 @@ void VIEW3D_OT_snap_cursor_to_active(wmOperatorType *ot)
        
        /* identifiers */
        ot->name= "Snap Cursor to Active";
-       ot->description= "Snap cursor to active item.";
+       ot->description= "Snap cursor to active item";
        ot->idname= "VIEW3D_OT_snap_cursor_to_active";
        
        /* api callbacks */
@@ -1072,7 +1072,7 @@ void VIEW3D_OT_snap_selected_to_center(wmOperatorType *ot)
        
        /* identifiers */
        ot->name= "Snap Selection to Center";
-       ot->description= "Snap selected items to selections geometric center.";
+       ot->description= "Snap selected items to selections geometric center";
        ot->idname= "VIEW3D_OT_snap_selected_to_center";
        
        /* api callbacks */
@@ -1097,7 +1097,7 @@ static int snap_curs_to_center(bContext *C, wmOperator *op)
     curs[1]= 0.0;
     curs[2]= 0.0;
        
-    WM_event_add_notifier(C, NC_SCENE|ND_TRANSFORM, scene);    // hrm
+    WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, v3d);
        
     return OPERATOR_FINISHED;
 }