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:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-01-14 02:21:05 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-01-14 02:21:05 +0300
commit9b1199d6a397ab9bba14df261cb49930151a2992 (patch)
tree79ada565ac0a3516071ce8b1aeb1f493bc9c3928 /source/blender/blenkernel/BKE_sculpt.h
parent0162ded15a7709c131095e883793d1ac932b7870 (diff)
Noticed that sculpt was quite slow because of string lookups in RNA, so added a separate sculpt stroke cache for some values that usually aren't even changed except at stroke initialization.
Diffstat (limited to 'source/blender/blenkernel/BKE_sculpt.h')
-rw-r--r--source/blender/blenkernel/BKE_sculpt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_sculpt.h b/source/blender/blenkernel/BKE_sculpt.h
index ec66fca6f38..139b84062c4 100644
--- a/source/blender/blenkernel/BKE_sculpt.h
+++ b/source/blender/blenkernel/BKE_sculpt.h
@@ -37,6 +37,7 @@ struct RadialControl;
struct Scene;
struct SculptData;
struct SculptSession;
+struct StrokeCache;
typedef struct SculptSession {
struct ProjVert *projverts;
@@ -69,6 +70,8 @@ typedef struct SculptSession {
struct RadialControl *radialcontrol;
struct SculptStroke *stroke;
+
+ struct StrokeCache *cache;
} SculptSession;
void sculptdata_init(struct Scene *sce);