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:
authorCampbell Barton <ideasman42@gmail.com>2012-05-23 13:46:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-23 13:46:32 +0400
commit88fc57359669b2fd32a42cd0b82bc052639c39a8 (patch)
treea685e53c7c4d9734bd5840e5907dab488f31bc4b /source/blender/editors/transform/transform.h
parent27220c33402a0a30ea628cf2ebf4f2d55860a84b (diff)
non-proportional edge slide patch by XercesBlue
remmoved edge-visibility check from the patch which gives nice functionality but calculates and BVH and throws it away every update.
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r--source/blender/editors/transform/transform.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index 2d26de63471..04459af6ec9 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -194,6 +194,8 @@ typedef struct TransDataSlideVert {
struct BMVert *up, *down;
struct BMVert *v;
+ float edge_len;
+
float upvec[3], downvec[3];
} TransDataSlideVert;
@@ -206,9 +208,17 @@ typedef struct SlideData {
int start[2], end[2];
struct BMEditMesh *em;
- float perc;
+
/* flag that is set when origfaces is initialized */
int origfaces_init;
+
+ float perc;
+
+ int is_proportional;
+ int flipped_vtx;
+
+ int curr_sv_index;
+ struct TransDataSlideVert *curr_sv;
} SlideData;
typedef struct TransData {
@@ -511,6 +521,7 @@ void initBoneRoll(TransInfo *t);
int BoneRoll(TransInfo *t, const int mval[2]);
void initEdgeSlide(TransInfo *t);
+int handleEventEdgeSlide(TransInfo *t, struct wmEvent *event);
int EdgeSlide(TransInfo *t, const int mval[2]);
void initTimeTranslate(TransInfo *t);
@@ -653,6 +664,8 @@ void resetTransRestrictions(TransInfo *t);
void drawLine(TransInfo *t, float *center, float *dir, char axis, short options);
+void drawNonPropEdge(const struct bContext *C, TransInfo *t);
+
/* DRAWLINE options flags */
#define DRAWLIGHT 1