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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-07-30 17:54:40 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-07-30 17:58:44 +0300
commita3b6ae9fb9dd76538ec04b9fa6953490d321dd32 (patch)
tree0bce9a5d00551e94b15e5195c7a80370ff6f788f /source/blender/editors/space_info
parent6d6deeb70086564418368a5213cd9d28cdfa51e2 (diff)
Cleanup/Refactor: Move CurveCache runtime data into Object.runtime struct.
Also, fix missing cleanup of Object.runtime when copying Object datablocks!
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/info_stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c
index 3830e6d2792..8aa37bb5e16 100644
--- a/source/blender/editors/space_info/info_stats.c
+++ b/source/blender/editors/space_info/info_stats.c
@@ -127,8 +127,8 @@ static void stats_object(Object *ob, int sel, int totob, SceneStats *stats)
{
int totv = 0, totf = 0, tottri = 0;
- if (ob->curve_cache && ob->curve_cache->disp.first)
- BKE_displist_count(&ob->curve_cache->disp, &totv, &totf, &tottri);
+ if (ob->runtime.curve_cache && ob->runtime.curve_cache->disp.first)
+ BKE_displist_count(&ob->runtime.curve_cache->disp, &totv, &totf, &tottri);
totv *= totob;
totf *= totob;