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.
This commit is contained in:
@@ -42,6 +42,11 @@ struct ViewContext;
|
||||
struct bDeformGroup;
|
||||
struct MDeformWeight;
|
||||
struct MDeformVert;
|
||||
struct Scene;
|
||||
struct MCol;
|
||||
struct UvVertMap;
|
||||
struct UvMapVert;
|
||||
struct CustomData;
|
||||
|
||||
// edge and face flag both
|
||||
#define EM_FGON 2
|
||||
@@ -79,9 +84,9 @@ void ED_keymap_mesh(struct wmWindowManager *wm);
|
||||
void ED_spacetypes_init(void);
|
||||
void ED_keymap_mesh(struct wmWindowManager *wm);
|
||||
|
||||
void make_editMesh(Scene *scene, Object *ob);
|
||||
void load_editMesh(Scene *scene, Object *ob);
|
||||
void remake_editMesh(Scene *scene, Object *ob);
|
||||
void make_editMesh(struct Scene *scene, Object *ob);
|
||||
void load_editMesh(struct Scene *scene, Object *ob);
|
||||
void remake_editMesh(struct Scene *scene, Object *ob);
|
||||
void free_editMesh(struct EditMesh *em);
|
||||
|
||||
void recalc_editnormals(struct EditMesh *em);
|
||||
@@ -100,8 +105,12 @@ void undo_push_mesh(struct bContext *C, char *name);
|
||||
/* editmesh_lib.c */
|
||||
|
||||
struct EditFace *EM_get_actFace(struct EditMesh *em, int sloppy);
|
||||
void EM_set_actFace(struct EditMesh *em, struct EditFace *efa);
|
||||
float EM_face_area(struct EditFace *efa);
|
||||
void EM_add_data_layer(struct EditMesh *em, struct CustomData *data, int type);
|
||||
|
||||
void EM_select_edge(struct EditEdge *eed, int sel);
|
||||
void EM_select_face(struct EditFace *efa, int sel);
|
||||
void EM_select_face_fgon(struct EditMesh *em, struct EditFace *efa, int val);
|
||||
void EM_selectmode_flush(struct EditMesh *em);
|
||||
void EM_deselect_flush(struct EditMesh *em);
|
||||
@@ -114,6 +123,9 @@ int EM_get_actSelection(struct EditMesh *em, struct EditSelection *ese);
|
||||
void EM_editselection_normal(float *normal, struct EditSelection *ese);
|
||||
void EM_editselection_plane(float *plane, struct EditSelection *ese);
|
||||
|
||||
struct UvVertMap *EM_make_uv_vert_map(struct EditMesh *em, int selected, int do_face_idx_array, float *limit);
|
||||
struct UvMapVert *EM_get_uv_map_vert(struct UvVertMap *vmap, unsigned int v);
|
||||
void EM_free_uv_vert_map(struct UvVertMap *vmap);
|
||||
|
||||
/* editmesh_mods.c */
|
||||
extern unsigned int em_vertoffs, em_solidoffs, em_wireoffs;
|
||||
@@ -125,6 +137,9 @@ void EM_free_backbuf(void);
|
||||
int EM_init_backbuf_border(struct ViewContext *vc, short xmin, short ymin, short xmax, short ymax);
|
||||
int EM_init_backbuf_circle(struct ViewContext *vc, short xs, short ys, short rads);
|
||||
|
||||
/* editface.c */
|
||||
struct MTFace *EM_get_active_mtface(struct EditMesh *em, struct EditFace **act_efa, struct MCol **mcol, int sloppy);
|
||||
|
||||
/* editdeform.c XXX rename functions? */
|
||||
|
||||
#define WEIGHT_REPLACE 1
|
||||
|
||||
Reference in New Issue
Block a user