Bugfix #5875
authorTon Roosendaal <ton@blender.org>
Tue, 30 Jan 2007 10:49:56 +0000 (10:49 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 30 Jan 2007 10:49:56 +0000 (10:49 +0000)
The global "total object" counter in Blender kernel was still using short!
Crash can happen when using this counter for allocating selection data.

source/blender/blenkernel/BKE_global.h

index c3fa0359acb965586c046b5e892e34e3667f3187..98a0cb99942d0e4f44a400ab290282ee7a4eb008 100644 (file)
@@ -94,8 +94,8 @@ typedef struct Global {
        struct ListBase recent_files;
     
        /* totals */
-       short totobj, totlamp, totobjsel, totcurve, totmesh;
-       short totbone, totbonesel;
+       int totobj, totlamp, totobjsel, totcurve, totmesh;
+       int totbone, totbonesel;
        int totvert, totedge, totface, totvertsel, totedgesel, totfacesel;
     
        short afbreek, moving;