[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53322] trunk/blender/source/blender: make weight paint respect box & near clipping.

Campbell Barton ideasman42 at gmail.com
Tue Dec 25 15:09:53 CET 2012


Revision: 53322
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53322
Author:   campbellbarton
Date:     2012-12-25 14:09:51 +0000 (Tue, 25 Dec 2012)
Log Message:
-----------
make weight paint respect box & near clipping.

also replace strncmp with BLI_path_ncmp for BLI_rebase_path, (so its case insensitive on windows)

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/path_util.c
    trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c

Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c	2012-12-25 14:03:28 UTC (rev 53321)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c	2012-12-25 14:09:51 UTC (rev 53322)
@@ -1619,7 +1619,7 @@
 	rel_dir[0] = 0;
 
 	/* if image is "below" current .blend file directory */
-	if (!strncmp(path, blend_dir, len)) {
+	if (!BLI_path_ncmp(path, blend_dir, len)) {
 
 		/* if image is _in_ current .blend file directory */
 		if (BLI_path_cmp(dir, blend_dir) == 0) {

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-12-25 14:03:28 UTC (rev 53321)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-12-25 14:09:51 UTC (rev 53322)
@@ -868,7 +868,10 @@
 {
 	float vertco[2];
 
-	if (ED_view3d_project_float_global(vc->ar, co, vertco, V3D_PROJ_TEST_NOP) == V3D_PROJ_RET_OK) {
+	if (ED_view3d_project_float_global(vc->ar,
+	                                   co, vertco,
+	                                   V3D_PROJ_TEST_CLIP_BB | V3D_PROJ_TEST_CLIP_NEAR) == V3D_PROJ_RET_OK)
+	{
 		float delta[2];
 		float dist_squared;
 




More information about the Bf-blender-cvs mailing list