fixed the problem. Thanks a lot Campbell

2010/5/6 Campbell Barton <[email protected]>:
> Revision: 28631
>          
> http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28631
> Author:   campbellbarton
> Date:     2010-05-07 00:07:03 +0200 (Fri, 07 May 2010)
>
> Log Message:
> -----------
> bugfix for own error [#22269] object vector operations (position) not working 
> properly after rev. 28471
>  double checked other get_index callbacks for the same error.
>
> Modified Paths:
> --------------
>    trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
>    trunk/blender/source/gameengine/Ketsji/KX_ObjectActuator.cpp
>
> Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
> ===================================================================
> --- trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp    2010-05-06 
> 21:31:16 UTC (rev 28630)
> +++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp    2010-05-06 
> 22:07:03 UTC (rev 28631)
> @@ -1355,12 +1355,9 @@
>
>  static int mathutils_kxgameob_vector_get_index(BaseMathObject *bmo, int 
> subtype, int index)
>  {
> -       float f[4];
>        /* lazy, avoid repeteing the case statement */
>        if(!mathutils_kxgameob_vector_get(bmo, subtype))
>                return 0;
> -
> -       bmo->data[index]= f[index];
>        return 1;
>  }
>
>
> Modified: trunk/blender/source/gameengine/Ketsji/KX_ObjectActuator.cpp
> ===================================================================
> --- trunk/blender/source/gameengine/Ketsji/KX_ObjectActuator.cpp        
> 2010-05-06 21:31:16 UTC (rev 28630)
> +++ trunk/blender/source/gameengine/Ketsji/KX_ObjectActuator.cpp        
> 2010-05-06 22:07:03 UTC (rev 28631)
> @@ -430,12 +430,9 @@
>
>  static int mathutils_obactu_vector_get_index(BaseMathObject *bmo, int 
> subtype, int index)
>  {
> -       float f[4];
>        /* lazy, avoid repeteing the case statement */
>        if(!mathutils_obactu_vector_get(bmo, subtype))
>                return 0;
> -
> -       bmo->data[index]= f[index];
>        return 1;
>  }
>
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to