Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_crazyspace.h
| Context not available. | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
mont29: Picky: better to try to avoid such meaning-less changes in patches. ;) | |||||
| struct Scene; | struct Scene; | ||||
| struct Object; | struct Object; | ||||
| struct BMEditMesh; | struct BMEditMesh; | ||||
| struct Mesh; | struct Mesh; | ||||
| struct BMEditSelection; | |||||
| struct DerivedMesh; | |||||
| /* crazyspace.c */ | /* crazyspace.c */ | ||||
| float (*BKE_crazyspace_get_mapped_editverts(struct Scene *scene, struct Object *obedit))[3]; | float (*BKE_crazyspace_get_mapped_editverts(struct Scene *scene, struct Object *obedit))[3]; | ||||
| Context not available. | |||||
| int BKE_sculpt_get_first_deform_matrices(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]); | int BKE_sculpt_get_first_deform_matrices(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]); | ||||
| void BKE_crazyspace_build_sculpt(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]); | void BKE_crazyspace_build_sculpt(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]); | ||||
| /* Returns true if the object's derived cage vertex indeces can be assumed to be in sync to | |||||
mont29Unsubmitted Not Done Inline Actionsindices, not indeces. mont29: indices, not indeces. | |||||
| * the editdata (base) vertex indeces */ | |||||
| bool BKE_crazyspace_cageindexes_in_sync(struct Object *ob); | |||||
| /* Maps editmesh vertex indeces to derivedmesh cage vertex indces and returns the map. | |||||
| * If returns NULL, it means that mapping failed for some reason (modifier failing to set CD_ORIGINDEX, etc). | |||||
| * It is the caller's responsibility to free the returned array! */ | |||||
| int *BKE_crazyspace_map_em_to_cage(struct Object *ob, struct BMEditMesh *em, struct DerivedMesh *cage_dm); | |||||
| /* Calculates editmesh active element selection center in global space on derived cage | |||||
| * (used in calculating visual manipulator and transform constraint centers) */ | |||||
Not Done Inline ActionsYou have to declare those two structs in start of the file too (like Mesh etc.), this breaks gcc too. mont29: You have to declare those two structs in start of the file too (like Mesh etc.), this breaks… | |||||
| void BKE_crazyspace_cage_active_sel_center(struct BMEditSelection *active_sel, struct DerivedMesh *cage, | |||||
| int *derived_index_map, float *cent); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| Context not available. | |||||
Picky: better to try to avoid such meaning-less changes in patches. ;)