Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/cloth.c
| Context not available. | |||||
| if (clmd->clothObject->verts == NULL) { | if (clmd->clothObject->verts == NULL) { | ||||
| cloth_free_modifier(clmd); | cloth_free_modifier(clmd); | ||||
| modifier_setError(&(clmd->modifier), "Out of memory on allocating clmd->clothObject->verts"); | modifier_setError(&(clmd->modifier), "Out of memory on allocating clmd->clothObject->verts"); | ||||
| printf("cloth_free_modifier clmd->clothObject->verts\n"); | |||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
| if (clmd->clothObject->tri == NULL) { | if (clmd->clothObject->tri == NULL) { | ||||
| cloth_free_modifier(clmd); | cloth_free_modifier(clmd); | ||||
| modifier_setError(&(clmd->modifier), "Out of memory on allocating clmd->clothObject->looptri"); | modifier_setError(&(clmd->modifier), "Out of memory on allocating clmd->clothObject->looptri"); | ||||
| printf("cloth_free_modifier clmd->clothObject->looptri\n"); | |||||
| return; | return; | ||||
| } | } | ||||
| BKE_mesh_runtime_verttri_from_looptri(clmd->clothObject->tri, mloop, looptri, looptri_num); | BKE_mesh_runtime_verttri_from_looptri(clmd->clothObject->tri, mloop, looptri, looptri_num); | ||||
| Context not available. | |||||
| */ | */ | ||||
| if ( clmd->clothObject->springs != NULL ) | if ( clmd->clothObject->springs != NULL ) | ||||
| MEM_freeN ( clmd->clothObject->springs ); | MEM_freeN ( clmd->clothObject->springs ); | ||||
| } | } | ||||
| /*************************************************************************************** | /*************************************************************************************** | ||||
| Context not available. | |||||