Revision: 34706
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34706
Author:   campbellbarton
Date:     2011-02-08 01:43:16 +0000 (Tue, 08 Feb 2011)
Log Message:
-----------
fix [#25801] Shrinkwrap Offset problems with Project mode.

The positive result from the previous ray-cast is used again, inadvertently 
negating the offset from the first hit (acts as if no offset is applied).

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/shrinkwrap.c

Modified: trunk/blender/source/blender/blenkernel/intern/shrinkwrap.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/shrinkwrap.c 2011-02-08 
00:18:00 UTC (rev 34705)
+++ trunk/blender/source/blender/blenkernel/intern/shrinkwrap.c 2011-02-08 
01:43:16 UTC (rev 34706)
@@ -384,7 +384,7 @@
                        }
 
                        //Project over negative direction of axis
-                       if(use_normal & MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR)
+                       if(use_normal & MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR && 
hit.index == -1)
                        {
                                float inv_no[3];
                                negate_v3_v3(inv_no, tmp_no);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to