Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2010-01-25 22:42:33 +0300
committerMartin Poirier <theeth@yahoo.com>2010-01-25 22:42:33 +0300
commit4907e8df202cea41e52b33a0f6a6f852e3a07818 (patch)
tree44c2fa34059ed2870e3c6771c5e51141e263b88c /source/blender/editors/space_view3d/view3d_snap.c
parentc72fcc759bd8481033631a30be57befe54492496 (diff)
Remove unneeded notifier data added in revision 26219.
Fix a lot of notifier calls to stop abusing ND_TRANSFORM and use more appropriate data flags.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_snap.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_snap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c
index 2ff45ea600e..6d2638154d2 100644
--- a/source/blender/editors/space_view3d/view3d_snap.c
+++ b/source/blender/editors/space_view3d/view3d_snap.c
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}