39 flag = (1 << 0) | (1 << 1) | (1 << 2);
43 flag = (((bezt->
f1 &
SELECT) ? (1 << 0) : 0) | ((bezt->
f2 &
SELECT) ? (1 << 1) : 0) |
44 ((bezt->
f3 &
SELECT) ? (1 << 2) : 0));
56 if ((flag != ((1 << 0) | (1 << 1) | (1 << 2))) && (flag & (1 << 1))) {
58 flag = (1 << 0) | (1 << 1) | (1 << 2);
68 #define SEL_F1 (1 << 0)
69 #define SEL_F2 (1 << 1)
70 #define SEL_F3 (1 << 2)
76 int data_len_all_pt = 0;
79 Curve *cu = tc->obedit->data;
84 int count = 0, countsel = 0;
85 int count_pt = 0, countsel_pt = 0;
96 for (
a = 0, bezt = nu->bezt; a < nu->pntsu;
a++, bezt++) {
97 if (bezt->
hide == 0) {
119 for (
a = nu->pntsu * nu->pntsv, bp = nu->bp;
a > 0;
a--, bp++) {
135 if (((is_prop_edit && !is_prop_connected) ?
count : countsel) == 0) {
143 tc->data_len =
count;
144 data_len_pt = count_pt;
147 tc->data_len = countsel;
148 data_len_pt = countsel_pt;
152 t->data_len_all += tc->data_len;
153 data_len_all_pt += data_len_pt;
157 t->data_len_all = -1;
160 if (tc->data_len == 0) {
164 Curve *cu = tc->obedit->data;
175 float mtx[3][3], smtx[3][3];
185 bool has_any_selected =
false;
187 for (
a = 0, bezt = nu->bezt; a < nu->pntsu;
a++, bezt++) {
188 if (bezt->
hide == 0) {
193 float normal[3], plane[3];
210 has_any_selected |= bezt_tx != 0;
212 if (is_prop_edit || bezt_tx &
SEL_F1) {
214 td->loc = bezt->
vec[0];
252 if (is_prop_edit || bezt_tx &
SEL_F2) {
254 td->loc = bezt->
vec[1];
283 if ((bezt_tx &
SEL_F1) == 0 && (bezt_tx &
SEL_F3) == 0) {
294 if (is_prop_edit || bezt_tx &
SEL_F3) {
296 td->loc = bezt->
vec[2];
341 for (
a = nu->pntsu * nu->pntsv, bp = nu->bp;
a > 0;
a--, bp++) {
343 if (is_prop_edit || (bp->
f1 &
SELECT)) {
349 has_any_selected |=
true;
369 if (nu->pntsv == 1) {
370 float normal[3], plane[3];
392 if (is_prop_edit && head != tail) {
394 if (!has_any_selected) {
395 for (td = head; td <= tail; td++) {
425 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, bool use_handles, 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.
SyclQueue void void size_t num_bytes void
IconTextureDrawCall normal
void *(* MEM_callocN)(size_t len, const char *str)