Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Context not available. | |||||
| BLI_kdtree_free(edit->emitter_field); | BLI_kdtree_free(edit->emitter_field); | ||||
| totface = mesh->totface; | totface = mesh->totface; | ||||
| /*totvert=dm->getNumVerts(dm);*/ /*UNSUED*/ | /*totvert=dm->getNumVerts(dm);*/ /*UNUSED*/ | ||||
| edit->emitter_cosnos = MEM_callocN(totface * 6 * sizeof(float), "emitter cosnos"); | edit->emitter_cosnos = MEM_callocN(totface * 6 * sizeof(float), "emitter cosnos"); | ||||
| Context not available. | |||||
| #else | #else | ||||
| /* translate (not rotate) the rest of the hair if its not selected */ | /* translate (not rotate) the rest of the hair if its not selected */ | ||||
| { | { | ||||
| #if 0 /* kindof works but looks worse then whats below */ | #if 0 /* kindof works but looks worse then what's below */ | ||||
| /* Move the unselected point on a vector based on the | /* Move the unselected point on a vector based on the | ||||
| * hair direction and the offset */ | * hair direction and the offset */ | ||||
| Context not available. | |||||
| BLI_assert(mesh); | BLI_assert(mesh); | ||||
| /* Calculate positions of new particles to add, based on brush interseciton | /* Calculate positions of new particles to add, based on brush interseciton | ||||
| * with object. New particle data is assigned to a correponding to check | * with object. New particle data is assigned to a corresponding to check | ||||
| * index element of add_pars array. This means, that add_pars is a sparse | * index element of add_pars array. This means, that add_pars is a sparse | ||||
| * array. | * array. | ||||
| */ | */ | ||||
| Context not available. | |||||