29 {
PFIELD_SHAPE_LINE,
"LINE", 0,
"Line",
"Field originates from the local Z axis of the object"},
34 "Field originates from the local XY plane of the object"},
39 "Field originates from the surface of the object"},
44 "Field originates from all of the vertices of the object"},
45 {0,
nullptr, 0,
nullptr,
nullptr},
52# include <fmt/format.h>
68 {
PFIELD_SHAPE_LINE,
"LINE", 0,
"Line",
"Field originates from the local Z axis of the object"},
73 "Field originates from the local XY plane of the object"},
75 {0,
nullptr, 0,
nullptr,
nullptr},
80 {
PFIELD_SHAPE_LINE,
"LINE", 0,
"Line",
"Field originates from the local Z axis of the object"},
85 "Field originates from the local XY plane of the object"},
86 {0,
nullptr, 0,
nullptr,
nullptr},
94 {0,
nullptr, 0,
nullptr,
nullptr},
101 {0,
nullptr, 0,
nullptr,
nullptr},
107 {0,
nullptr, 0,
nullptr,
nullptr},
112# include <fmt/format.h>
138 switch (
GS(ptr->owner_id->name)) {
140 *ob = id_cast<Object *>(ptr->owner_id);
143 *scene = id_cast<Scene *>(ptr->owner_id);
147 "Trying to get PTCacheID from an invalid ID type "
148 "(Only scenes and objects are supported).");
152 return (*ob !=
nullptr || *scene !=
nullptr);
155static std::optional<std::string> rna_PointCache_path(
const PointerRNA *ptr)
160 Scene *scene =
nullptr;
162 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
167 if (scene !=
nullptr && scene->rigidbody_world->shared !=
nullptr) {
168 if (scene->rigidbody_world->shared->pointcache == cache) {
169 return "rigidbody_world.point_cache";
178 for (md = ob->modifiers.first(); md; md = md->next) {
185 char name_esc[
sizeof(md->name) * 2];
191 if (psmd->psys->pointcache == cache) {
192 return fmt::format(
"modifiers[\"{}\"].particle_system.point_cache", name_esc);
200 pmd->canvas->surfaces.first());
201 for (; surface; surface = surface->next) {
202 if (surface->pointcache == cache) {
203 char name_surface_esc[
sizeof(surface->name) * 2];
204 BLI_str_escape(name_surface_esc, surface->name,
sizeof(name_surface_esc));
206 "modifiers[\"{}\"].canvas_settings.canvas_surfaces[\"{}\"].point_cache",
216 if (clmd->point_cache == cache) {
217 return fmt::format(
"modifiers[\"{}\"].point_cache", name_esc);
223 if (sb && sb->shared->pointcache == cache) {
224 return fmt::format(
"modifiers[\"{}\"].point_cache", name_esc);
229 return fmt::format(
"modifiers[\"{}\"].point_cache", name_esc);
240 Scene *scene =
nullptr;
242 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
266 Scene *scene =
nullptr;
268 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
285bool rna_Cache_use_disk_cache_override_apply(
Main * ,
309 Scene *scene =
nullptr;
311 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
316 bool use_new_name =
true;
331 PTCacheID *pid =
nullptr, *pid2 =
nullptr;
332 ListBaseT<PTCacheID> pidlist;
336 for (pid = pidlist.first(); pid; pid = pid->next) {
337 if (pid->cache == cache) {
340 else if (cache->name[0] !=
'\0' &&
STREQ(cache->name, pid->cache->name)) {
342 STRNCPY(cache->name, cache->prev_name);
343 use_new_name =
false;
354 STRNCPY(old_name, cache->prev_name);
355 STRNCPY(new_name, cache->name);
360 STRNCPY(cache->prev_name, cache->name);
363 pidlist.free_no_destruct();
370 ListBaseT<PointCache> lb;
372 while (cache->prev) {
381static void rna_Cache_active_point_cache_index_range(
388 Scene *scene =
nullptr;
390 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
398 *
max =
max_ii(0, pid.ptcaches->count() - 1);
402static int rna_Cache_active_point_cache_index_get(
PointerRNA *ptr)
407 Scene *scene =
nullptr;
409 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
423static void rna_Cache_active_point_cache_index_set(
PointerRNA *ptr,
int value)
426 Scene *scene =
nullptr;
428 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
440static void rna_PointCache_frame_step_range(
447 Scene *scene =
nullptr;
449 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
464 Scene *scene =
nullptr;
466 if (!rna_Cache_get_valid_owner_ID(ptr, &ob, &scene)) {
478 return int(strlen(cache->info));
481static std::optional<std::string> rna_CollisionSettings_path(
const PointerRNA * )
489 char name_esc[
sizeof(md->name) * 2];
492 return fmt::format(
"modifiers[\"{}\"].settings", name_esc);
503static bool rna_SoftBodySettings_use_edges_get(
PointerRNA *ptr)
505 Object *
data = id_cast<Object *>(ptr->owner_id);
509static void rna_SoftBodySettings_use_edges_set(
PointerRNA *ptr,
bool value)
511 Object *
data = id_cast<Object *>(ptr->owner_id);
520static bool rna_SoftBodySettings_use_goal_get(
PointerRNA *ptr)
522 Object *
data = id_cast<Object *>(ptr->owner_id);
526static void rna_SoftBodySettings_use_goal_set(
PointerRNA *ptr,
bool value)
528 Object *
data = id_cast<Object *>(ptr->owner_id);
537static bool rna_SoftBodySettings_stiff_quads_get(
PointerRNA *ptr)
539 Object *
data = id_cast<Object *>(ptr->owner_id);
543static void rna_SoftBodySettings_stiff_quads_set(
PointerRNA *ptr,
bool value)
545 Object *
data = id_cast<Object *>(ptr->owner_id);
554static bool rna_SoftBodySettings_self_collision_get(
PointerRNA *ptr)
556 Object *
data = id_cast<Object *>(ptr->owner_id);
560static void rna_SoftBodySettings_self_collision_set(
PointerRNA *ptr,
bool value)
562 Object *
data = id_cast<Object *>(ptr->owner_id);
571static int rna_SoftBodySettings_new_aero_get(
PointerRNA *ptr)
573 Object *
data = id_cast<Object *>(ptr->owner_id);
582static void rna_SoftBodySettings_new_aero_set(
PointerRNA *ptr,
int value)
584 Object *
data = id_cast<Object *>(ptr->owner_id);
593static bool rna_SoftBodySettings_face_collision_get(
PointerRNA *ptr)
595 Object *
data = id_cast<Object *>(ptr->owner_id);
599static void rna_SoftBodySettings_face_collision_set(
PointerRNA *ptr,
bool value)
601 Object *
data = id_cast<Object *>(ptr->owner_id);
610static bool rna_SoftBodySettings_edge_collision_get(
PointerRNA *ptr)
612 Object *
data = id_cast<Object *>(ptr->owner_id);
616static void rna_SoftBodySettings_edge_collision_set(
PointerRNA *ptr,
bool value)
618 Object *
data = id_cast<Object *>(ptr->owner_id);
627static void rna_SoftBodySettings_goal_vgroup_get(
PointerRNA *ptr,
char *value)
633static int rna_SoftBodySettings_goal_vgroup_length(
PointerRNA *ptr)
639static void rna_SoftBodySettings_goal_vgroup_set(
PointerRNA *ptr,
const char *value)
645static void rna_SoftBodySettings_mass_vgroup_set(
PointerRNA *ptr,
const char *value)
651static void rna_SoftBodySettings_spring_vgroup_set(
PointerRNA *ptr,
const char *value)
657static std::optional<std::string> rna_SoftBodySettings_path(
const PointerRNA *ptr)
659 const Object *ob = id_cast<Object *>(ptr->owner_id);
661 char name_esc[
sizeof(md->name) * 2];
664 return fmt::format(
"modifiers[\"{}\"].settings", name_esc);
667static int particle_id_check(
const PointerRNA *ptr)
669 ID *
id = ptr->owner_id;
676 if (particle_id_check(ptr)) {
681 part->pd->tex =
nullptr;
684 if (part->pd2 && part->pd2->forcefield !=
PFIELD_TEXTURE && part->pd2->tex) {
686 part->pd2->tex =
nullptr;
695 Object *ob = id_cast<Object *>(ptr->owner_id);
699 ob->pd->tex =
nullptr;
717 if (!particle_id_check(ptr)) {
718 Object *ob = id_cast<Object *>(ptr->owner_id);
727static void rna_FieldSettings_type_set(
PointerRNA *ptr,
int value)
733 if (!particle_id_check(ptr)) {
734 Object *ob = id_cast<Object *>(ptr->owner_id);
749 if (particle_id_check(ptr)) {
755 Object *ob = id_cast<Object *>(ptr->owner_id);
757 rna_FieldSettings_shape_update(bmain, scene, ptr);
770static std::optional<std::string> rna_FieldSettings_path(
const PointerRNA *ptr)
776 if (particle_id_check(ptr)) {
780 if (part->pd == pd) {
781 return "force_field_1";
783 else if (part->pd2 == pd) {
784 return "force_field_2";
789 Object *ob = id_cast<Object *>(ptr->owner_id);
800 ID *
id = ptr->owner_id;
803 Scene *scene = id_cast<Scene *>(
id);
824static std::optional<std::string> rna_EffectorWeight_path(
const PointerRNA *ptr)
829 if (particle_id_check(ptr)) {
833 if (part->effector_weights == ew) {
834 return "effector_weights";
838 ID *
id = ptr->owner_id;
841 const Scene *scene = id_cast<Scene *>(
id);
844 if (rbw->effector_weights == ew) {
845 return "rigidbody_world.effector_weights";
849 Object *ob = id_cast<Object *>(
id);
856 if (ob->soft->effector_weights == ew) {
857 char name_esc[
sizeof(md->name) * 2];
859 return fmt::format(
"modifiers[\"{}\"].settings.effector_weights", name_esc);
867 if (cmd->sim_parms->effector_weights == ew) {
868 char name_esc[
sizeof(md->name) * 2];
870 return fmt::format(
"modifiers[\"{}\"].settings.effector_weights", name_esc);
880 char name_esc[
sizeof(md->name) * 2];
882 return fmt::format(
"modifiers[\"{}\"].domain_settings.effector_weights", name_esc);
893 pmd->canvas->surfaces.first());
895 for (; surface; surface = surface->next) {
896 if (surface->effector_weights == ew) {
897 char name_esc[
sizeof(md->name) * 2];
898 char name_esc_surface[
sizeof(surface->name) * 2];
901 BLI_str_escape(name_esc_surface, surface->name,
sizeof(name_esc_surface));
903 "modifiers[\"{}\"].canvas_settings.canvas_surfaces[\"{}\"]"
915static void rna_CollisionSettings_dependency_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
917 Object *ob = id_cast<Object *>(ptr->owner_id);
921 if (ob->pd->deflect && !md) {
931 Object *ob = id_cast<Object *>(ptr->owner_id);
939 Object *ob = id_cast<Object *>(ptr->owner_id);
948 rna_softbody_update(bmain, scene, ptr);
958 if (particle_id_check(ptr)) {
959 return empty_shape_items;
962 ob = id_cast<Object *>(ptr->owner_id);
966 return curve_vortex_shape_items;
969 return curve_shape_items;
973 return vortex_shape_items;
980 return empty_vortex_shape_items;
983 return empty_shape_items;
1039 prop,
"Disk Cache",
"Save cache files to disk (.blend file must be saved first)");
1042 prop,
nullptr,
nullptr,
"rna_Cache_use_disk_cache_override_apply");
1094 "Use this file's path for the disk cache when library linked into another file "
1095 "(for local bakes per scene file, disable this option)");
1116 "rna_Cache_active_point_cache_index_get",
1117 "rna_Cache_active_point_cache_index_set",
1118 "rna_Cache_active_point_cache_index_range");
1150 "rna_Cache_list_begin",
1151 "rna_iterator_listbase_next",
1152 "rna_iterator_listbase_end",
1153 "rna_iterator_listbase_get",
1173 srna,
"Collision Settings",
"Collision settings for object in physics simulation");
1180 prop,
"Enabled",
"Enable this object as a collider for physics systems");
1201 prop,
"Friction Factor",
"Amount of friction during particle collision");
1214 prop,
"Permeability",
"Chance that the particle will pass through the mesh");
1234 prop,
"Inner Thickness",
"Inner face thickness (only used by softbodies)");
1255 "How much of effector force gets lost during collision with this object (in percent)");
1269 "Cloth collision acts with respect to the collider normals (improves penetration recovery)");
1276 "Cloth collision impulses act in the direction of the collider normals "
1277 "(more reliable in some cases)");
1425 {0,
"NONE", ICON_BLANK1,
"None",
""},
1430 "Create a force that acts as a boid's predators or target"},
1435 "Spherical forcefield based on the charge of particles, "
1436 "only influences other charge force fields"},
1441 "Create a force along a curve object"},
1442 {
PFIELD_DRAG,
"DRAG", ICON_FORCE_DRAG,
"Drag",
"Create a force that dampens motion"},
1445 ICON_FORCE_FLUIDFLOW,
1447 "Create a force based on fluid simulation velocities"},
1452 "Radial field toward the center of object"},
1455 ICON_FORCE_HARMONIC,
1457 "The source of this force field is the zero point of a harmonic oscillator"},
1460 ICON_FORCE_LENNARDJONES,
1462 "Forcefield based on the Lennard-Jones potential"},
1465 ICON_FORCE_MAGNETIC,
1467 "Forcefield depends on the speed of the particles"},
1468 {
PFIELD_TEXTURE,
"TEXTURE", ICON_FORCE_TEXTURE,
"Texture",
"Force field based on a texture"},
1471 ICON_FORCE_TURBULENCE,
1473 "Create turbulence with a noise field"},
1478 "Spiraling force that twists the force object's local Z axis"},
1483 "Constant force along the force object's local Z axis"},
1484 {0,
nullptr, 0,
nullptr,
nullptr},
1491 {0,
nullptr, 0,
nullptr,
nullptr},
1498 {0,
nullptr, 0,
nullptr,
nullptr},
1505 {0,
nullptr, 0,
nullptr,
nullptr},
1509 {0,
"NONE", 0,
"None",
""},
1510 {4,
"BRAID", 0,
"Braid",
""},
1511 {1,
"CURL", 0,
"Curl",
""},
1512 {2,
"RADIAL", 0,
"Radial",
""},
1513 {6,
"ROLL", 0,
"Roll",
""},
1514 {5,
"ROTATION", 0,
"Rotation",
""},
1515 {3,
"WAVE", 0,
"Wave",
""},
1516 {0,
nullptr, 0,
nullptr,
nullptr},
1523 srna,
"Field Settings",
"Field settings for an object in physics simulation");
1541 prop,
"Shape",
"Which direction is used to calculate the effector force");
1556 "How the texture effect is calculated (RGB and Curl need a RGB texture, "
1557 "else Gradient will be used instead)");
1564 prop,
"Z Direction",
"Effect in full or only positive/negative Z direction");
1593 prop,
"Quadratic Drag",
"Drag component proportional to the square of velocity");
1608 "How much the force is reduced when acting parallel to a surface, e.g. cloth");
1636 prop,
"Falloff Power",
"How quickly strength falls off with distance from the force field");
1656 prop,
"Minimum Radial Distance",
"Minimum radial distance for the field's falloff");
1663 prop,
"Maximum Radial Distance",
"Maximum radial distance for the field to work");
1670 prop,
"Radial Falloff Power",
"Radial falloff power (real gravitational falloff = 2)");
1677 prop,
"Nabla",
"Defines size of derivative offset used for calculating gradient and curl");
1706 prop,
"Use Min",
"Use a minimum radial distance for the field's falloff");
1724 prop,
"Use Global Coordinates",
"Use effector/global coordinates for turbulence");
1735 prop,
"Root Texture Coordinates",
"Texture coordinates from root particle locations");
1756 prop,
"Multiple Springs",
"Every point is affected by multiple springs");
1788 prop,
"Minimum Distance",
"The distance from which particles are affected fully");
1800 prop,
"Additive",
"Based on distance/falloff it adds a portion of the entire path");
1806 prop,
"Weights",
"Use curve weights to influence the particle influence along the curve");
1869 {
SBC_MODE_AVG,
"AVERAGE", 0,
"Average",
"Average Spring length * Ball Size"},
1870 {
SBC_MODE_MIN,
"MINIMAL", 0,
"Minimal",
"Minimal Spring length * Ball Size"},
1871 {
SBC_MODE_MAX,
"MAXIMAL", 0,
"Maximal",
"Maximal Spring length * Ball Size"},
1873 {0,
nullptr, 0,
nullptr,
nullptr},
1877 {0,
"SIMPLE", 0,
"Simple",
"Edges receive a drag force from surrounding media"},
1882 "Edges receive a lift force when passing through surrounding media"},
1883 {0,
nullptr, 0,
nullptr,
nullptr},
1890 srna,
"Soft Body Settings",
"Soft body simulation settings for an object");
1923 prop,
"Speed",
"Tweak timing for physics to control frequency and speed");
1932 "rna_SoftBodySettings_goal_vgroup_get",
1933 "rna_SoftBodySettings_goal_vgroup_length",
1934 "rna_SoftBodySettings_goal_vgroup_set");
1941 prop,
"Goal Minimum",
"Goal minimum, vertex weights are scaled to match this range");
1948 prop,
"Goal Maximum",
"Goal maximum, vertex weights are scaled to match this range");
1962 prop,
"Goal Stiffness",
"Goal (vertex target position) spring stiffness");
1995 prop,
"Spring Length",
"Alter spring length to shrink/blow up (unit %) 0 to disable");
2041 prop,
"Ball Size",
"Absolute ball size or factor if not manually adjusted");
2064 "The Runge-Kutta ODE solver error limit, low value gives more precision, "
2065 "high values speed");
2092 "Fuzziness while on collision, high values make collision handling faster "
2104 prop,
"Print Performance to Console",
"Turn on SB diagnose console prints");
2109 prop,
"Estimate Transforms",
"Store the estimated transforms in the soft body settings");
2137 prop,
"rna_SoftBodySettings_use_goal_get",
"rna_SoftBodySettings_use_goal_set");
2140 prop,
"Use Goal",
"Define forces for vertices to stick to animated position");
2145 prop,
"rna_SoftBodySettings_use_edges_get",
"rna_SoftBodySettings_use_edges_set");
2152 prop,
"rna_SoftBodySettings_stiff_quads_get",
"rna_SoftBodySettings_stiff_quads_set");
2159 prop,
"rna_SoftBodySettings_edge_collision_get",
"rna_SoftBodySettings_edge_collision_set");
2165 prop,
"rna_SoftBodySettings_face_collision_get",
"rna_SoftBodySettings_face_collision_set");
2172 prop,
"rna_SoftBodySettings_new_aero_get",
"rna_SoftBodySettings_new_aero_set",
nullptr);
2174 prop,
"Aerodynamics Type",
"Method of calculating aerodynamic interaction");
2179 prop,
"rna_SoftBodySettings_self_collision_get",
"rna_SoftBodySettings_self_collision_set");
#define FOREACH_SCENE_OBJECT_END
#define FOREACH_SCENE_OBJECT_BEGIN(scene, _instance)
#define PTCACHE_TYPE_SMOKE_DOMAIN
#define PTCACHE_RESET_DEPSGRAPH
#define BLT_I18NCONTEXT_ID_PARTICLESETTINGS
Types and defines for representing Rigid Body entities.
Read Blender memory allocation and freeing.
#define RNA_TRANSLATION_PREC_DEFAULT
#define UNUSED_VARS_NDEBUG(...)
#define BLI_assert_msg(a, msg)
ModifierData * modifier_add(ReportList *reports, Main *bmain, Scene *scene, Object *ob, const char *name, int type)
void check_force_modifiers(Main *bmain, Scene *scene, Object *object)
void WM_main_add_notifier(uint type, void *reference)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
static void rna_def_softbody(BlenderRNA *brna)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
char * STRNCPY(char(&dst)[N], const char *src)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
int BKE_ptcache_object_reset(struct Scene *scene, struct Object *ob, int mode)
static void rna_def_pointcache_active(BlenderRNA *brna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PFIELD_CLOTH_USE_CULLING
@ PFIELD_MULTIPLE_SPRINGS
@ PFIELD_GUIDE_PATH_WEIGHT
@ PFIELD_CLOTH_USE_NORMAL
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
@ PTCACHE_FLAG_INFO_DIRTY
@ eModifierType_ParticleSystem
@ eModifierType_Collision
@ eModifierType_DynamicPaint
void RNA_define_lib_overridable(const bool make_overridable)
void BKE_ptcache_load_external(struct PTCacheID *pid)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
MINLINE int max_ii(int a, int b)
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_NO_COMPARISON
int rna_object_vgroup_name_index_length(PointerRNA *ptr, int index)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
PropertyType RNA_property_type(PropertyRNA *prop)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
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_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void DEG_id_tag_update(ID *id, unsigned int flags)
static const EnumPropertyItem effector_shape_items[]
BMesh const char void * data
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_object_force(BlenderRNA *brna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
void BKE_ptcache_ids_from_object(ListBaseT< PTCacheID > *lb, struct Object *ob, struct Scene *scene, int duplis)
ATTR_WARN_UNUSED_RESULT const size_t num
static void rna_def_effector_weight(BlenderRNA *brna)
@ eModifierTypeFlag_UsesPointCache
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
ModifierData * BKE_modifiers_findby_type(const Object *ob, ModifierType type)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
static void rna_def_pointcache_common(StructRNA *srna)
void rna_object_vgroup_name_index_set(PointerRNA *ptr, const char *value, short *index)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
ID_Type GS(const char *name)
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
static void rna_def_ptcache_point_caches(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
void DEG_relations_tag_update(Main *bmain)
PTCacheID BKE_ptcache_id_find(struct Object *ob, struct Scene *scene, struct PointCache *cache)
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void rna_object_vgroup_name_set(PointerRNA *ptr, const char *value, char *result, int result_maxncpy)
bool BLI_path_make_safe_filename(char *filename) ATTR_NONNULL(1)
void BKE_ptcache_update_info(PTCacheID *pid)
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
void BKE_ptcache_disk_cache_rename(struct PTCacheID *pid, const char *name_src, const char *name_dst)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
static void rna_def_field(BlenderRNA *brna)
void BKE_ptcache_toggle_disk_cache(struct PTCacheID *pid)
const ModifierTypeInfo * BKE_modifier_get_info(ModifierType type)
const EnumPropertyItem rna_enum_axis_xyz_items[]
void rna_object_vgroup_name_index_get(PointerRNA *ptr, char *value, int index)
const int rna_matrix_dimsize_3x3[]
static void rna_def_collision(BlenderRNA *brna)