Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-06 20:38:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-06 20:38:21 +0400
commit85540d5aa7abb487e546b5483fffeef2e6075af5 (patch)
tree61e47f78a9cbf29683434fa20c8a5f5d73da979e /source/blender/python/mathutils
parent7c88bc5952c7e9f8a7f48d00d94b335bd0169c2e (diff)
more macro --> BLI math lib, mainly replace VECCOPY in render and blenkernel.
Diffstat (limited to 'source/blender/python/mathutils')
-rw-r--r--source/blender/python/mathutils/mathutils_geometry.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index e8721a3a91d..3518c8008c6 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -97,14 +97,14 @@ static PyObject *M_Geometry_intersect_ray_tri(PyObject *UNUSED(self), PyObject*
if (BaseMath_ReadCallback(vec1) == -1 || BaseMath_ReadCallback(vec2) == -1 || BaseMath_ReadCallback(vec3) == -1 || BaseMath_ReadCallback(ray) == -1 || BaseMath_ReadCallback(ray_off) == -1)
return NULL;
- VECCOPY(v1, vec1->vec);
- VECCOPY(v2, vec2->vec);
- VECCOPY(v3, vec3->vec);
+ copy_v3_v3(v1, vec1->vec);
+ copy_v3_v3(v2, vec2->vec);
+ copy_v3_v3(v3, vec3->vec);
- VECCOPY(dir, ray->vec);
+ copy_v3_v3(dir, ray->vec);
normalize_v3(dir);
- VECCOPY(orig, ray_off->vec);
+ copy_v3_v3(orig, ray_off->vec);
/* find vectors for two edges sharing v1 */
sub_v3_v3v3(e1, v2, v1);
@@ -189,10 +189,10 @@ static PyObject *M_Geometry_intersect_line_line(PyObject *UNUSED(self), PyObject
int result;
if (vec1->size == 3) {
- VECCOPY(v1, vec1->vec);
- VECCOPY(v2, vec2->vec);
- VECCOPY(v3, vec3->vec);
- VECCOPY(v4, vec4->vec);
+ copy_v3_v3(v1, vec1->vec);
+ copy_v3_v3(v2, vec2->vec);
+ copy_v3_v3(v3, vec3->vec);
+ copy_v3_v3(v4, vec4->vec);
}
else {
v1[0]= vec1->vec[0];