From c1f4542f0f5d00ed47b679bc41ce1d5d33d462ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Sat, 4 Oct 2014 16:11:50 +0200 Subject: Removed block matrix indices storage from ClothSpring struct. This is not necessary: the implicit solver data can keep track instead of how many off-diagonal matrix blocks are in use (provided the allocation limit is calculated correctly). Every time a spring is created it then simply increments this counter and uses the block index locally - no need to store this persistently. --- source/blender/blenkernel/BKE_cloth.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/blenkernel/BKE_cloth.h') diff --git a/source/blender/blenkernel/BKE_cloth.h b/source/blender/blenkernel/BKE_cloth.h index f1b3f03037a..b3d0c46779d 100644 --- a/source/blender/blenkernel/BKE_cloth.h +++ b/source/blender/blenkernel/BKE_cloth.h @@ -134,10 +134,6 @@ typedef struct ClothSpring { int kl; /* Pkl from the paper, one end of the spring. */ int mn; float restlen; /* The original length of the spring. */ - /* needed for implicit solver (fast lookup) */ - int matrix_ij_kl; - int matrix_kl_mn; - int matrix_ij_mn; int type; /* types defined in BKE_cloth.h ("springType") */ int flags; /* defined in BKE_cloth.h, e.g. deactivated due to tearing */ float dfdx[3][3]; -- cgit v1.2.3