44 static void rna_Meta_texspace_loc_get(
PointerRNA *
ptr,
float *values)
53 static void rna_Meta_texspace_loc_set(
PointerRNA *
ptr,
const float *values)
60 static void rna_Meta_texspace_size_get(
PointerRNA *
ptr,
float *values)
69 static void rna_Meta_texspace_size_set(
PointerRNA *
ptr,
const float *values)
104 rna_MetaBall_update_data(bmain,
scene,
ptr);
126 reports,
RPT_ERROR,
"Metaball '%s' does not contain spline given", mb->
id.
name + 2);
140 static void rna_MetaBall_elements_clear(
MetaBall *mb)
218 prop,
"Size X",
"Size of element, use of components depends on element type");
226 prop,
"Size Y",
"Size of element, use of components depends on element type");
234 prop,
"Size Z",
"Size of element, use of components depends on element type");
286 "Type for the new metaball element");
287 parm =
RNA_def_pointer(func,
"element",
"MetaElement",
"",
"The newly created metaball element");
293 parm =
RNA_def_pointer(func,
"element",
"MetaElement",
"",
"The element to remove");
310 {
MB_UPDATE_ALWAYS,
"UPDATE_ALWAYS", 0,
"Always",
"While editing, update metaball always"},
315 "While editing, update metaball in half resolution"},
316 {
MB_UPDATE_FAST,
"FAST", 0,
"Fast",
"While editing, update metaball without polygonization"},
317 {
MB_UPDATE_NEVER,
"NEVER", 0,
"Never",
"While editing, don't update metaball at all"},
364 "Auto Texture Space",
365 "Adjust active object's texture space automatically when transforming object");
372 prop,
"rna_Meta_texspace_loc_get",
"rna_Meta_texspace_loc_set",
NULL);
381 prop,
"rna_Meta_texspace_size_get",
"rna_Meta_texspace_size_set",
NULL);
387 RNA_def_property_float(prop,
NULL,
"rot");
struct MetaElem * BKE_mball_element_add(struct MetaBall *mb, int type)
void BKE_mball_properties_copy(struct Main *bmain, struct MetaBall *active_metaball)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
bool BLI_remlink_safe(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void void BLI_freelistN(struct ListBase *listbase) ATTR_NONNULL(1)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
float normalize_qt(float q[4])
MINLINE void copy_v3_v3(float r[3], const float a[3])
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
void DEG_id_tag_update(struct ID *id, int flag)
@ ID_RECALC_COPY_ON_WRITE
Object is a sort of wrapper for general info.
_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 type
Read Guarded memory(de)allocation.
#define RNA_POINTER_INVALIDATE(ptr)
return(oflags[bm->toolflag_index].f &oflag) !=0
void(* MEM_freeN)(void *vmemh)
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)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
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)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
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_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
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_function_flag(FunctionRNA *func, int flag)
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_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_api_meta(struct StructRNA *srna)
const EnumPropertyItem rna_enum_metaelem_type_items[]
void WM_main_add_notifier(unsigned int type, void *reference)