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:
authorAndre Susano Pinto <andresusanopinto@gmail.com>2008-08-06 19:46:38 +0400
committerAndre Susano Pinto <andresusanopinto@gmail.com>2008-08-06 19:46:38 +0400
commite57c5ef56c306fe495346525fb9d1f9bcf8cfd2b (patch)
tree583288ed1eab4ad4cc3fb7b6a6f8fc2115b1c245 /source/blender/blenkernel/intern/deform.c
parent2d04b641d4eb6d6e20a72067c1f55f2d4a6cdd9a (diff)
Fixed non_recursive BVHbuild with openmp
CHanged the BENCH functions to use: gettimeofday (wall time) instead of clock (cpu time) This was to test if the openmp was working right.
Diffstat (limited to 'source/blender/blenkernel/intern/deform.c')
-rw-r--r--source/blender/blenkernel/intern/deform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c
index 888432005d0..3143c5e4df2 100644
--- a/source/blender/blenkernel/intern/deform.c
+++ b/source/blender/blenkernel/intern/deform.c
@@ -221,11 +221,11 @@ void unique_vertexgroup_name (bDeformGroup *dg, Object *ob)
}
}
-float deformvert_get_weight(struct MDeformVert *dvert, int group_num)
+float deformvert_get_weight(const struct MDeformVert *dvert, int group_num)
{
if(dvert)
{
- MDeformWeight *dw = dvert->dw;
+ const MDeformWeight *dw = dvert->dw;
int i;
for(i=dvert->totweight; i>0; i--, dw++)
@@ -237,7 +237,7 @@ float deformvert_get_weight(struct MDeformVert *dvert, int group_num)
return 0.0;
}
-float vertexgroup_get_vertex_weight(struct MDeformVert *dvert, int index, int group_num)
+float vertexgroup_get_vertex_weight(const struct MDeformVert *dvert, int index, int group_num)
{
if(group_num == -1)
return 1.0;