diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-08 17:20:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-08 18:27:40 +0300 |
commit | f8385de5edd67becf91f09e4974e102450a69238 (patch) | |
tree | 4e0d79a9366c07b2cddff9a9b438c00c2db28dc0 /source/blender/editors/space_view3d | |
parent | ffdeba49e6ebdbe85e473e2d36faa4374e1f456a (diff) |
Remove redundant NULL check
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index d2f53a20451..b7f2f48dece 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -4665,7 +4665,7 @@ void ED_view3d_cursor3d_update(bContext *C, const int mval[2]) } } - if (v3d && v3d->localvd) + if (v3d->localvd) WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, v3d); else WM_event_add_notifier(C, NC_SCENE | NA_EDITED, scene); @@ -4675,7 +4675,7 @@ static int view3d_cursor3d_invoke(bContext *C, wmOperator *UNUSED(op), const wmE { ED_view3d_cursor3d_update(C, event->mval); - return OPERATOR_FINISHED; + return OPERATOR_FINISHED; } void VIEW3D_OT_cursor3d(wmOperatorType *ot) |