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>2006-12-13 00:29:09 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2006-12-13 00:29:09 +0300
commit80ee52e444f05a6fd7a45f2ddfe72720648fbab8 (patch)
tree577238b0fdb738813ca560f0c5fc08dd6b945956 /source/blender/src/editface.c
parent47adee414c7848f6ad898e9029205e804b9d6601 (diff)
Multiple UV and vertex color layers: (still work in progress)
These can be created and deleted in the Mesh panel in the same place as before. There is always one active UV and vertex color layer, that is edited and displayed. Important things to do: - Render engine, material support - Multires and NMesh now lose non active layers Also CustomData changes to support muliple layers of the same type, and changes to layer allocation, updated documentation is here: http://mediawiki.blender.org/index.php/BlenderDev/BlenderArchitecture/CustomData
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index e0d5a403568..f118c14bf25 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -74,6 +74,7 @@
#include "BIF_interface.h"
#include "BIF_mywindow.h"
#include "BIF_toolbox.h"
+#include "BIF_resources.h"
#include "BIF_screen.h"
#include "BIF_gl.h"
#include "BIF_graphics.h"
@@ -607,33 +608,13 @@ void default_uv(float uv[][2], float size)
uv[3][1]= size+dy;
}
-void default_tface(MTFace *tface)
-{
- default_uv(tface->uv, 1.0);
-
- tface->mode= TF_TEX;
- tface->mode= 0;
- tface->flag= TF_SELECT;
- tface->tpage= 0;
- tface->mode |= TF_DYNAMIC;
-}
-
void make_tfaces(Mesh *me)
{
- MTFace *tf;
- int a;
-
- if(me->mtface)
- return;
-
- me->mtface= CustomData_add_layer(&me->fdata, CD_MTFACE, 0, 0, me->totface);
-
- tf= me->mtface;
- for (a=0; a<me->totface; a++, tf++)
- default_tface(tf);
+ if(!me->mtface)
+ me->mtface= CustomData_add_layer(&me->fdata, CD_MTFACE, CD_DEFAULT,
+ NULL, me->totface);
}
-
void reveal_tface()
{
Mesh *me;
@@ -1547,7 +1528,7 @@ static int texpaint_projected_verts(Object *ob, MFace *mf, MTFace *tf, MVert *mv
persp(PERSP_VIEW);
- /* get the need opengl matrices */
+ /* get the needed opengl matrices */
glGetIntegerv(GL_VIEWPORT, view);
glGetDoublev(GL_MODELVIEW_MATRIX, model);
glGetDoublev(GL_PROJECTION_MATRIX, proj);