Cleanup: replace commented out code by comment
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 15 Aug 2019 09:24:19 +0000 (11:24 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 15 Aug 2019 09:28:42 +0000 (11:28 +0200)
source/blender/editors/space_view3d/view3d_edit.c

index ec7c1c0b3b9840a7f64f961e7ab9fae1f73f14cf..9a9fe81a13e72dc4658125ec83713b20458dfe82 100644 (file)
@@ -517,9 +517,6 @@ static void viewops_data_create(bContext *C,
 static void viewops_data_free(bContext *C, wmOperator *op)
 {
   ARegion *ar;
-#if 0
-  Paint *p = BKE_paint_get_active_from_context(C);
-#endif
   if (op->customdata) {
     ViewOpsData *vod = op->customdata;
     ar = vod->ar;
@@ -536,12 +533,9 @@ static void viewops_data_free(bContext *C, wmOperator *op)
     ar = CTX_wm_region(C);
   }
 
-#if 0
-  if (p && (p->flags & PAINT_FAST_NAVIGATE))
-#endif
-  {
-    ED_region_tag_redraw(ar);
-  }
+  /* Need to redraw because drawing code uses RV3D_NAVIGATING to draw
+   * faster while navigation operator runs. */
+  ED_region_tag_redraw(ar);
 }
 
 /** \} */