55 flag = (1 << 0) | (1 << 1) | (1 << 2);
59 flag = (((bezt->
f1 &
SELECT) ? (1 << 0) : 0) | ((bezt->
f2 &
SELECT) ? (1 << 1) : 0) |
60 ((bezt->
f3 &
SELECT) ? (1 << 2) : 0));
72 if ((flag != ((1 << 0) | (1 << 1) | (1 << 2))) && (flag & (1 << 1))) {
74 flag = (1 << 0) | (1 << 1) | (1 << 2);
84 #define SEL_F1 (1 << 0)
85 #define SEL_F2 (1 << 1)
86 #define SEL_F3 (1 << 2)
92 int data_len_all_pt = 0;
95 Curve *cu = tc->obedit->data;
100 int count = 0, countsel = 0;
101 int count_pt = 0, countsel_pt = 0;
112 for (
a = 0, bezt = nu->bezt; a < nu->pntsu;
a++, bezt++) {
113 if (bezt->
hide == 0) {
135 for (
a = nu->pntsu * nu->pntsv, bp = nu->bp;
a > 0;
a--, bp++) {
151 if (((is_prop_edit && !is_prop_connected) ?
count : countsel) == 0) {
159 tc->data_len =
count;
160 data_len_pt = count_pt;
163 tc->data_len = countsel;
164 data_len_pt = countsel_pt;
168 t->data_len_all += tc->data_len;
169 data_len_all_pt += data_len_pt;
173 t->data_len_all = -1;
176 if (tc->data_len == 0) {
180 Curve *cu = tc->obedit->data;
191 float mtx[3][3], smtx[3][3];
201 bool has_any_selected =
false;
203 for (
a = 0, bezt = nu->bezt; a < nu->pntsu;
a++, bezt++) {
204 if (bezt->
hide == 0) {
209 float normal[3], plane[3];
226 has_any_selected |= bezt_tx != 0;
228 if (is_prop_edit || bezt_tx &
SEL_F1) {
230 td->loc = bezt->
vec[0];
268 if (is_prop_edit || bezt_tx &
SEL_F2) {
270 td->loc = bezt->
vec[1];
299 if ((bezt_tx &
SEL_F1) == 0 && (bezt_tx &
SEL_F3) == 0) {
310 if (is_prop_edit || bezt_tx &
SEL_F3) {
312 td->loc = bezt->
vec[2];
357 for (
a = nu->pntsu * nu->pntsv, bp = nu->bp;
a > 0;
a--, bp++) {
359 if (is_prop_edit || (bp->
f1 &
SELECT)) {
363 if (nu->pntsv == 1) {
364 float normal[3], plane[3];
385 has_any_selected |=
true;
404 if (nu->pntsv == 1) {
415 if (is_prop_edit && head != tail) {
417 if (!has_any_selected) {
418 for (td = head; td <= tail; td++) {
449 Curve *cu = tc->obedit->data;
void BKE_nurb_handles_calc(struct Nurb *nu)
void BKE_nurb_bezt_calc_plane(struct Nurb *nu, struct BezTriple *bezt, float r_plane[3])
struct ListBase * BKE_curve_editNurbs_get(struct Curve *cu)
void BKE_nurb_bpoint_calc_normal(struct Nurb *nu, struct BPoint *bp, float r_normal[3])
void BKE_curve_dimension_update(struct Curve *cu)
void BKE_nurb_bezt_calc_normal(struct Nurb *nu, struct BezTriple *bezt, float r_normal[3])
void BKE_nurb_bpoint_calc_plane(struct Nurb *nu, struct BPoint *bp, float r_plane[3])
void BKE_nurb_handles_test(struct Nurb *nu, const bool use_handles, const bool use_around_local)
#define LISTBASE_FOREACH(type, var, list)
void axis_dominant_v3_to_m3(float r_mat[3][3], const float normal[3])
Normal to x,y matrix.
void copy_m3_m3(float m1[3][3], const float m2[3][3])
void copy_m3_m4(float m1[3][3], const float m2[4][4])
#define PSEUDOINVERSE_EPSILON
bool invert_m3(float R[3][3])
void pseudoinverse_m3_m3(float Ainv[3][3], const float A[3][3], float epsilon)
MINLINE float normalize_v3(float r[3])
MINLINE void copy_v3_v3(float r[3], const float a[3])
void DEG_id_tag_update(struct ID *id, int flag)
@ V3D_AROUND_LOCAL_ORIGINS
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
Read Guarded memory(de)allocation.
IconTextureDrawCall normal
void *(* MEM_callocN)(size_t len, const char *str)