[Bf-blender-cvs] [947a5cd] PSketch: PSculpt: Code Cleanup - Remove dead code

Joshua Leung noreply at git.blender.org
Sun Jan 31 14:29:12 CET 2016


Commit: 947a5cd435e6a5f501204af704cc974fcb4a1f2d
Author: Joshua Leung
Date:   Fri Jan 15 21:42:57 2016 +1300
Branches: PSketch
https://developer.blender.org/rB947a5cd435e6a5f501204af704cc974fcb4a1f2d

PSculpt: Code Cleanup - Remove dead code

===================================================================

M	source/blender/editors/armature/pose_sculpt.c

===================================================================

diff --git a/source/blender/editors/armature/pose_sculpt.c b/source/blender/editors/armature/pose_sculpt.c
index e0fc993..f172e4b 100644
--- a/source/blender/editors/armature/pose_sculpt.c
+++ b/source/blender/editors/armature/pose_sculpt.c
@@ -237,24 +237,6 @@ static void psculpt_init_view3d_data(bContext *C, tPSculptContext *data)
 	
 	/* hook up 3D View context */
 	view3d_set_viewcontext(C, &data->vc);
-	
-#if 0
-	/* note, the object argument means the modelview matrix does not account for the objects matrix, use viewmat rather than (obmat * viewmat) */
-	view3d_get_transformation(data->vc.ar, data->vc.rv3d, NULL, &data->mats);
-
-	if ((data->vc.v3d->drawtype>OB_WIRE) && (data->vc.v3d->flag & V3D_ZBUF_SELECT)) {
-		if (data->vc.v3d->flag & V3D_INVALID_BACKBUF) {
-			/* needed or else the draw matrix can be incorrect */
-			view3d_operator_needs_opengl(C);
-			
-			view3d_validate_backbuf(&data->vc);
-			/* we may need to force an update here by setting the rv3d as dirty
-			 * for now it seems ok, but take care!:
-			 * rv3d->depths->dirty = 1; */
-			ED_view3d_depth_update(data->vc.ar);
-		}
-	}
-#endif
 }
 
 /* Brush Utilities ---------------------------------------- */




More information about the Bf-blender-cvs mailing list