Bugfix #20964: Loopcut with X-Ray draw mode draws no cuts
authorJoshua Leung <aligorith@gmail.com>
Tue, 9 Feb 2010 09:56:04 +0000 (09:56 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 9 Feb 2010 09:56:04 +0000 (09:56 +0000)
Moved the special region "post draw" callback execution stuff to after XRay and Transp object drawing.

source/blender/editors/space_view3d/view3d_draw.c

index e744252889a59ff46548275084449bffb74c8643..3c5b8c0abc7a62ce3e44a48207344324f68712b4 100644 (file)
@@ -2121,8 +2121,6 @@ void view3d_main_area_draw(const bContext *C, ARegion *ar)
                view3d_update_depths(ar, v3d);
        }
        
-       ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW);
-       
 //     REEB_draw();
        
 //     if(scene->radio) RAD_drawall(v3d->drawtype>=OB_SOLID);
@@ -2131,6 +2129,8 @@ void view3d_main_area_draw(const bContext *C, ARegion *ar)
        view3d_draw_transp(scene, ar, v3d);
        view3d_draw_xray(scene, ar, v3d, 1);    // clears zbuffer if it is used!
        
+       ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW);
+       
        if(!retopo && sculptparticle && (obact && (OBACT->dtx & OB_DRAWXRAY))) {
                view3d_update_depths(ar, v3d);
        }