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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user