[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12464] branches/particles/source/blender/ blenkernel/intern/particle_system.c: simple fix from jahka and initialize new particles with an invalid derivedMesh face index
Campbell Barton
cbarton at metavr.com
Sat Nov 3 22:00:19 CET 2007
Revision: 12464
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12464
Author: campbellbarton
Date: 2007-11-03 22:00:19 +0100 (Sat, 03 Nov 2007)
Log Message:
-----------
simple fix from jahka and initialize new particles with an invalid derivedMesh face index
Modified Paths:
--------------
branches/particles/source/blender/blenkernel/intern/particle_system.c
Modified: branches/particles/source/blender/blenkernel/intern/particle_system.c
===================================================================
--- branches/particles/source/blender/blenkernel/intern/particle_system.c 2007-11-03 20:15:36 UTC (rev 12463)
+++ branches/particles/source/blender/blenkernel/intern/particle_system.c 2007-11-03 21:00:19 UTC (rev 12464)
@@ -194,7 +194,7 @@
for(p=0,pa=psys->particles; p<psys->totpart; p++,pa++) {
//i = pa->num;
//if (i<totface) // should never happen
- i = psys_particle_dm_face_lookup(dm, p, pa->fuv, node_array[pa->num]);
+ i = psys_particle_dm_face_lookup(dm, pa->num, pa->fuv, node_array[pa->num]);
pa->num_dmcache = i;
}
@@ -1158,6 +1158,7 @@
}
pa->loop=0;
+ pa->num_dmcache = -1;
}
static void initialize_all_particles(Object *ob, ParticleSystem *psys, ParticleSystemModifierData *psmd){
IpoCurve *icu=0;
More information about the Bf-blender-cvs
mailing list