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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-26 21:30:41 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-26 21:30:41 +0300
commit21299f2325169959bed5d4416f7850805b4db8c3 (patch)
treed51d9f31b37245f925d0bc725d5960f5a84a19f4 /source/blender/blenkernel/intern/mball.c
parenta88627d56e902827bfb9a86e17f2e1093bc10d81 (diff)
Going into vertex paint mode without vertex colors, now it doesn't
create vertex colors from shaded mode anymore. Instead there is function in vertex paint mode to create them. Also some fixes for previous commits.
Diffstat (limited to 'source/blender/blenkernel/intern/mball.c')
-rw-r--r--source/blender/blenkernel/intern/mball.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c
index d3fb9ceac7a..e2b78affd59 100644
--- a/source/blender/blenkernel/intern/mball.c
+++ b/source/blender/blenkernel/intern/mball.c
@@ -241,8 +241,6 @@ float *make_orco_mball(Object *ob)
float loc[3], size[3];
int a;
- orcodata= MEM_mallocN(sizeof(float)*3*dl->nr, "MballOrco");
-
/* restore size and loc */
bb= ob->bb;
loc[0]= (bb->vec[0][0]+bb->vec[4][0])/2.0f;
@@ -253,6 +251,8 @@ float *make_orco_mball(Object *ob)
size[2]= bb->vec[1][2]-loc[2];
dl= ob->disp.first;
+ orcodata= MEM_mallocN(sizeof(float)*3*dl->nr, "MballOrco");
+
data= dl->verts;
orco= orcodata;
a= dl->nr;