diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-15 07:38:18 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-15 07:38:18 +0300 |
commit | 52135dd4fac718b31b7653e42a7e4b332b2814f3 (patch) | |
tree | 185960d4d631f99e2aa0bc232acff9b8ba2dc63e /source/blender/editors/mesh | |
parent | 2213fa1c528027d363a546fe3a5377f65b5a6d26 (diff) |
2.5: Space Image ported back
Organized as follows:
uvedit/
uv editing related code
uvedit_draw.c: drawing code
uvedit_ops.c: operators, just a few done
uvedit_unwrap_ops.c: will be operators for unwrapping
uvedit_paramatrizer.c: lscm/abf/stretch/pack
space_image/
space_image.c: registration and common getter/setters
image_draw.c: drawing code, mostly functional
image_panels.c: panels, all commented out
image_render.c: render callbacks, non functional
image_ops.c: operators, only view navigation done
image_header.c: header, menus mostly done but missing buttons
Notes:
* Header menus consist only of Operator and RNA buttons, if they
are not implemented they're displayed grayed out. Ideally the full
header could work like this, but std_libbuttons looks problematic.
* Started using view2d code more than the old code, but for now it
still does own view2d management due to some very specific
requirements that the image window has. The drawing code however
is more clear hopefully, it only uses view2d, and there is no
switching between 'p' and 'f' view2d's anymore, it is always 'f'.
* In order to make uvedit operators more independent I move some
image space settings to scene toolsettings, and the current image
and its buffer is in the context. Especially sync selection and
select mode belonged there anyway as this cannot work correct with
different spaces having different settings anyway.
* Image paint is not back yet, did not want to put that together with
uvedit because there's really no code sharing.. perhaps vertex paint,
image paint and sculpt would be good to have in one module to share
brush code, partial redraw, etc better.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editface.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_lib.c | 6 | ||||
-rw-r--r-- | source/blender/editors/mesh/mesh_intern.h | 5 |
3 files changed, 4 insertions, 9 deletions
diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c index 49c8fe648d7..f5c14a34140 100644 --- a/source/blender/editors/mesh/editface.c +++ b/source/blender/editors/mesh/editface.c @@ -598,7 +598,7 @@ static void calculate_uv_map(Scene *scene, ARegion *ar, View3D *v3d, EditMesh *e /* last_sel, use em->act_face otherwise get the last selected face in the editselections * at the moment, last_sel is mainly useful for gaking sure the space image dosnt flicker */ -MTFace *get_active_mtface(EditMesh *em, EditFace **act_efa, MCol **mcol, int sloppy) +MTFace *EM_get_active_mtface(EditMesh *em, EditFace **act_efa, MCol **mcol, int sloppy) { EditFace *efa = NULL; diff --git a/source/blender/editors/mesh/editmesh_lib.c b/source/blender/editors/mesh/editmesh_lib.c index 93de720d4f6..0bd3295d1d7 100644 --- a/source/blender/editors/mesh/editmesh_lib.c +++ b/source/blender/editors/mesh/editmesh_lib.c @@ -2133,7 +2133,7 @@ void EM_fgon_flags(EditMesh *em) * if do_face_idx_array is 0 it means we need to run it as well as freeing * */ -UvVertMap *make_uv_vert_map_EM(EditMesh *em, int selected, int do_face_idx_array, float *limit) +UvVertMap *EM_make_uv_vert_map(EditMesh *em, int selected, int do_face_idx_array, float *limit) { EditVert *ev; EditFace *efa; @@ -2251,12 +2251,12 @@ UvVertMap *make_uv_vert_map_EM(EditMesh *em, int selected, int do_face_idx_array return vmap; } -UvMapVert *get_uv_map_vert_EM(UvVertMap *vmap, unsigned int v) +UvMapVert *EM_get_uv_map_vert(UvVertMap *vmap, unsigned int v) { return vmap->vert[v]; } -void free_uv_vert_map_EM(UvVertMap *vmap) +void EM_free_uv_vert_map(UvVertMap *vmap) { if (vmap) { if (vmap->vert) MEM_freeN(vmap->vert); diff --git a/source/blender/editors/mesh/mesh_intern.h b/source/blender/editors/mesh/mesh_intern.h index 6d5bd16c23d..95a6bdbfe29 100644 --- a/source/blender/editors/mesh/mesh_intern.h +++ b/source/blender/editors/mesh/mesh_intern.h @@ -112,19 +112,14 @@ extern int faceselectedOR(EditFace *efa, int flag); extern int faceselectedAND(EditFace *efa, int flag); void EM_remove_selection(EditMesh *em, void *data, int type); -void EM_set_actFace(EditMesh *em, EditFace *efa); -void EM_select_face(EditFace *efa, int sel); void EM_clear_flag_all(EditMesh *em, int flag); void EM_set_flag_all(EditMesh *em, int flag); -void EM_add_data_layer(EditMesh *em, CustomData *data, int type); - void EM_data_interp_from_verts(EditMesh *em, EditVert *v1, EditVert *v2, EditVert *eve, float fac); void EM_data_interp_from_faces(EditMesh *em, EditFace *efa1, EditFace *efa2, EditFace *efan, int i1, int i2, int i3, int i4); int EM_nvertices_selected(EditMesh *em); int EM_nfaces_selected(EditMesh *em); -float EM_face_area(EditFace *efa); float EM_face_perimeter(EditFace *efa); void EM_store_selection(EditMesh *em, void *data, int type); |