[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20000] trunk/blender/source/gameengine/ Converter/BL_MeshDeformer.cpp: BGE fux #17796: Glsl + bones + set smooth = bug on vertext groups.

Ton Roosendaal ton at blender.org
Thu Apr 30 10:45:16 CEST 2009


Hi Benoit,

Congratulations with the 20000th commit :)

-Ton-

------------------------------------------------------------------------
Ton Roosendaal  Blender Foundation   ton at blender.org    www.blender.org
Blender Institute BV  Entrepotdok 57A  1018AD Amsterdam The Netherlands

On 30 Apr, 2009, at 10:02, Benoit Bolsee wrote:

> Revision: 20000
>            
> http://projects.blender.org/plugins/scmsvn/viewcvs.php? 
> view=rev&root=bf-blender&revision=20000
> Author:   ben2610
> Date:     2009-04-30 10:02:26 +0200 (Thu, 30 Apr 2009)
>
> Log Message:
> -----------
> BGE fux #17796: Glsl + bones + set smooth = bug on vertext groups.
>
> Modified Paths:
> --------------
>     trunk/blender/source/gameengine/Converter/BL_MeshDeformer.cpp
>
> Modified: trunk/blender/source/gameengine/Converter/BL_MeshDeformer.cpp
> ===================================================================
> ---  
> trunk/blender/source/gameengine/Converter/BL_MeshDeformer.cpp	2009-04 
> -30 08:01:31 UTC (rev 19999)
> +++  
> trunk/blender/source/gameengine/Converter/BL_MeshDeformer.cpp	2009-04 
> -30 08:02:26 UTC (rev 20000)
> @@ -47,6 +47,7 @@
>
>  #include "GEN_Map.h"
>  #include "STR_HashedString.h"
> +#include "BLI_arithb.h"
>
>  bool BL_MeshDeformer::Apply(RAS_IPolyMaterial*)
>  {
> @@ -166,6 +167,7 @@
>  				fnor[0]= n1[1]*n2[2] - n1[2]*n2[1];
>  				fnor[1]= n1[2]*n2[0] - n1[0]*n2[2];
>  				fnor[2]= n1[0]*n2[1] - n1[1]*n2[0];
> +				Normalize(fnor);
>
>  				/* add to vertices for smooth normals */
>  				float *vn1 = m_transnors[v1.getOrigIndex()];
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>



More information about the Bf-committers mailing list