51 static void rna_LatticePoint_co_get(
PointerRNA *
ptr,
float *values)
55 int index = bp - lt->
def;
60 values[0] = lt->
fu + u * lt->
du;
61 values[1] = lt->
fv +
v * lt->
dv;
62 values[2] = lt->
fw +
w * lt->
dw;
109 static void rna_Lattice_update_data_editlatt(
Main *
UNUSED(bmain),
133 int newu, newv, neww;
142 if (ob->data == lt) {
159 rna_Lattice_update_data(bmain,
scene,
ptr);
162 static void rna_Lattice_use_outside_set(
PointerRNA *
ptr,
bool value)
194 static void rna_Lattice_points_u_set(
PointerRNA *
ptr,
int value)
201 static void rna_Lattice_points_v_set(
PointerRNA *
ptr,
int value)
208 static void rna_Lattice_points_w_set(
PointerRNA *
ptr,
int value)
215 static void rna_Lattice_vg_name_set(
PointerRNA *
ptr,
const char *value)
239 if (points && point) {
243 if ((point >= (
void *)points) && (point < (
void *)(points + tot))) {
244 int pt_index = (int)((
BPoint *)point - points);
282 "Original undeformed location used to calculate the strength of the deform effect "
283 "(edit/animate the Deformed Location instead)");
299 "rna_LatticePoint_groups_begin",
300 "rna_iterator_array_next",
301 "rna_iterator_array_end",
302 "rna_iterator_array_get",
309 prop,
"Groups",
"Weights for the vertex groups this point is member of");
319 srna,
"Lattice",
"Lattice data-block defining a grid for deforming other objects");
328 prop,
"U",
"Point in U direction (can't be changed when there are shape keys)");
338 prop,
"V",
"Point in V direction (can't be changed when there are shape keys)");
348 prop,
"W",
"Point in W direction (can't be changed when there are shape keys)");
374 prop,
"Outside",
"Only display and take into account the outer vertices");
380 prop,
"Vertex Group",
"Vertex group to apply the influence of the lattice");
393 "rna_Lattice_points_begin",
394 "rna_iterator_array_next",
395 "rna_iterator_array_end",
396 "rna_iterator_array_get",
void BKE_lattice_index_to_uvw(struct Lattice *lt, const int index, int *r_u, int *r_v, int *r_w)
void BKE_lattice_resize(struct Lattice *lt, int u, int v, int w, struct Object *ltOb)
void outside_lattice(struct Lattice *lt)
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
void DEG_id_tag_update(struct ID *id, int flag)
Object is a sort of wrapper for general info.
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
return(oflags[bm->toolflag_index].f &oflag) !=0
ATTR_WARN_UNUSED_RESULT const BMVert * v
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
void rna_iterator_array_begin(CollectionPropertyIterator *iter, void *ptr, int itemsize, int length, bool free_ptr, IteratorSkipFunc skip)
void rna_def_animdata_common(StructRNA *srna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_api_lattice(struct StructRNA *srna)
const EnumPropertyItem rna_enum_keyblock_type_items[]
static void rna_def_lattice(BlenderRNA *brna)
void RNA_def_lattice(BlenderRNA *brna)
static void rna_def_latticepoint(BlenderRNA *brna)
struct MDeformVert * dvert
struct EditLatt * editlatt
void WM_main_add_notifier(unsigned int type, void *reference)