49 "GREASE_PENCIL_VERTEX_WEIGHT_PROXIMITY",
50 ICON_MOD_VERTEX_WEIGHT,
51 "Vertex Weight Proximity",
52 "Generate vertex weights based on distance to object"},
57 ICON_MOD_DATA_TRANSFER,
59 "Transfer several types of data (vertex groups, UV maps, vertex colors, custom normals) from "
60 "one mesh to another"},
65 "Deform the mesh using an external frame-by-frame vertex transform cache"},
67 "MESH_SEQUENCE_CACHE",
69 "Mesh Sequence Cache",
70 "Deform the mesh or curve using an external mesh cache in Alembic format"},
75 "Modify the direction of the surface normals"},
80 "Modify the direction of the surface normals using a weighting method"},
85 "Project the UV map coordinates from the negative Z axis of another object"},
90 "Transform the UV map using the difference between two objects"},
93 ICON_MOD_VERTEX_WEIGHT,
95 "Modify of the weights of a vertex group"},
98 ICON_MOD_VERTEX_WEIGHT,
100 "Mix the weights of two vertex groups"},
102 "VERTEX_WEIGHT_PROXIMITY",
103 ICON_MOD_VERTEX_WEIGHT,
104 "Vertex Weight Proximity",
105 "Set the vertex group weights based on the distance to another target object"},
107 "GREASE_PENCIL_COLOR",
108 ICON_MOD_HUE_SATURATION,
110 "Change hue/saturation/value of the strokes"},
112 "GREASE_PENCIL_TINT",
115 "Tint the color of the strokes"},
117 "GREASE_PENCIL_OPACITY",
120 "Change the opacity of the strokes"},
122 "GREASE_PENCIL_VERTEX_WEIGHT_ANGLE",
123 ICON_MOD_VERTEX_WEIGHT,
124 "Vertex Weight Angle",
125 "Generate vertex weights based on stroke angle"},
127 "GREASE_PENCIL_TIME",
132 "GREASE_PENCIL_TEXTURE",
135 "Change stroke UV texture values"},
142 "Create copies of the shape with offsets"},
147 "Generate sloped corners by adding geometry to the mesh's edges or vertices"},
152 "Use another shape to cut, combine or perform a difference operation"},
157 "Cause the faces of the mesh object to appear or disappear one after the other over time"},
162 "Reduce the geometry density"},
167 "Split away joined faces at the edges"},
173 "Dynamically hide vertices based on a vertex group or armature"},
178 "Mirror along the local X, Y and/or Z axes, over the object origin"},
188 "Subdivide the mesh in a way that allows editing the higher subdivision levels"},
193 "Generate new mesh topology based on the current shape"},
198 "Lathe around an axis, treating the input mesh as a profile"},
203 "Create a solid shape from vertices and edges, using the vertex radius to define the "
209 "Subdivision Surface",
210 "Split the faces into smaller parts, giving it a smoother appearance"},
213 ICON_MOD_TRIANGULATE,
215 "Convert all polygons to triangles"},
225 "Find groups of vertices closer than dist and merge them together"},
230 "Convert faces into thickened edges"},
232 "GREASE_PENCIL_ARRAY",
235 "Duplicate strokes into an array"},
237 "GREASE_PENCIL_BUILD",
240 "Grease Pencil build modifier"},
242 "GREASE_PENCIL_LENGTH",
245 "Grease Pencil length modifier"},
250 "Generate Line Art from scene geometries"},
252 "GREASE_PENCIL_MIRROR",
255 "Duplicate strokes like a mirror"},
257 "GREASE_PENCIL_MULTIPLY",
258 ICON_GP_MULTIFRAME_EDITING,
260 "Generate multiple strokes around original strokes"},
262 "GREASE_PENCIL_SIMPLIFY",
265 "Simplify stroke reducing number of points"},
267 "GREASE_PENCIL_SUBDIV",
270 "Grease Pencil subdivide modifier"},
272 "GREASE_PENCIL_ENVELOPE",
275 "Create an envelope shape"},
277 "GREASE_PENCIL_OUTLINE",
280 "Convert stroke to outline"},
287 "Deform the shape using an armature object"},
292 "Shift the shape towards a predefined primitive"},
293 {
eModifierType_Curve,
"CURVE", ICON_MOD_CURVE,
"Curve",
"Bend the mesh using a curve object"},
298 "Offset vertices based on a texture"},
299 {
eModifierType_Hook,
"HOOK", ICON_HOOK,
"Hook",
"Deform specific points using another object"},
304 "Deform based a series of anchor points"},
309 "Deform using the shape of a lattice object"},
314 "Deform using a different mesh, which acts as a deformation cage"},
319 "Project the shape onto another object"},
322 ICON_MOD_SIMPLEDEFORM,
324 "Deform the shape by twisting, bending, tapering or stretching"},
329 "Smooth the mesh by flattening the angles between adjacent faces"},
334 "Smooth the mesh while still preserving the volume"},
339 "Reduce the noise on a mesh surface with minimal changes to its shape"},
344 "Transfer motion from another mesh"},
349 "Warp parts of a mesh to a new location in a very flexible way thanks to 2 specified "
355 "Adds a ripple-like motion to an object's geometry"},
360 "Deform volume based on noise or other vector fields"},
362 "GREASE_PENCIL_HOOK",
365 "Deform stroke points using objects"},
367 "GREASE_PENCIL_NOISE",
370 "Generate noise wobble in Grease Pencil strokes"},
372 "GREASE_PENCIL_OFFSET",
375 "Change stroke location, rotation, or scale"},
377 "GREASE_PENCIL_SMOOTH",
380 "Smooth Grease Pencil strokes"},
382 "GREASE_PENCIL_THICKNESS",
385 "Change stroke thickness"},
387 "GREASE_PENCIL_LATTICE",
390 "Deform strokes using a lattice object"},
392 "GREASE_PENCIL_DASH",
395 "Generate dot-dash styled strokes"},
397 "GREASE_PENCIL_ARMATURE",
400 "Deform stroke points using armature object"},
402 "GREASE_PENCIL_SHRINKWRAP",
405 "Project the shape onto another object"},
413 "For colliders participating in physics simulation, control which level in the modifier "
414 "stack is used as the collision surface"},
417 ICON_MOD_DYNAMICPAINT,
419 "Turn objects into paint canvases and brushes, creating color attributes, image sequences, "
425 "Break apart the mesh faces and let them follow particles"},
430 "Physics simulation for fluids, like water, oil and smoke"},
431 {
eModifierType_Ocean,
"OCEAN", ICON_MOD_OCEAN,
"Ocean",
"Generate a moving ocean surface"},
434 ICON_MOD_PARTICLE_INSTANCE,
436 "Duplicate mesh at the location of particles"},
441 "Spawn particles from the shape"},
446 "Simulate soft deformable objects"},
448 {0,
nullptr, 0,
nullptr,
nullptr},
456 "Split the quads in nice triangles, slower method"},
461 "Split the quads on the first and third vertices"},
466 "Split the quads on the 2nd and 4th vertices"},
471 "Split the quads along their shortest diagonal"},
476 "Split the quads along their longest diagonal"},
477 {0,
nullptr, 0,
nullptr,
nullptr},
485 "Arrange the new triangles evenly (slow)"},
490 "Split the polygons with an ear clipping algorithm"},
491 {0,
nullptr, 0,
nullptr,
nullptr},
499 "The point is constrained to the surface of the target object, "
500 "with distance offset towards the original point location"},
505 "The point is constrained to be inside the target object"},
510 "The point is constrained to be outside the target object"},
515 "The point is constrained to the surface of the target object, "
516 "with distance offset always to the outside, towards or away from the original location"},
521 "The point is constrained to the surface of the target object, "
522 "with distance offset applied exactly along the target normal"},
523 {0,
nullptr, 0,
nullptr,
nullptr},
528 "NEAREST_SURFACEPOINT",
530 "Nearest Surface Point",
531 "Shrink the mesh to the nearest target surface"},
536 "Shrink the mesh to the nearest target surface along a given axis"},
541 "Shrink the mesh to the nearest target vertex"},
545 "Target Normal Project",
546 "Shrink the mesh to the nearest target surface "
547 "along the interpolated vertex normals of the target"},
548 {0,
nullptr, 0,
nullptr,
nullptr},
552 {0,
"OFF", 0,
"Off",
"No culling"},
557 "No projection when in front of the face"},
559 {0,
nullptr, 0,
nullptr,
nullptr},
566 {0,
nullptr, 0,
nullptr,
nullptr},
581 {0,
nullptr, 0,
nullptr,
nullptr},
593 "Nearest Edge Vertex",
594 "Copy from closest vertex of closest edge"},
596 "EDGEINTERP_NEAREST",
598 "Nearest Edge Interpolated",
599 "Copy from interpolated values of vertices from closest point on closest edge"},
603 "Nearest Face Vertex",
604 "Copy from closest vertex of closest face"},
606 "POLYINTERP_NEAREST",
608 "Nearest Face Interpolated",
609 "Copy from interpolated values of vertices from closest point on closest face"},
611 "POLYINTERP_VNORPROJ",
613 "Projected Face Interpolated",
614 "Copy from interpolated values of vertices from point on closest face hit by "
615 "normal-projection"},
616 {0,
nullptr, 0,
nullptr,
nullptr},
625 "Copy from most similar edge (edge which vertices are the closest of destination edge's "
631 "Copy from closest edge (using midpoints)"},
636 "Copy from closest edge of closest face (using midpoints)"},
638 "EDGEINTERP_VNORPROJ",
640 "Projected Edge Interpolated",
641 "Interpolate all source edges hit by the projection of destination one along its own normal "
643 {0,
nullptr, 0,
nullptr,
nullptr},
651 "Nearest Corner and Best Matching Normal",
652 "Copy from nearest corner which has the best matching normal"},
656 "Nearest Corner and Best Matching Face Normal",
657 "Copy from nearest corner which has the face with the best matching normal to destination "
658 "corner's face one"},
662 "Nearest Corner of Nearest Face",
663 "Copy from nearest corner of nearest face"},
665 "POLYINTERP_NEAREST",
667 "Nearest Face Interpolated",
668 "Copy from interpolated corners of the nearest source face"},
670 "POLYINTERP_LNORPROJ",
672 "Projected Face Interpolated",
673 "Copy from interpolated corners of the source face hit by corner normal projection"},
674 {0,
nullptr, 0,
nullptr,
nullptr},
683 "Copy from nearest face (using center points)"},
687 "Best Normal-Matching",
688 "Copy from source face which normal is the closest to destination one"},
690 "POLYINTERP_PNORPROJ",
692 "Projected Face Interpolated",
693 "Interpolate all source polygons intersected by the projection of destination one along its "
695 {0,
nullptr, 0,
nullptr,
nullptr},
699 {
CDT_MIX_TRANSFER,
"REPLACE", 0,
"Replace",
"Overwrite all elements' data"},
704 "Only replace destination elements where data is above given threshold (exact behavior "
705 "depends on data type)"},
710 "Only replace destination elements where data is below given threshold (exact behavior "
711 "depends on data type)"},
716 "Mix source value into destination one, using given threshold as factor"},
721 "Add source value to destination one, using given threshold as factor"},
726 "Subtract source value to destination one, using given threshold as factor"},
731 "Multiply source value to destination one, using given threshold as factor"},
733 {0,
nullptr, 0,
nullptr,
nullptr},
742 "Selected Pose Bones",
743 "Transfer all vertex groups used by selected pose bones"},
748 "Transfer all vertex groups used by deform bones"},
749 {0,
nullptr, 0,
nullptr,
nullptr},
754 {
DT_LAYERS_NAME_DST,
"NAME", 0,
"By Name",
"Match target data layers to affect by name"},
759 "Match target data layers to affect by order (indices)"},
760 {0,
nullptr, 0,
nullptr,
nullptr},
764 {0,
"X", 0,
"X",
""},
765 {1,
"Y", 0,
"Y",
""},
766 {0,
nullptr, 0,
nullptr,
nullptr},
770 {0,
"X", 0,
"X",
""},
771 {1,
"Y", 0,
"Y",
""},
772 {2,
"Z", 0,
"Z",
""},
773 {0,
nullptr, 0,
nullptr,
nullptr},
777 {(1 << 0),
"X", 0,
"X",
""},
778 {(1 << 1),
"Y", 0,
"Y",
""},
779 {(1 << 2),
"Z", 0,
"Z",
""},
780 {0,
nullptr, 0,
nullptr,
nullptr},
789 "UVs are smoothed, corners on discontinuous boundary are kept sharp"},
791 "PRESERVE_CORNERS_AND_JUNCTIONS",
793 "Keep Corners, Junctions",
794 "UVs are smoothed, corners on discontinuous boundary and "
795 "junctions of 3 or more regions are kept sharp"},
797 "PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE",
799 "Keep Corners, Junctions, Concave",
800 "UVs are smoothed, corners on discontinuous boundary, "
801 "junctions of 3 or more regions and darts and concave corners are kept sharp"},
803 "PRESERVE_BOUNDARIES",
806 "UVs are smoothed, boundaries are kept sharp"},
808 {0,
nullptr, 0,
nullptr,
nullptr},
816 "Smooth boundaries, but corners are kept sharp"},
818 {0,
nullptr, 0,
nullptr,
nullptr},
825 "Natural Drawing Speed",
826 "Use recorded speed multiplied by a factor"},
831 "Set a fixed number of frames for all build animations"},
836 "Set a manual percentage to build"},
837 {0,
nullptr, 0,
nullptr,
nullptr},
845# include <fmt/format.h>
899 static_cast<void *
>(uvp->projectors),
910 if (modifier_type !=
nullptr) {
911 return *modifier_type->srna;
916static void rna_Modifier_name_set(
PointerRNA *ptr,
const char *value)
919 char oldname[
sizeof(md->name)];
929 Object *ob = id_cast<Object *>(ptr->owner_id);
946static std::optional<std::string> rna_Modifier_path(
const PointerRNA *ptr)
949 char name_esc[
sizeof(md->name) * 2];
952 return fmt::format(
"modifiers[\"{}\"]", name_esc);
963 rna_Modifier_update(bmain, scene, ptr);
969 rna_Modifier_update(bmain, scene, ptr);
973static void rna_Modifier_is_active_set(
PointerRNA *ptr,
bool value)
991static void rna_Modifier_use_pin_to_last_set(
PointerRNA *ptr,
bool value)
993 Object *
object =
reinterpret_cast<Object *
>(ptr->owner_id);
1002 md_iter = md_iter->next;
1009 md_iter = md_iter->prev;
1017# define RNA_MOD_VGROUP_NAME_SET(_type, _prop) \
1018 static void rna_##_type##Modifier_##_prop##_set(PointerRNA *ptr, const char *value) \
1020 _type##ModifierData *tmd = (_type##ModifierData *)ptr->data; \
1021 rna_object_vgroup_name_set(ptr, value, tmd->_prop, sizeof(tmd->_prop)); \
1024RNA_MOD_VGROUP_NAME_SET(Armature, defgrp_name);
1025RNA_MOD_VGROUP_NAME_SET(Bevel, defgrp_name);
1026RNA_MOD_VGROUP_NAME_SET(Cast, defgrp_name);
1027RNA_MOD_VGROUP_NAME_SET(
Curve, name);
1028RNA_MOD_VGROUP_NAME_SET(DataTransfer, defgrp_name);
1029RNA_MOD_VGROUP_NAME_SET(Decimate, defgrp_name);
1030RNA_MOD_VGROUP_NAME_SET(CorrectiveSmooth, defgrp_name);
1031RNA_MOD_VGROUP_NAME_SET(Displace, defgrp_name);
1032RNA_MOD_VGROUP_NAME_SET(Hook, name);
1033RNA_MOD_VGROUP_NAME_SET(LaplacianDeform, anchor_grp_name);
1034RNA_MOD_VGROUP_NAME_SET(LaplacianSmooth, defgrp_name);
1035RNA_MOD_VGROUP_NAME_SET(
Lattice, name);
1036RNA_MOD_VGROUP_NAME_SET(
Mask, vgroup);
1037RNA_MOD_VGROUP_NAME_SET(MeshCache, defgrp_name);
1038RNA_MOD_VGROUP_NAME_SET(MeshDeform, defgrp_name);
1039RNA_MOD_VGROUP_NAME_SET(NormalEdit, defgrp_name);
1040RNA_MOD_VGROUP_NAME_SET(Shrinkwrap, vgroup_name);
1041RNA_MOD_VGROUP_NAME_SET(SimpleDeform, vgroup_name);
1042RNA_MOD_VGROUP_NAME_SET(
Smooth, defgrp_name);
1043RNA_MOD_VGROUP_NAME_SET(Solidify, defgrp_name);
1044RNA_MOD_VGROUP_NAME_SET(Solidify, shell_defgrp_name);
1045RNA_MOD_VGROUP_NAME_SET(Solidify, rim_defgrp_name);
1046RNA_MOD_VGROUP_NAME_SET(SurfaceDeform, defgrp_name);
1047RNA_MOD_VGROUP_NAME_SET(UVWarp, vgroup_name);
1048RNA_MOD_VGROUP_NAME_SET(Warp, defgrp_name);
1049RNA_MOD_VGROUP_NAME_SET(Wave, defgrp_name);
1050RNA_MOD_VGROUP_NAME_SET(WeightVGEdit, defgrp_name);
1051RNA_MOD_VGROUP_NAME_SET(WeightVGEdit, mask_defgrp_name);
1052RNA_MOD_VGROUP_NAME_SET(WeightVGMix, defgrp_name_a);
1053RNA_MOD_VGROUP_NAME_SET(WeightVGMix, defgrp_name_b);
1054RNA_MOD_VGROUP_NAME_SET(WeightVGMix, mask_defgrp_name);
1055RNA_MOD_VGROUP_NAME_SET(WeightVGProximity, defgrp_name);
1056RNA_MOD_VGROUP_NAME_SET(WeightVGProximity, mask_defgrp_name);
1057RNA_MOD_VGROUP_NAME_SET(WeightedNormal, defgrp_name);
1058RNA_MOD_VGROUP_NAME_SET(Weld, defgrp_name);
1059RNA_MOD_VGROUP_NAME_SET(
Wireframe, defgrp_name);
1060RNA_MOD_VGROUP_NAME_SET(GreasePencilWeightAngle, target_vgname);
1061RNA_MOD_VGROUP_NAME_SET(GreasePencilWeightProximity, target_vgname);
1062RNA_MOD_VGROUP_NAME_SET(GreasePencilLineart, vgname);
1063RNA_MOD_VGROUP_NAME_SET(GreasePencilBuild, target_vgname);
1065static void rna_ExplodeModifier_vgroup_get(
PointerRNA *ptr,
char *value)
1071static int rna_ExplodeModifier_vgroup_length(
PointerRNA *ptr)
1077static void rna_ExplodeModifier_vgroup_set(
PointerRNA *ptr,
const char *value)
1083# undef RNA_MOD_VGROUP_NAME_SET
1087# define RNA_MOD_UVLAYER_NAME_SET(_type, _prop) \
1088 static void rna_##_type##Modifier_##_prop##_set(PointerRNA *ptr, const char *value) \
1090 _type##ModifierData *tmd = (_type##ModifierData *)ptr->data; \
1091 rna_object_uvlayer_name_set(ptr, value, tmd->_prop, sizeof(tmd->_prop)); \
1094RNA_MOD_UVLAYER_NAME_SET(MappingInfo, uvlayer_name);
1095RNA_MOD_UVLAYER_NAME_SET(UVProject, uvlayer_name);
1096RNA_MOD_UVLAYER_NAME_SET(UVWarp, uvlayer_name);
1097RNA_MOD_UVLAYER_NAME_SET(WeightVGEdit, mask_tex_uvlayer_name);
1098RNA_MOD_UVLAYER_NAME_SET(WeightVGMix, mask_tex_uvlayer_name);
1099RNA_MOD_UVLAYER_NAME_SET(WeightVGProximity, mask_tex_uvlayer_name);
1101# undef RNA_MOD_UVLAYER_NAME_SET
1109 if (!self || ob != self) {
1117# define RNA_MOD_OBJECT_SET(_type, _prop, _obtype) \
1118 static void rna_##_type##Modifier_##_prop##_set( \
1119 PointerRNA *ptr, PointerRNA value, ReportList * ) \
1121 _type##ModifierData *tmd = (_type##ModifierData *)ptr->data; \
1122 modifier_object_set((Object *)ptr->owner_id, &tmd->_prop, _obtype, value); \
1129RNA_MOD_OBJECT_SET(Boolean,
object,
OB_MESH);
1130RNA_MOD_OBJECT_SET(Cast,
object,
OB_EMPTY);
1132RNA_MOD_OBJECT_SET(DataTransfer, ob_source,
OB_MESH);
1135RNA_MOD_OBJECT_SET(MeshDeform,
object,
OB_MESH);
1136RNA_MOD_OBJECT_SET(NormalEdit, target,
OB_EMPTY);
1137RNA_MOD_OBJECT_SET(Shrinkwrap, target,
OB_MESH);
1138RNA_MOD_OBJECT_SET(Shrinkwrap, auxTarget,
OB_MESH);
1139RNA_MOD_OBJECT_SET(SurfaceDeform, target,
OB_MESH);
1140RNA_MOD_OBJECT_SET(GreasePencilMirror,
object,
OB_EMPTY);
1141RNA_MOD_OBJECT_SET(GreasePencilTint,
object,
OB_EMPTY);
1142RNA_MOD_OBJECT_SET(GreasePencilLattice,
object,
OB_LATTICE);
1143RNA_MOD_OBJECT_SET(GreasePencilWeightProximity,
object,
OB_EMPTY);
1144RNA_MOD_OBJECT_SET(GreasePencilHook,
object,
OB_EMPTY);
1145RNA_MOD_OBJECT_SET(GreasePencilArmature,
object,
OB_ARMATURE);
1146RNA_MOD_OBJECT_SET(GreasePencilOutline,
object,
OB_EMPTY);
1147RNA_MOD_OBJECT_SET(GreasePencilShrinkwrap, target,
OB_MESH);
1148RNA_MOD_OBJECT_SET(GreasePencilShrinkwrap, aux_target,
OB_MESH);
1149RNA_MOD_OBJECT_SET(GreasePencilBuild,
object,
OB_EMPTY);
1150RNA_MOD_OBJECT_SET(GreasePencilLineart, source_camera,
OB_CAMERA);
1152static void rna_HookModifier_object_set(
PointerRNA *ptr,
1156 Object *owner = id_cast<Object *>(ptr->owner_id);
1165static bool rna_HookModifier_object_override_apply(
Main *bmain,
1170 PointerRNA *ptr_storage = &rnaapply_ctx.ptr_storage;
1173 const int len_dst = rnaapply_ctx.len_src;
1174 const int len_src = rnaapply_ctx.len_src;
1175 const int len_storage = rnaapply_ctx.len_storage;
1178 BLI_assert(len_dst == len_src && (!ptr_storage || len_dst == len_storage) && len_dst == 0);
1180 "Unsupported RNA override operation on Hook modifier target object pointer");
1186 Object *owner = id_cast<Object *>(ptr_dst->owner_id);
1192 if (target_src == target_dst) {
1196 hmd->object = target_src;
1197 if (target_src ==
nullptr) {
1205static void rna_HookModifier_subtarget_set(
PointerRNA *ptr,
const char *value)
1207 Object *owner = id_cast<Object *>(ptr->owner_id);
1210 STRNCPY(hmd->subtarget, value);
1214static int rna_HookModifier_vertex_indices_get_length(
const PointerRNA *ptr,
1218 int indexar_num = hmd->
indexar ? hmd->indexar_num : 0;
1219 return (
length[0] = indexar_num);
1222static void rna_HookModifier_vertex_indices_get(
PointerRNA *ptr,
int *values)
1225 if (hmd->indexar !=
nullptr) {
1226 memcpy(values, hmd->indexar,
sizeof(
int) * hmd->indexar_num);
1235 if (indices_num <= 0) {
1236 MEM_SAFE_DELETE(hmd->indexar);
1237 hmd->indexar_num = 0;
1241 for (
int i = 0; i < indices_num; i++) {
1242 if (indices[i] < 0) {
1249 size_t size =
sizeof(int) * indices_num;
1251 memcpy(buffer, indices, size);
1256 for (
int i = 1; i < indices_num; i++) {
1257 if (buffer[i] == buffer[i - 1]) {
1265 MEM_SAFE_DELETE(hmd->indexar);
1266 hmd->indexar = buffer;
1267 hmd->indexar_num = indices_num;
1285# undef RNA_MOD_OBJECT_SET
1292 Object *ob = id_cast<Object *>(ptr->owner_id);
1304 switch (fmd->type) {
1315 rna_Modifier_dependency_update(bmain, scene, ptr);
1318static void rna_MultiresModifier_level_range(
1327static bool rna_MultiresModifier_external_get(
PointerRNA *ptr)
1329 Object *ob = id_cast<Object *>(ptr->owner_id);
1330 Mesh *
mesh = id_cast<Mesh *>(ob->data);
1335static void rna_MultiresModifier_filepath_get(
PointerRNA *ptr,
char *value)
1337 Object *ob = id_cast<Object *>(ptr->owner_id);
1343static void rna_MultiresModifier_filepath_set(
PointerRNA *ptr,
const char *value)
1345 Object *ob = id_cast<Object *>(ptr->owner_id);
1354static int rna_MultiresModifier_filepath_length(
PointerRNA *ptr)
1356 Object *ob = id_cast<Object *>(ptr->owner_id);
1362static int rna_ShrinkwrapModifier_face_cull_get(
PointerRNA *ptr)
1368static void rna_ShrinkwrapModifier_face_cull_set(
PointerRNA *ptr,
int value)
1371 swm->
shrinkOpts = (swm->shrinkOpts & ~MOD_SHRINKWRAP_CULL_TARGET_MASK) | value;
1374static bool rna_MeshDeformModifier_is_bound_get(
PointerRNA *ptr)
1381 Object *ob = id_cast<Object *>(ptr->owner_id);
1387 Object *ob = id_cast<Object *>(ptr->owner_id);
1393 Object *ob = id_cast<Object *>(ptr->owner_id);
1403 short segments = short(
RNA_int_get(ptr,
"segments"));
1406 rna_Modifier_update(bmain, scene, ptr);
1409static void rna_BevelModifier_weight_attribute_visit_for_search(
1416 Object *ob = id_cast<Object *>(ptr->owner_id);
1426 visit_params.
text = name;
1427 visit_fn(visit_params);
1433static void rna_UVProjectModifier_num_projectors_set(
PointerRNA *ptr,
int value)
1440 md->projectors[a] =
nullptr;
1449 rna_Modifier_update(bmain, scene, ptr);
1452static void rna_OceanModifier_ocean_chop_set(
PointerRNA *ptr,
float value)
1457 omd->chop_amount = value;
1459 if ((old_value == 0.0f && value > 0.0f) || (old_value > 0.0f && value == 0.0f)) {
1464static bool rna_LaplacianDeformModifier_is_bind_get(
PointerRNA *ptr)
1478static void rna_CurveModifier_dependency_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
1481 rna_Modifier_update(bmain, scene, ptr);
1483 if (cmd->object !=
nullptr) {
1484 Curve *curve = id_cast<Curve *>(cmd->object->data);
1485 if ((curve->flag &
CU_PATH) == 0) {
1491static void rna_ArrayModifier_dependency_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
1494 rna_Modifier_update(bmain, scene, ptr);
1496 if (amd->curve_ob !=
nullptr) {
1497 Curve *curve = id_cast<Curve *>(amd->curve_ob->data);
1498 if ((curve->flag &
CU_PATH) == 0) {
1504static void rna_DataTransferModifier_use_data_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
1521 rna_Modifier_dependency_update(bmain, scene, ptr);
1524static void rna_DataTransferModifier_data_types_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
1542 rna_Modifier_dependency_update(bmain, scene, ptr);
1563 Object *ob_src = dtmd->ob_source;
1581 for (i = 0, dg = defbase->first(); dg; i++, dg = dg->next) {
1583 tmp_item.identifier = tmp_item.name = dg->name;
1592 Object *ob_src = dtmd->ob_source;
1610 const int num_data = uv_map_names.size();
1614 for (
int i = 0; i < num_data; i++) {
1616 tmp_item.identifier = tmp_item.name = uv_map_names[i].c_str();
1624 Object *ob_src = dtmd->ob_source;
1628 "layers_vcol_vert_select_src") ?
1648 cdata = &mesh_eval->vert_data;
1651 cdata = &mesh_eval->corner_data;
1657 for (
int i = 0; i < 2; i++) {
1662 for (
int j = 0; j < num_data; j++) {
1663 tmp_item.value = idx++;
1708 for (i = 0, dg = defbase->first(); dg; i++, dg = dg->next) {
1710 tmp_item.identifier = tmp_item.name = dg->name;
1724 if (ob_dst && ob_dst->data) {
1725 Mesh *me_dst = id_cast<Mesh *>(ob_dst->data);
1727 const int num_data = uv_map_names.size();
1731 for (
int i = 0; i < num_data; i++) {
1733 tmp_item.identifier = tmp_item.name = uv_map_names[i].c_str();
1747 if (dtmd->layers_select_src[multilayer_index] >= 0) {
1750 if (ob_dst && ob_dst->data) {
1753 Mesh *me_dst = id_cast<Mesh *>(ob_dst->data);
1755 &me_dst->vert_data :
1756 &me_dst->corner_data;
1759 for (
int i = 0; i < 2; i++) {
1764 for (
int j = 0; j < num_data; j++) {
1765 tmp_item.value = idx++;
1789 bool support_advanced_mixing, support_threshold;
1798 dtmd->data_types, &support_advanced_mixing, &support_threshold);
1800 if (support_threshold) {
1807 if (support_advanced_mixing) {
1821static void rna_CorrectiveSmoothModifier_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
1825 MEM_SAFE_DELETE(csmd->delta_cache.deltas);
1827 rna_Modifier_update(bmain, scene, ptr);
1830static void rna_CorrectiveSmoothModifier_rest_source_update(
Main *bmain,
1838 csmd->bind_coords_num = 0;
1841 rna_CorrectiveSmoothModifier_update(bmain, scene, ptr);
1844static bool rna_CorrectiveSmoothModifier_is_bind_get(
PointerRNA *ptr)
1847 return (csmd->bind_coords !=
nullptr);
1850static bool rna_SurfaceDeformModifier_is_bound_get(
PointerRNA *ptr)
1855static bool rna_ParticleInstanceModifier_particle_system_poll(
PointerRNA *ptr,
1866 return BLI_findindex(&psmd->ob->particlesystem, psys) != -1;
1883static void rna_ParticleInstanceModifier_particle_system_set(
PointerRNA *ptr,
1901static void rna_Modifier_show_expanded_set(
PointerRNA *ptr,
bool value)
1912static bool rna_Modifier_show_expanded_get(
PointerRNA *ptr)
1924 if (!ntree->geometry_node_asset_traits) {
1933static void rna_NodesModifier_node_group_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
1935 Object *
object = id_cast<Object *>(ptr->owner_id);
1937 rna_Modifier_dependency_update(bmain, scene, ptr);
1944 if (!nmd->node_group ||
ID_MISSING(nmd->node_group)) {
1945 return RNA_NodesModifierPropertiesEmpty;
1947 if (!nmd->node_group->runtime->geometry_nodes_srna_data) {
1948 return RNA_NodesModifierPropertiesEmpty;
1953static std::optional<std::string> rna_NodesModifierProperties_path(
const PointerRNA *ptr)
1956 return fmt::format(
"modifiers[\"{}\"].properties",
BLI_str_escape(nmd->modifier.name));
1968 if (!nmd->node_group) {
1977 if (!nmd.runtime->eval_log) {
1982 return &nmd.runtime->eval_log->get_tree_log(modifier_context.hash());
1988 if (
auto *
log = get_nodes_modifier_log(
object, nmd)) {
1989 log->ensure_node_warnings(nmd);
1990 return log->all_warnings;
1998 Object &
object = id_cast<Object &>(*iter->parent.owner_id);
2000 iter->internal.count.item = 0;
2001 iter->valid = !get_node_modifier_warnings(
object, *nmd).is_empty();
2006 Object &
object = id_cast<Object &>(*iter->parent.owner_id);
2008 iter->internal.count.item++;
2009 iter->valid = get_node_modifier_warnings(
object, *nmd).size() > iter->internal.count.item;
2014 Object &
object = id_cast<Object &>(*iter->parent.owner_id);
2016 Span warnings = get_node_modifier_warnings(
object, *nmd);
2018 iter->parent, RNA_NodesModifierWarning, (
void *)&warnings[iter->internal.count.item]);
2021static int rna_NodesModifier_node_warnings_length(
PointerRNA *ptr)
2023 Object &
object = id_cast<Object &>(*ptr->owner_id);
2025 return get_node_modifier_warnings(
object, *nmd).size();
2028static void rna_NodesModifierWarning_message_get(
PointerRNA *ptr,
char *r_value)
2031 strcpy(r_value, warning->message.c_str());
2034static int rna_NodesModifierWarning_message_length(
PointerRNA *ptr)
2037 return warning->
message.size();
2040static int rna_NodesModifierWarning_type_get(
PointerRNA *ptr)
2043 return int(warning->type);
2046static bool rna_NodesModifier_is_input_visible(
PointerRNA nmd_ptr,
2048 const char *identifier)
2050 const Object &
object = *id_cast<Object *>(nmd_ptr.owner_id);
2053 if (ntree ==
nullptr) {
2057 nmd->
runtime->usage_cache.ensure(
object, *nmd);
2058 const auto &input_usages = nmd->runtime->usage_cache.inputs;
2060 const int index = ntree->interface_input_index_by_identifier(identifier);
2062 return input_usages[
index].is_visible;
2069static bool rna_NodesModifier_is_input_used(
PointerRNA nmd_ptr,
2071 const char *identifier)
2073 const Object &
object = *id_cast<Object *>(nmd_ptr.owner_id);
2076 if (ntree ==
nullptr) {
2080 nmd->
runtime->usage_cache.ensure(
object, *nmd);
2081 const auto &input_usages = nmd->runtime->usage_cache.inputs;
2083 const int index = ntree->interface_input_index_by_identifier(identifier);
2085 return input_usages[
index].is_used;
2092static void rna_Lineart_start_level_set(
PointerRNA *ptr,
int value)
2096 value = std::clamp(value, 0, 128);
2097 lmd->level_start = value;
2098 lmd->level_end = std::max(value,
int(lmd->level_end));
2101static void rna_Lineart_end_level_set(
PointerRNA *ptr,
int value)
2105 value = std::clamp(value, 0, 128);
2106 lmd->level_end = value;
2107 lmd->level_start = std::min(value,
int(lmd->level_start));
2128 const Object *ob =
reinterpret_cast<Object *
>(ptr->owner_id);
2131 if (!nmd->node_group) {
2135 const bNode *
node = nmd->node_group->find_nested_node(
bake->id, &tree);
2141 const_cast<ID *
>(&tree->id), RNA_Node,
const_cast<bNode *
>(
node));
2151 const bool do_create = rnadiff_ctx.liboverride !=
nullptr &&
2153 rnadiff_ctx.rna_path !=
nullptr;
2155 if (rnadiff_ctx.comparison && !do_create) {
2165 if (nmd_a->bakes_num != nmd_b->bakes_num) {
2173 if (nmd_bake_a->id != nmd_bake_b->id) {
2182 if (!nmd_bake_a->packed && !nmd_bake_b->packed) {
2188 if (nmd_bake_a->packed && nmd_bake_b->packed) {
2194 ((nmd_bake_a->packed->meta_files_num != nmd_bake_b->packed->meta_files_num) ||
2195 (nmd_bake_a->packed->blob_files_num != nmd_bake_b->packed->blob_files_num));
2196 if (!is_different) {
2197 for (
int i :
IndexRange(nmd_bake_a->packed->meta_files_num)) {
2198 if ((
StringRefNull(nmd_bake_a->packed->meta_files[i].name) !=
2200 (nmd_bake_a->packed->meta_files[i].data() !=
2201 nmd_bake_b->packed->meta_files[i].data()))
2203 is_different =
true;
2208 if (!is_different) {
2209 for (
int i :
IndexRange(nmd_bake_a->packed->blob_files_num)) {
2210 if ((
StringRefNull(nmd_bake_a->packed->blob_files[i].name) !=
2212 (nmd_bake_a->packed->blob_files[i].data() !=
2213 nmd_bake_b->packed->blob_files[i].data()))
2215 is_different =
true;
2220 if (!is_different) {
2226 rnadiff_ctx.comparison = 1;
2237 bool created =
false;
2239 rnadiff_ctx.liboverride, rnadiff_ctx.rna_path, &created);
2244 if (created || op->rna_prop_type == 0) {
2251 op,
LIBOVERRIDE_OP_CUSTOM,
nullptr,
nullptr, {}, {}, i, i,
true,
nullptr, &created);
2257 const bNode *
node = nmd_a->node_group->find_nested_node(nmd_bake_a->id, &owner_ntree);
2258 owner_ntree = owner_ntree ? owner_ntree : nmd_a->node_group;
2264 fmt::format(
"{}::{}::{}",
2265 owner_ntree->id.lib ?
BKE_id_name(owner_ntree->id.lib->id) :
"LOCAL",
2276bool rna_NodesModifierBake_override_apply(
Main *bmain,
2291 "Unsupported RNA override operation on Nodes modifier bakes collection");
2301 if (!nmd_bake_dst) {
2304 BLI_assert(nmd_bake_dst->id == nmd_bake_src->id);
2306 if (nmd_bake_dst->packed) {
2308 nmd_bake_dst->packed =
nullptr;
2311 if (nmd_dst->runtime) {
2312 nmd_dst->runtime->cache->reset_cache(nmd_bake_dst->id);
2316 rna_NodesModifier_bake_update(bmain,
nullptr, ptr_dst);
2326static std::optional<std::string> rna_NodesModifierBake_path(
const PointerRNA *ptr)
2329 ptr, RNA_NodesModifier);
2331 return std::nullopt;
2339 if (!bakes.contains_ptr(nmd_bake)) {
2340 return std::nullopt;
2342 const int64_t idx = nmd_bake - bakes.begin();
2344 return fmt::format(
"modifiers[\"{}\"].bakes[{}]",
BLI_str_escape(md->name), idx);
2349 Object *ob =
reinterpret_cast<Object *
>(ptr->owner_id);
2356static void rna_GreasePencilModifier_material_set(
PointerRNA *ptr,
2361 Object *ob =
reinterpret_cast<Object *
>(ptr->owner_id);
2377 "Cannot assign material '%s', it has to be used by the Grease Pencil object already",
2382# define RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(_type) \
2383 static void rna_##_type##Modifier_material_filter_set( \
2384 PointerRNA *ptr, PointerRNA value, ReportList *reports) \
2386 _type##ModifierData *tmd = static_cast<_type##ModifierData *>(ptr->data); \
2387 rna_GreasePencilModifier_material_set(ptr, value, reports, &tmd->influence.material); \
2390# define RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(_type) \
2391 static void rna_##_type##Modifier_vertex_group_name_set(PointerRNA *ptr, const char *value) \
2393 _type##ModifierData *tmd = static_cast<_type##ModifierData *>(ptr->data); \
2394 rna_object_vgroup_name_set(ptr, \
2396 tmd->influence.vertex_group_name, \
2397 sizeof(tmd->influence.vertex_group_name)); \
2400RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilColor);
2401RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilMirror);
2402RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilOffset);
2403RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilOpacity);
2404RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilSubdiv);
2405RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilTint);
2406RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilSmooth);
2407RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilNoise);
2408RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilThick);
2409RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilLattice);
2410RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilDash);
2411RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilMulti);
2412RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilLength);
2413RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilWeightAngle);
2414RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilArray);
2415RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilWeightProximity);
2416RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilHook);
2417RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilSimplify);
2418RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilEnvelope);
2419RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilOutline);
2420RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilShrinkwrap);
2421RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilBuild);
2422RNA_MOD_GREASE_PENCIL_MATERIAL_FILTER_SET(GreasePencilTexture);
2424RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilOffset);
2425RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilOpacity);
2426RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilTint);
2427RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilSmooth);
2428RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilNoise);
2429RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilThick);
2430RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilLattice);
2431RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilWeightAngle);
2432RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilWeightProximity);
2433RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilHook);
2434RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilArmature);
2435RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilSimplify);
2436RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilEnvelope);
2437RNA_MOD_GREASE_PENCIL_VERTEX_GROUP_SET(GreasePencilShrinkwrap);
2439static void rna_GreasePencilLineartModifier_material_set(
PointerRNA *ptr,
2445 Material **ma_target = &lmd->target_material;
2447 rna_GreasePencilModifier_material_set(ptr, value, reports, ma_target);
2450static void rna_GreasePencilOpacityModifier_opacity_factor_range(
2461static void rna_GreasePencilOpacityModifier_opacity_factor_max_set(
PointerRNA *ptr,
float value)
2466 std::min(value, 1.0f) :
2476 if (dmd->segments().contains_ptr(&dash_segment)) {
2484static std::optional<std::string> rna_GreasePencilDashModifierSegment_path(
const PointerRNA *ptr)
2487 const Object *ob =
reinterpret_cast<Object *
>(ptr->owner_id);
2490 *ob, *dash_segment);
2493 char name_esc[
sizeof(dmd->modifier.name) * 2];
2496 char ds_name_esc[
sizeof(dash_segment->name) * 2];
2497 BLI_str_escape(ds_name_esc, dash_segment->name,
sizeof(ds_name_esc));
2499 return fmt::format(
"modifiers[\"{}\"].segments[\"{}\"]", name_esc, ds_name_esc);
2502static void rna_GreasePencilDashModifierSegment_name_set(
PointerRNA *ptr,
const char *value)
2504 const Object *ob =
reinterpret_cast<Object *
>(ptr->owner_id);
2507 *ob, *dash_segment);
2510 const std::string oldname = dash_segment->name;
2513 [dmd, dash_segment](
const StringRef name) {
2515 if (&ds != dash_segment && ds.name == name) {
2522 dash_segment->name);
2525 char name_esc[
sizeof(dmd->modifier.name) * 2];
2527 char rna_path_prefix[36 +
sizeof(name_esc) + 1];
2528 SNPRINTF_UTF8(rna_path_prefix,
"modifiers[\"%s\"].segments", name_esc);
2543 dmd->segments_array,
2585 if (tmd->segments().contains_ptr(&time_segment)) {
2593static std::optional<std::string> rna_GreasePencilTimeModifierSegment_path(
const PointerRNA *ptr)
2596 const Object *ob =
reinterpret_cast<Object *
>(ptr->owner_id);
2602 char name_esc[
sizeof(tmd->modifier.name) * 2];
2605 char ds_name_esc[
sizeof(
segment->name) * 2];
2608 return fmt::format(
"modifiers[\"{}\"].segments[\"{}\"]", name_esc, ds_name_esc);
2611static void rna_GreasePencilTimeModifierSegment_name_set(
PointerRNA *ptr,
const char *value)
2613 const Object *ob =
reinterpret_cast<Object *
>(ptr->owner_id);
2619 const std::string oldname =
segment->name;
2624 if (&ds != segment && ds.name == name) {
2634 char name_esc[
sizeof(tmd->modifier.name) * 2];
2636 char rna_path_prefix[36 +
sizeof(name_esc) + 1];
2637 SNPRINTF_UTF8(rna_path_prefix,
"modifiers[\"%s\"].segments", name_esc);
2652 tmd->segments_array,
2659static void rna_GreasePencilTimeModifier_start_frame_set(
PointerRNA *ptr,
int value)
2665 if (tmd->sfra >= tmd->efra) {
2666 tmd->efra = std::min(tmd->sfra,
MAXFRAME);
2670static void rna_GreasePencilTimeModifier_end_frame_set(
PointerRNA *ptr,
int value)
2676 if (tmd->sfra >= tmd->efra) {
2677 tmd->sfra = std::max(tmd->efra,
MINFRAME);
2681static void rna_GreasePencilOutlineModifier_outline_material_set(
PointerRNA *ptr,
2686 rna_GreasePencilModifier_material_set(ptr, value, reports, &omd->outline_material);
2689static int rna_GreasePencilShrinkwrapModifier_face_cull_get(
PointerRNA *ptr)
2696static void rna_GreasePencilShrinkwrapModifier_face_cull_set(
PointerRNA *ptr,
int value)
2700 smd->
shrink_opts = (smd->shrink_opts & ~MOD_SHRINKWRAP_CULL_TARGET_MASK) | value;
2718 prop,
nullptr,
"modifier.layout_panel_open_flag", (
int64_t(1) <<
id));
2738 prop,
"Quality",
"Accuracy of vertex positions, lower value is faster but less precise");
2757 "Create a smooth curved surface using the Catmull-Clark subdivision scheme"},
2759 {0,
nullptr, 0,
nullptr,
nullptr},
2767 "Subdivide polygons to reach a specified pixel size on screen"},
2772 "Subdivide to reach a specified edge length in object space. This is required to use "
2773 "adaptive subdivision for instanced meshes"},
2774 {0,
nullptr, 0,
nullptr,
nullptr},
2808 prop,
"Render Levels",
"Number of subdivisions to perform when rendering");
2818 prop,
"Use Creases",
"Use mesh crease information to sharpen edges or corners");
2824 prop,
"Use Custom Normals",
"Interpolates existing custom normals to resulting mesh");
2831 "Use Limit Surface",
2832 "Place vertices at the surface that would be produced with infinite "
2833 "levels of subdivision (smoothest possible shape)");
2840 prop,
"Use Adaptive Subdivision",
"Adaptively subdivide mesh based on camera distance");
2850 prop,
"Pixel Size",
"Target polygon pixel size for adaptive subdivision");
2857 prop,
"Edge Length",
"Target object space edge length for adaptive subdivision");
2875 "Use the local coordinate system for the texture coordinates"},
2880 "Use the global coordinate system for the texture coordinates"},
2885 "Use the linked object's local coordinate system for the texture coordinates"},
2886 {
MOD_DISP_MAP_UV,
"UV", 0,
"UV",
"Use UV coordinates for the texture coordinates"},
2887 {0,
nullptr, 0,
nullptr,
nullptr},
2909 prop,
nullptr,
nullptr,
"rna_MappingInfoModifier_uvlayer_name_set");
2915 prop,
"Texture Coordinate Object",
"Object to set the texture coordinates");
3039 prop,
"Total Levels",
"Number of subdivisions for which displacements are stored");
3045 prop,
"External",
"Store multires displacements outside the .blend file, to save memory");
3049 "rna_MultiresModifier_filepath_get",
3050 "rna_MultiresModifier_filepath_length",
3051 "rna_MultiresModifier_filepath_set");
3059 prop,
"Optimal Display",
"Skip drawing/rendering of interior subdivided edges");
3065 prop,
"Use Creases",
"Use mesh crease information to sharpen edges or corners");
3071 prop,
"Use Custom Normals",
"Interpolates existing custom normals to resulting mesh");
3078 "Make Sculpt Mode tools deform the base mesh while previewing the "
3079 "displacement of higher subdivision levels");
3100 prop,
nullptr,
"rna_LatticeModifier_object_set",
nullptr,
"rna_Lattice_object_poll");
3109 "Name of Vertex Group which determines influence of modifier per point");
3139 {0,
nullptr, 0,
nullptr,
nullptr},
3152 prop,
nullptr,
"rna_CurveModifier_object_set",
nullptr,
"rna_Curve_object_poll");
3161 "Name of Vertex Group which determines influence of modifier per point");
3251 prop,
"Clip",
"Prevent vertices from going through the mirror during transform");
3267 prop,
"Mirror U",
"Mirror the U texture coordinate around the flip offset point");
3273 prop,
"Mirror V",
"Mirror the V texture coordinate around the flip offset point");
3279 prop,
"Mirror UDIM",
"Mirror the texture coordinate around each tile center");
3289 "Amount to offset mirrored UVs flipping point from the 0.5 on the U axis");
3299 "Amount to offset mirrored UVs flipping point from the 0.5 point on the V axis");
3321 prop,
"Merge Distance",
"Distance within which mirrored vertices are merged");
3329 prop,
"Bisect Distance",
"Distance from the bisect plane within which vertices are removed");
3350 "Dissolve geometry to form planar polygons"},
3351 {0,
nullptr, 0,
nullptr,
nullptr},
3387 prop,
"Iterations",
"Number of times reduce the geometry (unsubdivide only)");
3413 prop,
"Triangulate",
"Keep triangulated faces resulting from decimation (collapse only)");
3439 prop,
"All Boundaries",
"Dissolve all vertices in between face boundaries (planar only)");
3454 prop,
"Face Count",
"The current number of faces in the decimated mesh");
3512 "Either the starting frame (for positive speed) or ending frame (for negative speed)");
3519 prop,
"Lifetime",
"Lifetime of the wave in frames, zero means infinite");
3526 prop,
"Damping Time",
"Number of frames in which the wave damps out after it dies");
3571 prop,
"Speed",
"Speed of the wave, towards the starting point when negative");
3593 "Distance between the top and the base of a wave, the higher the value, "
3594 "the more narrow the wave");
3617 prop,
nullptr,
"rna_ArmatureModifier_object_set",
nullptr,
"rna_Armature_object_poll");
3636 prop,
"Preserve Volume",
"Deform rotation interpolation with quaternions");
3644 "Use same input as previous modifier, and mix results using overall vgroup");
3652 "Name of Vertex Group which determines influence of modifier per point");
3673 srna,
"Hook Modifier",
"Hook modifier to modify the location of vertices");
3697 prop,
"Radius",
"If not zero, the distance from the hook where influence ends");
3708 prop,
"Hook Center",
"Center of the hook, used for falloff and display");
3715 prop,
"Matrix",
"Reverse the transformation between this object and its target");
3720 prop,
"Object",
"Parent Object for hook, also recalculates and clears offset");
3723 prop,
nullptr,
nullptr,
"rna_HookModifier_object_override_apply");
3732 "Name of Parent Bone for hook (if applicable), also recalculates and clears offset");
3746 "Name of Vertex Group which determines influence of modifier per point");
3758 "Indices of vertices bound to the modifier. For Bézier curves, "
3759 "handles count as additional vertices.");
3761 func =
RNA_def_function(srna,
"vertex_indices_set",
"rna_HookModifier_vertex_indices_set");
3763 func,
"Validates and assigns the array of vertex indices bound to the modifier");
3766 func,
"indices", 1,
nullptr, INT_MIN,
INT_MAX,
"",
"Vertex Indices", 0,
INT_MAX);
3792 prop,
"rna_SoftBodyModifier_settings_get",
nullptr,
nullptr,
nullptr);
3799 prop,
"rna_SoftBodyModifier_point_cache_get",
nullptr,
nullptr,
nullptr);
3813 "Use a mesh object as the operand for the Boolean operation"},
3818 "Use a collection of mesh objects as the operand for the Boolean operation"},
3819 {0,
nullptr, 0,
nullptr,
nullptr},
3827 "Keep the part of the mesh that is common between all operands"},
3833 "Combine meshes in a subtractive way"},
3834 {0,
nullptr, 0,
nullptr,
nullptr},
3842 "Simple solver with good performance, without support for overlapping geometry"},
3847 "Slower solver with the best results for coplanar faces"},
3852 "Fastest solver that works only on manifold meshes but gives better results"},
3853 {0,
nullptr, 0,
nullptr,
nullptr},
3861 "Set the material on new faces based on the order of the material slot lists. If a "
3862 "material does not exist on the modifier object, the face will use the same material slot "
3863 "or the first if the object does not have enough slots."},
3868 "Transfer materials from non-empty slots to the result mesh, adding new materials as "
3869 "necessary. For empty slots, fall back to using the same material index as the operand "
3871 {0,
nullptr, 0,
nullptr,
nullptr},
3884 prop,
nullptr,
"rna_BooleanModifier_object_set",
nullptr,
"rna_Mesh_object_poll");
3893 prop,
"Collection",
"Use mesh objects in this collection for Boolean operation");
3914 prop,
"Overlap Threshold",
"Threshold for checking overlapping geometry");
3946 "NO_CONNECT_REGIONS",
3948 "No Connect Regions",
3950 {0,
nullptr, 0,
nullptr,
nullptr},
3973 "Duplicate the object a certain number of times"},
3978 "Duplicate the object as many times as fits in a certain length"},
3979 {
MOD_ARR_FITCURVE,
"FIT_CURVE", 0,
"Fit Curve",
"Fit the duplicated objects to a curve"},
3980 {0,
nullptr, 0,
nullptr,
nullptr},
4013 prop,
nullptr,
"rna_ArrayModifier_curve_ob_set",
nullptr,
"rna_Curve_object_poll");
4026 prop,
"Constant Offset Displacement",
"Value for the distance between arrayed items");
4033 prop,
"Relative Offset",
"Add an offset relative to the object's bounding box");
4041 "Relative Offset Displacement",
4042 "The size of the geometry will determine the distance between arrayed items");
4054 prop,
"Merge End Vertices",
"Merge vertices in first and last duplicates");
4068 prop,
"Object Offset",
"Add another object's transformation to the total offset");
4076 "Use the location and rotation of another object to determine the distance and "
4077 "rotational change between arrayed items");
4085 prop,
nullptr,
"rna_ArrayModifier_start_cap_set",
nullptr,
"rna_Mesh_object_poll");
4092 prop,
nullptr,
"rna_ArrayModifier_end_cap_set",
nullptr,
"rna_Mesh_object_poll");
4120 srna,
"EdgeSplit Modifier",
"Edge splitting modifier to create sharp edges");
4155 "Use the texture's intensity value to displace in the X direction"},
4160 "Use the texture's intensity value to displace in the Y direction"},
4165 "Use the texture's intensity value to displace in the Z direction"},
4170 "Use the texture's intensity value to displace along the vertex normal"},
4175 "Use the texture's intensity value to displace along the (averaged) custom normal (falls "
4181 "Use the texture's RGB values to displace the mesh in the XYZ direction"},
4182 {0,
nullptr, 0,
nullptr,
nullptr},
4188 {0,
nullptr, 0,
nullptr,
nullptr},
4203 "Name of Vertex Group which determines influence of modifier per point");
4248 srna,
"UV Project Modifier",
"UV projection modifier to set UVs from a projector");
4270 "rna_UVProject_projectors_begin",
4271 "rna_iterator_array_next",
4272 "rna_iterator_array_end",
4273 "rna_iterator_array_get",
4286 prop,
"Aspect X",
"Horizontal aspect ratio (only used for camera projectors)");
4295 prop,
"Aspect Y",
"Vertical aspect ratio (only used for camera projectors)");
4320 prop,
"rna_UVProjector_object_get",
"rna_UVProjector_object_set",
nullptr,
nullptr);
4373 "Name of Vertex Group which determines influence of modifier per point");
4395 "Use the average of adjacent edge-vertices"},
4400 "Use the average of adjacent edge-vertices weighted by their length"},
4401 {0,
nullptr, 0,
nullptr,
nullptr},
4409 "Use base mesh vertex coordinates as the rest position"},
4414 "Use bind vertex coordinates for rest position"},
4415 {0,
nullptr, 0,
nullptr,
nullptr},
4418 srna =
RNA_def_struct(brna,
"CorrectiveSmoothModifier",
"Modifier");
4420 srna,
"Corrective Smooth Modifier",
"Correct distortion caused by deformation");
4468 "Name of Vertex Group which determines influence of modifier per point");
4470 prop,
nullptr,
nullptr,
"rna_CorrectiveSmoothModifier_defgrp_name_set");
4482 prop,
"Only Smooth",
"Apply smoothing without reconstructing the surface");
4488 prop,
"Pin Boundaries",
"Excludes boundary vertices from being smoothed");
4499 srna =
RNA_def_struct(brna,
"LaplacianSmoothModifier",
"Modifier");
4556 "Name of Vertex Group which determines influence of modifier per point");
4558 prop,
nullptr,
nullptr,
"rna_LaplacianSmoothModifier_defgrp_name_set");
4578 {0,
nullptr, 0,
nullptr,
nullptr},
4598 "Control object: if available, its location determines the center of the effect");
4626 prop,
"Size from Radius",
"Use radius as size of projection shape (0 = auto)");
4632 prop,
"Use Transform",
"Use object transform to control projection shape");
4648 "Only deform vertices within this distance from the center of the effect "
4649 "(leave as 0 for infinite.)");
4673 {0,
"VOLUME", 0,
"Volume",
"Bind to volume inside cage mesh"},
4674 {1,
"SURFACE", 0,
"Surface",
"Bind to surface of cage mesh"},
4675 {0,
nullptr, 0,
nullptr,
nullptr},
4681 srna,
"MeshDeform Modifier",
"Mesh deformation modifier to deform with other meshes");
4690 prop,
nullptr,
"rna_MeshDeformModifier_object_set",
nullptr,
"rna_Mesh_object_poll");
4720 "Recompute binding dynamically on top of other deformers "
4721 "(slower and more memory consuming)");
4739 srna =
RNA_def_struct(brna,
"ParticleSystemModifier",
"Modifier");
4764 "Use offset from the particle object in the instance object"},
4769 "Use world space offset in the instance object"},
4770 {0,
nullptr, 0,
nullptr,
nullptr},
4773 srna =
RNA_def_struct(brna,
"ParticleInstanceModifier",
"Modifier");
4796 "rna_ParticleInstanceModifier_particle_system_get",
4797 "rna_ParticleInstanceModifier_particle_system_set",
4799 "rna_ParticleInstanceModifier_particle_system_poll");
4890 "Relative offset of particles to use for instancing, to avoid overlap "
4891 "of multiple instances");
4902 prop,
"Value Layer Name",
"Custom data layer name for the randomized value");
4915 srna,
"Explode Modifier",
"Explosion effect modifier based on a particle system");
4923 "rna_ExplodeModifier_vgroup_get",
4924 "rna_ExplodeModifier_vgroup_length",
4925 "rna_ExplodeModifier_vgroup_set");
5027 {0,
"NONE", 0,
"None",
""},
5034 "Deflect fluids and influence the fluid flow"},
5035 {0,
nullptr, 0,
nullptr,
nullptr},
5104 "Collision Modifier",
5105 "Collision modifier defining modifier stack position used for collision");
5115 prop,
"rna_CollisionModifier_settings_get",
nullptr,
nullptr,
nullptr);
5127 {0,
"NONE", 0,
"None",
"Bevel the entire mesh by a constant amount"},
5132 "Only bevel edges with sharp enough angles between faces"},
5137 "Use bevel weights to determine how much bevel is applied in edge mode"},
5142 "Use vertex group weights to select whether vertex or edge is beveled"},
5143 {0,
nullptr, 0,
nullptr,
nullptr},
5153 "Amount is perpendicular distance from original edge to bevel face"},
5158 "Amount is percent of adjacent edge length"},
5163 "Amount is absolute distance along adjacent edge"},
5164 {0,
nullptr, 0,
nullptr,
nullptr},
5172 "The profile can be a concave or convex curve"},
5177 "The profile can be any arbitrary path between its endpoints"},
5178 {0,
nullptr, 0,
nullptr,
nullptr},
5188 "Set face strength on new and affected faces only"},
5190 {0,
nullptr, 0,
nullptr,
nullptr},
5197 {0,
nullptr, 0,
nullptr,
nullptr},
5203 {0,
nullptr, 0,
nullptr,
nullptr},
5212 "A cut-off at the end of each profile before the intersection"},
5213 {0,
nullptr, 0,
nullptr,
nullptr},
5219 {0,
nullptr, 0,
nullptr,
nullptr},
5224 srna,
"Bevel Modifier",
"Bevel modifier to make edges and vertices more rounded");
5310 prop,
"Profile Type",
"The type of shape used to rebuild a beveled section");
5323 prop,
"Material Index",
"Material index of generated faces, -1 for automatic");
5350 prop,
"Face Strength",
"Whether to set face strength, and which faces to set it on");
5382 prop,
"Vertex Mesh Method",
"The method to use to create the mesh at intersections");
5395 "Shrinkwrap Modifier",
5396 "Shrink wrapping modifier to shrink wrap and object to a target");
5412 prop,
"Snap Mode",
"Select how vertices are constrained to the target surface");
5419 "rna_ShrinkwrapModifier_face_cull_get",
5420 "rna_ShrinkwrapModifier_face_cull_set",
5425 "Stop vertices from projecting to a face on the target when facing towards/away");
5431 prop,
nullptr,
"rna_ShrinkwrapModifier_target_set",
nullptr,
"rna_Mesh_object_poll");
5439 prop,
nullptr,
"rna_ShrinkwrapModifier_auxTarget_set",
nullptr,
"rna_Mesh_object_poll");
5461 prop,
"Project Limit",
"Limit the distance used for projection (zero disables)");
5485 "Subdivision Levels",
5486 "Number of subdivisions that must be performed before extracting vertices' "
5487 "positions and normals");
5493 prop,
"Negative",
"Allow vertices to move in the negative direction of axis");
5499 prop,
"Positive",
"Allow vertices to move in the positive direction of axis");
5505 prop,
"Invert Cull",
"When projecting in the negative direction invert the face cull mode");
5524 {0,
nullptr, 0,
nullptr,
nullptr},
5543 prop,
nullptr,
"rna_MaskModifier_ob_arm_set",
nullptr,
"rna_Armature_object_poll");
5561 prop,
"Smooth",
"Use vertex group weights to cut faces at the weight contour");
5584 "Rotate around the Z axis of the modifier space"},
5589 "Bend the mesh over the Z axis of the modifier space"},
5594 "Linearly scale along Z axis of the modifier space"},
5599 "Stretch the object along the Z axis of the modifier space"},
5600 {0,
nullptr, 0,
nullptr,
nullptr},
5606 "SimpleDeform Modifier",
5607 "Simple deformation modifier to apply effects such as twisting and bending");
5624 prop,
nullptr,
nullptr,
"rna_SimpleDeformModifier_vgroup_name_set");
5689 "Surface modifier defining modifier stack position used for surface fields");
5701 "Output a solidified version of a mesh by simple extrusion"},
5706 "Output a manifold mesh even if the base mesh is non-manifold, "
5707 "where edges have 3 or more connecting faces. "
5708 "This method is slower."},
5709 {0,
nullptr, 0,
nullptr,
nullptr},
5717 "Most basic thickness calculation"},
5722 "Even thickness calculation which takes the angle between faces into account"},
5727 "Thickness calculation using constraints, most advanced"},
5728 {0,
nullptr, 0,
nullptr,
nullptr},
5737 "Round open perimeter shape"},
5742 "Flat open perimeter shape"},
5743 {0,
nullptr, 0,
nullptr,
nullptr},
5751 srna,
"Solidify Modifier",
"Create a solid skin, compensating for sharp angles");
5787 prop,
"Vertex Group Factor",
"Thickness factor to use for zero vertex group influence");
5828 prop,
"Rim Material Offset",
"Offset material index of generated rim faces");
5840 "Shell Vertex Group",
5841 "Vertex group that the generated shell geometry will be weighted to");
5843 prop,
nullptr,
nullptr,
"rna_SolidifyModifier_shell_defgrp_name_set");
5850 "Vertex group that the generated rim geometry will be weighted to");
5852 prop,
nullptr,
nullptr,
"rna_SolidifyModifier_rim_defgrp_name_set");
5859 "Create edge loops between the inner and outer surfaces on face edges "
5860 "(slow, disable when not needed)");
5868 "Maintain thickness by adjusting for sharp corners (slow, disable when not needed)");
5875 "High Quality Normals",
5876 "Calculate normals which result in more even thickness (slow, disable when not needed)");
5888 "Make faces use the minimal vertex weight assigned to their vertices "
5889 "(ensures new faces remain parallel to their original ones, slow, "
5890 "disable when not needed)");
5921 prop,
"Merge Threshold",
"Distance within which degenerated geometry is merged");
6002 prop,
"Calculate Order",
"Calculate the order of edges (needed for meshes, but not curves)");
6008 prop,
"Object Screw",
"Use the distance between the objects to make a screw");
6015 prop,
"Merge Vertices",
"Merge adjacent vertices (screw offset must be zero)");
6021 prop,
"Smooth Shading",
"Output faces with smooth shading rather than flat shaded");
6027 prop,
"Stretch U",
"Stretch the U coordinates between 0 and 1 when UVs are present");
6033 prop,
"Stretch V",
"Stretch the V coordinates between 0 and 1 when UVs are present");
6040 prop,
"Object Angle",
"Use the angle between the objects rather than the fixed angle");
6135 const char *mask_flags,
6136 const int invert_vgroup_mask_flag,
6137 const char *mask_vgroup_setter,
6138 const char *mask_uvlayer_setter)
6147 "Use local generated coordinates of another object"},
6149 {0,
nullptr, 0,
nullptr,
nullptr},
6161 {0,
nullptr, 0,
nullptr,
nullptr},
6172 prop,
"Influence",
"Global influence of current modifications on vgroup");
6200 "Texture Coordinates",
6201 "Which texture coordinates "
6202 "to use for mapping");
6214 "Texture Coordinate Object",
6215 "Which object to take texture "
6216 "coordinates from");
6223 prop,
"Texture Coordinate Bone",
"Which bone to take texture coordinates from");
6243 "Map all values below 0.5 to 0.0, and all others to 1.0"},
6244 {0,
nullptr, 0,
nullptr,
nullptr},
6250 srna =
RNA_def_struct(brna,
"VertexWeightEditModifier",
"Modifier");
6252 srna,
"WeightVG Edit Modifier",
"Edit the weights of vertices in a group");
6262 prop,
nullptr,
nullptr,
"rna_WeightVGEditModifier_defgrp_name_set");
6281 "Normalize Weights",
6282 "Normalize the resulting weights (otherwise they are only clamped within 0.0 to 1.0 range)");
6294 "Add vertices with weight over threshold "
6302 "Remove vertices with weight below threshold "
6311 "Default weight a vertex will have if "
6312 "it is not in the vgroup");
6321 "Lower (inclusive) bound for a vertex's weight "
6322 "to be added to the vgroup");
6331 "Upper (inclusive) bound for a vertex's weight "
6332 "to be removed from the vgroup");
6342 "rna_WeightVGEditModifier_mask_defgrp_name_set",
6343 "rna_WeightVGEditModifier_mask_tex_uvlayer_name_set");
6349 {
MOD_WVG_MIX_SET,
"SET", 0,
"Replace",
"Replace VGroup A's weights by VGroup B's ones"},
6350 {
MOD_WVG_MIX_ADD,
"ADD", 0,
"Add",
"Add VGroup B's weights to VGroup A's ones"},
6351 {
MOD_WVG_MIX_SUB,
"SUB", 0,
"Subtract",
"Subtract VGroup B's weights from VGroup A's ones"},
6352 {
MOD_WVG_MIX_MUL,
"MUL", 0,
"Multiply",
"Multiply VGroup A's weights by VGroup B's ones"},
6353 {
MOD_WVG_MIX_DIV,
"DIV", 0,
"Divide",
"Divide VGroup A's weights by VGroup B's ones"},
6358 "Difference between VGroup A's and VGroup B's weights"},
6359 {
MOD_WVG_MIX_AVG,
"AVG", 0,
"Average",
"Average value of VGroup A's and VGroup B's weights"},
6360 {
MOD_WVG_MIX_MIN,
"MIN", 0,
"Minimum",
"Minimum of VGroup A's and VGroup B's weights"},
6361 {
MOD_WVG_MIX_MAX,
"MAX", 0,
"Maximum",
"Maximum of VGroup A's and VGroup B's weights"},
6362 {0,
nullptr, 0,
nullptr,
nullptr},
6366 {
MOD_WVG_SET_ALL,
"ALL", 0,
"All",
"Affect all vertices (might add some to VGroup A)"},
6367 {
MOD_WVG_SET_A,
"A", 0,
"VGroup A",
"Affect vertices in VGroup A"},
6372 "Affect vertices in VGroup B (might add some to VGroup A)"},
6377 "Affect vertices in at least one of both VGroups (might add some to VGroup A)"},
6378 {
MOD_WVG_SET_AND,
"AND", 0,
"VGroup A and B",
"Affect vertices in both groups"},
6379 {0,
nullptr, 0,
nullptr,
nullptr},
6385 srna =
RNA_def_struct(brna,
"VertexWeightMixModifier",
"Modifier");
6396 prop,
nullptr,
nullptr,
"rna_WeightVGMixModifier_defgrp_name_a_set");
6403 prop,
nullptr,
nullptr,
"rna_WeightVGMixModifier_defgrp_name_b_set");
6421 "Default weight a vertex will have if "
6422 "it is not in the first A vgroup");
6430 "Default weight a vertex will have if "
6431 "it is not in the second B vgroup");
6438 "How weights from vgroup B affect weights "
6451 "Normalize Weights",
6452 "Normalize the resulting weights (otherwise they are only clamped within 0.0 to 1.0 range)");
6462 "rna_WeightVGMixModifier_mask_defgrp_name_set",
6463 "rna_WeightVGMixModifier_mask_tex_uvlayer_name_set");
6473 "Use distance between affected and target objects"},
6478 "Use distance between affected object's vertices and target "
6479 "object, or target object's geometry"},
6480 {0,
nullptr, 0,
nullptr,
nullptr},
6487 {0,
nullptr, 0,
nullptr,
nullptr},
6502 "Map all values below 0.5 to 0.0, and all others to 1.0"},
6503 {0,
nullptr, 0,
nullptr,
nullptr},
6509 srna =
RNA_def_struct(brna,
"VertexWeightProximityModifier",
"Modifier");
6511 "WeightVG Proximity Modifier",
6512 "Set the weights of vertices in a group from a target object's "
6523 prop,
nullptr,
nullptr,
"rna_WeightVGProximityModifier_defgrp_name_set");
6538 "Proximity Geometry",
6539 "Use the shortest computed distance to target object's geometry "
6579 "Normalize Weights",
6580 "Normalize the resulting weights (otherwise they are only clamped within 0.0 to 1.0 range)");
6595 "rna_WeightVGProximityModifier_mask_defgrp_name_set",
6596 "rna_WeightVGProximityModifier_mask_tex_uvlayer_name_set");
6602 {
MOD_REMESH_CENTROID,
"BLOCKS", 0,
"Blocks",
"Output a blocky surface with no smoothing"},
6607 "Output a smooth surface with no sharp-features detection"},
6612 "Output a surface that reproduces sharp edges and corners from the input mesh"},
6617 "Output a mesh corresponding to the volume of the original mesh"},
6618 {0,
nullptr, 0,
nullptr,
nullptr},
6628 "Generate a new surface with regular topology that follows the shape of the input mesh");
6644 prop,
"Scale",
"The ratio of the largest dimension of the model over the size of the grid");
6653 "If removing disconnected pieces, minimum size of components to preserve as a ratio "
6654 "of the number of polygons in the largest component");
6662 prop,
"Octree Depth",
"Resolution of the octree; higher values give finer details");
6671 "Tolerance for outliers; lower values filter noise while higher values will reproduce "
6672 "edges closer to the input");
6684 "Size of the voxel in object space used for volume evaluation. Lower "
6685 "values preserve finer details.");
6694 "Reduces the final face count by simplifying geometry where detail is not needed, "
6695 "generating triangles. A value greater than 0 disables Fix Poles.");
6706 prop,
"Smooth Shading",
"Output faces with smooth shading rather than flat shaded");
6722 "Generate ocean surface geometry at the specified resolution"},
6727 "Displace existing geometry according to simulation"},
6733 "Leaves geometry unchanged, but still runs simulation (to be used from texture)"},
6735 {0,
nullptr, 0,
nullptr,
nullptr},
6743 "Use for turbulent seas with foam"},
6745 "PIERSON_MOSKOWITZ",
6747 "Established Ocean",
6748 "Use for a large area, established ocean (Pierson-Moskowitz method)"},
6752 "Established Ocean (Sharp Peaks)",
6753 "Use for established oceans ('JONSWAP', Pierson-Moskowitz method) with peak sharpening"},
6755 "TEXEL_MARSEN_ARSLOE",
6758 "Use for shallow water ('JONSWAP', 'TMA' - Texel-Marsen-Arsloe method)"},
6759 {0,
nullptr, 0,
nullptr,
nullptr},
6778 prop,
"Size",
"Surface scale factor (does not affect the height of the waves)");
6804 "Output normals for bump mapping - disabling can speed up performance if it's not needed");
6817 prop,
"Generate Spray Map",
"Generate map of spray direction as a vertex color channel");
6830 prop,
"Spray Map",
"Name of the vertex color layer used for the spray direction map");
6839 prop,
"Render Resolution",
"Resolution of the generated surface for rendering and baking");
6848 prop,
"Viewport Resolution",
"Viewport resolution of the generated surface");
6858 "Size of the simulation domain (in meters), and of the generated geometry (in BU)");
6871 prop,
"Damping",
"Damp reflected waves going in opposite direction to the wind");
6892 prop,
"Wave Direction",
"Main direction of the waves when they are (partially) aligned");
6916 prop,
"Foam Fade",
"How much foam accumulates over time (baked ocean only)");
6923 prop,
"Foam Layer Name",
"Name of the vertex color layer used for foam");
6931 "Choppiness of the wave's crest (adds some horizontal component to the displacement)");
6956 "This is the distance from a lee shore, "
6957 "called the fetch, or the distance over which the wind blows with constant velocity. "
6958 "Used by 'JONSWAP' and 'TMA' models.");
6990 prop,
"Ocean is Cached",
"Whether the ocean is using cached data or simulating");
7023 prop,
"Smooth Shading",
"Output faces with smooth shading rather than flat shaded");
7074 "Triangulate only polygons with vertex count greater than or equal to this number");
7082 "Try to preserve custom normals.\n"
7083 "Warning: Depending on chosen triangulation method, "
7084 "shading may not be fully preserved, \"Fixed\" method usually gives the best result here");
7095 {0,
nullptr, 0,
nullptr,
nullptr},
7103 "Replace vertex coordinates with cached values"},
7108 "Integrate deformation from this modifier's input with the mesh-cache coordinates "
7109 "(useful for shape keys)"},
7110 {0,
nullptr, 0,
nullptr,
nullptr},
7118 {0,
nullptr, 0,
nullptr,
nullptr},
7127 "Control playback using a frame-number "
7128 "(ignoring time FPS and start frame from the file)"},
7136 "Control playback using a value between 0 and 1"},
7137 {0,
nullptr, 0,
nullptr,
nullptr},
7143 {0,
nullptr, 0,
nullptr,
nullptr},
7202 "Name of the Vertex Group which determines the influence of the modifier per point");
7273 srna =
RNA_def_struct(brna,
"MeshSequenceCacheModifier",
"Modifier");
7291 "Path to the object in the Alembic archive used to lookup geometric data");
7300 {0,
nullptr, 0,
nullptr,
nullptr},
7313 prop,
"Vertex Interpolation",
"Allow interpolation of vertex positions");
7322 "Multiplier used to control the magnitude of the velocity vectors for time effects");
7333 srna =
RNA_def_struct(brna,
"LaplacianDeformModifier",
"Modifier");
7343 prop,
"Anchor Weights",
"Name of Vertex Group which determines Anchors");
7345 prop,
nullptr,
nullptr,
"rna_LaplacianDeformModifier_anchor_grp_name_set");
7376 {0,
nullptr, 0,
nullptr,
nullptr},
7401 prop,
"Vertex Group",
"Vertex group name for selecting the affected areas");
7413 prop,
"Only Loose Edges",
"Collapse edges without faces, cloth sewing edges");
7443 prop,
"Vertex Group Factor",
"Thickness factor to use for zero vertex group influence");
7476 prop,
"Offset Relative",
"Crease hub edges for improved subdivision surface");
7495 prop,
"Vertex Group",
"Vertex group name for selecting the affected areas");
7517 "Transfer active or all vertex groups"},
7523 "Transfer color attributes"},
7524 {0,
nullptr, 0,
nullptr,
nullptr},
7529 {
DT_TYPE_SEAM,
"SEAM", 0,
"UV Seam",
"Transfer UV seam mark"},
7530 {
DT_TYPE_CREASE,
"CREASE", 0,
"Crease",
"Transfer subdivision crease values"},
7533 {0,
nullptr, 0,
nullptr,
nullptr},
7537 {
DT_TYPE_LNOR,
"CUSTOM_NORMAL", 0,
"Custom Normals",
"Transfer custom normals"},
7542 "Transfer color attributes"},
7543 {
DT_TYPE_UV,
"UV", 0,
"UVs",
"Transfer UV layers"},
7544 {0,
nullptr, 0,
nullptr,
nullptr},
7553 "Transfer Freestyle face mark"},
7554 {0,
nullptr, 0,
nullptr,
nullptr},
7559 srna,
"Data Transfer Modifier",
"Modifier transferring some data from a source mesh");
7570 prop,
nullptr,
"rna_DataTransferModifier_ob_source_set",
nullptr,
"rna_Mesh_object_poll");
7574 "use_object_transform",
7577 "Evaluate source and destination meshes in global space");
7583 srna,
"use_vert_data",
false,
"Vertex Data",
"Enable vertex data transfer");
7587 prop =
RNA_def_boolean(srna,
"use_edge_data",
false,
"Edge Data",
"Enable edge data transfer");
7592 srna,
"use_loop_data",
false,
"Face Corner Data",
"Enable face corner data transfer");
7596 prop =
RNA_def_boolean(srna,
"use_poly_data",
false,
"Face Data",
"Enable face data transfer");
7603 DT_layer_vert_items,
7605 "Vertex Data Types",
7606 "Which vertex data layers to transfer");
7612 DT_layer_edge_items,
7615 "Which edge data layers to transfer");
7621 DT_layer_loop_items,
7623 "Face Corner Data Types",
7624 "Which face corner data layers to transfer");
7630 DT_layer_poly_items,
7633 "Which face data layers to transfer");
7643 "Method used to map source vertices to destination ones");
7652 "Method used to map source edges to destination ones");
7660 "Face Corner Mapping",
7661 "Method used to map source faces' corners to destination ones");
7670 "Method used to map source faces to destination ones");
7679 "Only Neighbor Geometry",
7680 "Source elements must be closer than given distance from destination one");
7691 "Maximum allowed distance between source and destination element, for non-topology mappings",
7705 "'Width' of rays (especially useful when raycasting against vertices or edges)",
7714 "islands_precision",
7718 "Islands Precision",
7719 "Factor controlling precision of islands handling "
7720 "(typically, 0.1 should be enough, higher values can make things really slow)",
7728 "layers_vgroup_select_src",
7731 "Source Layers Selection",
7732 "Which layers to transfer, in case of multi-layers types");
7735 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_src_itemf");
7739 "layers_vcol_vert_select_src",
7742 "Source Layers Selection",
7743 "Which layers to transfer, in case of multi-layers types");
7746 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_src_itemf");
7750 "layers_vcol_loop_select_src",
7753 "Source Layers Selection",
7754 "Which layers to transfer, in case of multi-layers types");
7757 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_src_itemf");
7761 "layers_uv_select_src",
7764 "Source Layers Selection",
7765 "Which layers to transfer, in case of multi-layers types");
7768 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_src_itemf");
7772 "layers_vgroup_select_dst",
7775 "Destination Layers Matching",
7776 "How to match source and destination layers");
7779 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_dst_itemf");
7783 "layers_vcol_vert_select_dst",
7786 "Destination Layers Matching",
7787 "How to match source and destination layers");
7790 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_dst_itemf");
7794 "layers_vcol_loop_select_dst",
7797 "Destination Layers Matching",
7798 "How to match source and destination layers");
7801 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_dst_itemf");
7805 "layers_uv_select_dst",
7808 "Destination Layers Matching",
7809 "How to match source and destination layers");
7812 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_layers_select_dst_itemf");
7821 "How to affect destination elements with source values");
7832 "Factor to use when applying data to destination (exact behavior depends on mix mode, "
7833 "multiplied with weights from vertex group when defined)",
7843 "Vertex group name for selecting the affected areas");
7846 prop,
nullptr,
nullptr,
"rna_DataTransferModifier_defgrp_name_set");
7850 srna,
"invert_vertex_group",
false,
"Invert",
"Invert vertex group influence");
7867 "From an ellipsoid (shape defined by the boundbox's dimensions, target is optional)"},
7872 "Normals 'track' (point to) the target object"},
7873 {0,
nullptr, 0,
nullptr,
nullptr},
7884 "Copy product of old and new normals (not cross product)"},
7885 {0,
nullptr, 0,
nullptr,
nullptr},
7890 srna,
"Normal Edit Modifier",
"Modifier affecting/generating custom normals");
7908 "Offset from object's center",
7922 prop,
"Mix Factor",
"How much of generated normals to mix with existing ones");
7934 "Lock Polygon Normals",
7935 "Do not flip polygons when their normals are not consistent "
7936 "with their newly computed custom vertex normals");
7942 prop,
"Vertex Group",
"Vertex group name for selecting/weighting the affected areas");
7954 prop,
nullptr,
"rna_NormalEditModifier_target_set",
nullptr,
nullptr);
7963 "Use same direction for all normals, from origin to target's center "
7964 "(Directional mode only)");
7975 srna =
RNA_def_struct(brna,
"SurfaceDeformModifier",
"Modifier");
7985 prop,
nullptr,
"rna_SurfaceDeformModifier_target_set",
nullptr,
"rna_Mesh_object_poll");
7992 prop,
"Interpolation Falloff",
"Controls how much nearby polygons influence deformation");
8003 prop,
"Vertex Group",
"Vertex group name for selecting/weighting the affected areas");
8005 prop,
nullptr,
nullptr,
"rna_SurfaceDeformModifier_defgrp_name_set");
8019 "Only record binding data for vertices matching the vertex group at the time of bind");
8041 "Generate face area weighted normals"},
8046 "Generate corner angle weighted normals"},
8048 "FACE_AREA_WITH_ANGLE",
8050 "Face Area & Angle",
8051 "Generated normals weighted by both face area and angle"},
8052 {0,
nullptr, 0,
nullptr,
nullptr},
8055 srna =
RNA_def_struct(brna,
"WeightedNormalModifier",
"Modifier");
8067 "Corrective factor applied to faces' weights, 50 is neutral, "
8068 "lower values increase weight of weak faces, "
8069 "higher values increase weight of strong faces");
8081 prop,
"Threshold",
"Threshold value for different weights to be considered equal");
8088 "Keep sharp edges as computed for default custom normals, "
8089 "instead of setting a single weighted normal for each vertex");
8095 prop,
"Vertex Group",
"Vertex group name for modifying the selected areas");
8097 prop,
nullptr,
nullptr,
"rna_WeightedNormalModifier_defgrp_name_set");
8126 prop,
"Data-Block Name",
"Name that is mapped to the referenced data-block");
8133 "Used when the data block is not local to the current .blend file but "
8134 "is linked from some library");
8141 prop,
nullptr,
nullptr,
"rna_NodesModifierBake_data_block_typef",
nullptr);
8158 srna =
RNA_def_struct(brna,
"NodesModifierBakeDataBlocks",
nullptr);
8161 srna,
"Data-Blocks",
"Collection of data-blocks that can be referenced by baked data");
8171 "Inherit from Modifier",
8172 "Use setting from the modifier"},
8177 "Pack the baked data into the .blend file"},
8182 "Store the baked data in a directory on disk"},
8183 {0,
nullptr, 0,
nullptr,
nullptr},
8191 "Pack the baked data into the .blend file"},
8196 "Store the baked data in a directory on disk"},
8197 {0,
nullptr, 0,
nullptr,
nullptr},
8207 {0,
nullptr, 0,
nullptr,
nullptr},
8236 prop,
"Custom Simulation Frame Range",
"Override the simulation frame range from the scene");
8242 prop,
"Custom Path",
"Specify a path where the baked data should be stored manually");
8259 "Identifier for this bake which remains unchanged even when the bake "
8260 "node is renamed, grouped or ungrouped");
8268 "Bake node or simulation output node that corresponds to this bake. "
8269 "This node may be deeply nested in the modifier node group. It can be "
8270 "none in some cases like missing linked data blocks.");
8272 prop,
"rna_NodesModifierBake_node_get",
nullptr,
nullptr,
nullptr);
8299 "Nodes Modifier Warning",
8300 "Warning created during evaluation of a geometry nodes modifier");
8306 "rna_NodesModifierWarning_message_get",
8307 "rna_NodesModifierWarning_message_length",
8327 srna =
RNA_def_struct(brna,
"NodesModifierPropertiesEmpty",
nullptr);
8359 prop,
nullptr,
nullptr,
nullptr,
"rna_NodesModifier_node_group_poll");
8366 prop,
"Simulation Bake Directory",
"Location on disk where the bake data is stored");
8378 prop,
"Bakes",
"All potential bakes, as defined by the assigned Geometry Nodes");
8382 "rna_NodesModifierBake_override_diff",
8384 "rna_NodesModifierBake_override_apply");
8401 "rna_NodesModifier_node_warnings_iterator_begin",
8402 "rna_NodesModifier_node_warnings_iterator_next",
8404 "rna_NodesModifier_node_warnings_iterator_get",
8405 "rna_NodesModifier_node_warnings_length",
8413 func =
RNA_def_function(srna,
"is_input_visible",
"rna_NodesModifier_is_input_visible");
8416 func,
"Check whether an input is currently visible based on modifier settings.");
8417 parm =
RNA_def_string(func,
"identifier",
"Identifier", 0,
"",
"The identifier of the input");
8422 func =
RNA_def_function(srna,
"is_input_used",
"rna_NodesModifier_is_input_used");
8425 func,
"Check whether an input is currently used based on modifier settings.");
8426 parm =
RNA_def_string(func,
"identifier",
"Identifier", 0,
"",
"The identifier of the input");
8445 prop,
"rna_NodesModifierProperties_get",
nullptr,
nullptr,
nullptr);
8460 "Desired number of voxels along one axis"},
8465 "Desired voxel side length"},
8466 {0,
nullptr, 0,
nullptr,
nullptr},
8484 prop,
"Resolution Mode",
"Mode for how the desired voxel size is specified");
8491 prop,
"Voxel Size",
"Smaller values result in a higher resolution output");
8503 prop,
"Interior Band Width",
"Width of the gradient inside of the mesh");
8522 "Use the local coordinate system for the texture coordinates"},
8527 "Use the global coordinate system for the texture coordinates"},
8532 "Use the linked object's local coordinate system for the texture coordinates"},
8533 {0,
nullptr, 0,
nullptr,
nullptr},
8539 srna =
RNA_def_struct(brna,
"VolumeDisplaceModifier",
"Modifier");
8568 prop,
"Texture Mid Level",
"Subtracted from the texture color to get a displacement vector");
8576 "Texture Sample Radius",
8577 "Smaller values result in better performance but might cut off the volume");
8595 "Use resolution of the volume grid"},
8600 "Desired number of voxels along one axis"},
8605 "Desired voxel side length"},
8606 {0,
nullptr, 0,
nullptr,
nullptr},
8623 prop,
"Threshold",
"Voxels with a larger value are inside the generated mesh");
8632 "Reduces the final face count by simplifying geometry where detail is not needed");
8639 prop,
"Smooth Shading",
"Output faces with smooth shading rather than flat shaded");
8644 prop,
"Grid Name",
"Grid in the volume object that is converted to a mesh");
8650 prop,
"Resolution Mode",
"Mode for how the desired voxel size is specified");
8657 prop,
"Voxel Size",
"Smaller values result in a higher resolution output");
8711 const char *material_set_fn)
8719 prop,
nullptr, material_set_fn,
nullptr,
"rna_GreasePencilModifier_material_poll");
8749 const char *vertex_group_name_set_fn)
8774 prop,
"Use Custom Curve",
"Use a custom curve to define a factor along the strokes");
8792 {0,
nullptr, 0,
nullptr,
nullptr},
8795 srna =
RNA_def_struct(brna,
"GreasePencilOpacityModifier",
"Modifier");
8802 srna,
"rna_GreasePencilOpacityModifier_material_filter_set");
8804 srna,
"rna_GreasePencilOpacityModifier_vertex_group_name_set");
8821 "rna_GreasePencilOpacityModifier_opacity_factor_max_set",
8822 "rna_GreasePencilOpacityModifier_opacity_factor_range");
8837 prop,
"Use Weight as Factor",
"Use vertex group weight as factor instead of influence");
8844 prop,
"Uniform Opacity",
"Replace the stroke opacity instead of modulating each point");
8859 {0,
nullptr, 0,
nullptr,
nullptr},
8862 srna =
RNA_def_struct(brna,
"GreasePencilSubdivModifier",
"Modifier");
8869 srna,
"rna_GreasePencilSubdivModifier_material_filter_set");
8902 {0,
nullptr, 0,
nullptr,
nullptr},
8905 srna =
RNA_def_struct(brna,
"GreasePencilColorModifier",
"Modifier");
8912 srna,
"rna_GreasePencilColorModifier_material_filter_set");
8958 {0,
nullptr, 0,
nullptr,
nullptr},
8964 {0,
nullptr, 0,
nullptr,
nullptr},
8967 srna =
RNA_def_struct(brna,
"GreasePencilTintModifier",
"Modifier");
8974 srna,
"rna_GreasePencilTintModifier_material_filter_set");
8976 srna,
"rna_GreasePencilTintModifier_vertex_group_name_set");
9017 prop,
nullptr,
"rna_GreasePencilTintModifier_object_set",
nullptr,
nullptr);
9032 prop,
"Use Weight as Factor",
"Use vertex group weight as factor instead of influence");
9045 {0,
nullptr, 0,
nullptr,
nullptr},
9048 static const EnumPropertyItem modifier_lineart_shadow_region_filtering[] = {
9053 "Not filtering any lines based on illumination region"},
9058 "Only selecting lines from illuminated regions"},
9063 "Only selecting lines from shaded regions"},
9065 "ILLUMINATED_ENCLOSED",
9067 "Illuminated (Enclosed Shapes)",
9068 "Selecting lines from lit regions, and make the combination of contour, light contour and "
9069 "shadow lines into enclosed shapes"},
9070 {0,
nullptr, 0,
nullptr,
nullptr},
9077 {0,
nullptr, 0,
nullptr,
nullptr},
9080 srna =
RNA_def_struct(brna,
"GreasePencilLineartModifier",
"Modifier");
9082 srna,
"Line Art Modifier",
"Generate Line Art strokes from selected source");
9091 prop,
"Use Custom Camera",
"Use custom camera instead of the active camera");
9098 "Intersection With Contour",
9099 "Treat intersection and contour lines as if they were the same type so "
9100 "they can be chained together");
9107 prop,
"All Lines",
"Treat all lines as the same line type so they can be chained together");
9114 "Instanced Objects",
9115 "Allow particle objects and face/vertex instances to show in Line Art");
9123 "Handle Overlapping Edges",
9124 "Allow edges in the same location (i.e. from edge split) to show properly. May run slower.");
9131 "Clipping Boundaries",
9132 "Allow lines generated by the near/far clipping plane to be shown");
9140 "Angles smaller than this will be treated as creases. Crease angle "
9141 "priority: object Line Art crease override > mesh auto smooth angle > "
9142 "Line Art default crease.");
9148 prop,
"Angle Splitting",
"Angle in screen space below which a stroke is split in two");
9157 prop,
"Smooth Tolerance",
"Strength of smoothing applied on jagged chains");
9182 prop,
"Filter Face Marks",
"Filter feature lines using Freestyle face marks");
9195 prop,
"Boundaries",
"Filter feature lines based on face mark boundaries");
9208 "Segments with an image distance smaller than this will be chained together");
9222 prop,
"Use Geometry Space",
"Use geometry distance for chaining instead of image space");
9229 prop,
"Preserve Details",
"Keep the zig-zag \"noise\" in initial chaining");
9236 "Overlapping Edge Types",
9237 "Allow an edge to have multiple overlapping types. This will create a "
9238 "separate stroke for each overlapping type.");
9243 "Stroke Depth Offset",
9244 "Move strokes slightly towards the camera to avoid clipping while "
9245 "preserve depth for the viewport");
9254 "Offset Towards Custom Camera",
9255 "Offset strokes towards selected camera instead of the active camera");
9261 "rna_GreasePencilLineartModifier_source_camera_set",
9263 "rna_Camera_object_poll");
9268 prop,
"Camera Object",
"Use specified camera object for generating Line Art strokes");
9276 prop,
"Light Object",
"Use this light object to generate light contour");
9294 prop,
"Collection",
"Generate strokes from the objects in this collection");
9316 prop,
"Use Material",
"Generate strokes from borders between materials");
9332 "Use Light Contour",
9333 "Generate light/shadow separation lines from a reference light object");
9340 prop,
"Use Shadow",
"Project contour lines using a light source object");
9347 "Shadow Region Filtering",
9348 "Select feature lines that comes from lit or shaded regions. Will not "
9349 "affect cast shadow and light contour since they are at the border.");
9362 prop,
"Fill Strokes",
"Generate filled strokes instead of only outline");
9368 prop,
"Use Occlusion Range",
"Generate strokes from a range of occlusion levels");
9373 prop,
"Level Start",
"Minimum number of occlusions for the generated strokes");
9380 prop,
"Level End",
"Maximum number of occlusions for the generated strokes");
9387 prop,
"Layer",
"Grease Pencil layer to which assign the generated strokes");
9395 "rna_GreasePencilLineartModifier_material_set",
9397 "rna_GreasePencilModifier_material_poll");
9399 prop,
"Material",
"Grease Pencil material assigned to the generated strokes");
9405 "Source Vertex Group",
9406 "Match the beginning of vertex group names from mesh objects, match all when left empty");
9412 prop,
nullptr,
nullptr,
"rna_GreasePencilLineartModifier_vgname_set");
9425 "Use cached scene data from the first Line Art modifier in the stack. "
9426 "Certain settings will be unavailable.");
9433 "A margin to prevent strokes from ending abruptly at the edge of the image");
9454 prop,
"Use Material Mask",
"Use material masks to filter out occluded strokes");
9461 prop,
"Match Masks",
"Require matching all material masks instead of just one");
9473 prop,
"Match Intersection",
"Require matching all intersection masks instead of just one");
9485 prop,
"Crease On Smooth Surfaces",
"Allow crease edges to show inside smooth surfaces");
9499 "Image Boundary Trimming",
9500 "Trim all edges right at the boundary of image (including overscan region)");
9507 "Back Face Culling",
9508 "Remove all back faces to speed up calculation, this will create edges in "
9509 "different occlusion levels than when disabled");
9527 "Shadow Camera Size",
9528 "Represents the \"Orthographic Scale\" of an orthographic camera. "
9529 "If the camera is positioned at the light's location with this scale, it will "
9530 "represent the coverage of the shadow \"camera\".");
9537 "Invert Collection Filtering",
9538 "Select everything except lines from specified collection");
9554 srna =
RNA_def_struct(brna,
"GreasePencilSmoothModifier",
"Modifier");
9561 srna,
"rna_GreasePencilSmoothModifier_material_filter_set");
9563 srna,
"rna_GreasePencilSmoothModifier_vertex_group_name_set");
9579 prop,
"Affect Position",
"The modifier affects the position of the point");
9585 prop,
"Affect Strength",
"The modifier affects the color strength of the point");
9591 prop,
"Affect Thickness",
"The modifier affects the thickness of the point");
9597 prop,
"Affect UV",
"The modifier affects the UV rotation factor of the point");
9604 prop,
"Steps",
"Number of times to apply smooth (high numbers can reduce fps)");
9633 "Offset strokes by the same factor based on stroke draw order"},
9638 "Offset materials by the same factor"},
9639 {0,
nullptr, 0,
nullptr,
nullptr},
9642 srna =
RNA_def_struct(brna,
"GreasePencilOffsetModifier",
"Modifier");
9649 srna,
"rna_GreasePencilOffsetModifier_material_filter_set");
9651 srna,
"rna_GreasePencilOffsetModifier_vertex_group_name_set");
9716 prop,
"Uniform Scale",
"Use the same random seed for each scale axis for a uniform scale");
9730 {0,
nullptr, 0,
nullptr,
nullptr},
9733 srna =
RNA_def_struct(brna,
"GreasePencilNoiseModifier",
"Modifier");
9740 srna,
"rna_GreasePencilNoiseModifier_material_filter_set");
9742 srna,
"rna_GreasePencilNoiseModifier_vertex_group_name_set");
9820 {
GP_LENGTH_RELATIVE,
"RELATIVE", 0,
"Relative",
"Length in ratio to the stroke's length"},
9822 {0,
nullptr, 0,
nullptr,
nullptr},
9825 srna =
RNA_def_struct(brna,
"GreasePencilLengthModifier",
"Modifier");
9832 srna,
"rna_GreasePencilLengthModifier_material_filter_set");
9844 prop,
"Start Factor",
"Added length to the start of each stroke relative to its length");
9851 prop,
"End Factor",
"Added length to the end of each stroke relative to its length");
9858 prop,
"Start Factor",
"Absolute added length to the start of each stroke");
9871 prop,
"Random Start Factor",
"Size of random length added to the start of each stroke");
9878 prop,
"Random End Factor",
"Size of random length added to the end of each stroke");
9885 prop,
"Random Noise Offset",
"Smoothly offset each stroke's random value");
9909 "Defines what portion of the stroke is used for the calculation of the extension");
9926 prop,
"Invert Curvature",
"Invert the curvature of the stroke's extension");
9934 prop,
"Point Density",
"Multiplied by Start/End for the total added point count");
9941 "Segment Influence",
9942 "Factor to determine how much the length of the individual segments "
9943 "should influence the final computed curvature. Higher factors makes "
9944 "small segments influence the overall curvature less.");
9950 "Ignore points on the stroke that deviate from their neighbors by more "
9951 "than this angle when determining the extrapolation shape");
9964 srna =
RNA_def_struct(brna,
"GreasePencilMirrorModifier",
"Modifier");
9971 srna,
"rna_GreasePencilMirrorModifier_material_filter_set");
9980 prop,
nullptr,
"rna_GreasePencilMirrorModifier_object_set",
nullptr,
nullptr);
10007 srna =
RNA_def_struct(brna,
"GreasePencilThickModifierData",
"Modifier");
10014 srna,
"rna_GreasePencilThickModifier_material_filter_set");
10016 srna,
"rna_GreasePencilThickModifier_vertex_group_name_set");
10055 srna =
RNA_def_struct(brna,
"GreasePencilArrayModifier",
"Modifier");
10062 srna,
"rna_GreasePencilArrayModifier_material_filter_set");
10084 "Use the location and rotation of another object to determine the distance and "
10085 "rotational change between arrayed items");
10100 "The size of the geometry will determine the distance between arrayed items");
10132 "Index of the material used for generated strokes (0 keep original material)");
10143 prop,
"Use Object Offset",
"Add another object's transformation to the total offset");
10155 prop,
"Uniform Scale",
"Use the same random seed for each scale axis for a uniform scale");
10166 srna =
RNA_def_struct(brna,
"GreasePencilLatticeModifier",
"Modifier");
10168 srna,
"Grease Pencil Lattice Modifier",
"Deform strokes using a lattice object");
10174 srna,
"rna_GreasePencilLatticeModifier_material_filter_set");
10176 srna,
"rna_GreasePencilLatticeModifier_vertex_group_name_set");
10186 "rna_GreasePencilLatticeModifier_object_set",
10188 "rna_Lattice_object_poll");
10206 srna =
RNA_def_struct(brna,
"GreasePencilDashModifierSegment",
nullptr);
10214 prop,
nullptr,
nullptr,
"rna_GreasePencilDashModifierSegment_name_set");
10223 "The number of consecutive points from the original stroke to include in this segment");
10234 prop,
"Radius",
"The factor to apply to the original point's radius for the new points");
10240 prop,
"Opacity",
"The factor to apply to the original point's opacity for the new points");
10249 "Use this index on generated segment. -1 means using the existing material.");
10263 srna =
RNA_def_struct(brna,
"GreasePencilDashModifierData",
"Modifier");
10265 srna,
"Grease Pencil Dash Modifier",
"Create dot-dash effect for strokes");
10271 srna,
"rna_GreasePencilDashModifier_material_filter_set");
10281 "rna_GreasePencilDashModifier_segments_begin",
10282 "rna_iterator_array_next",
10283 "rna_iterator_array_end",
10284 "rna_iterator_array_get",
10299 "Offset into each stroke before the beginning of the dashed segment generation");
10311 {0,
"X", 0,
"X",
""},
10312 {1,
"Y", 0,
"Y",
""},
10313 {2,
"Z", 0,
"Z",
""},
10314 {0,
nullptr, 0,
nullptr,
nullptr},
10320 {0,
nullptr, 0,
nullptr,
nullptr},
10323 srna =
RNA_def_struct(brna,
"GreasePencilWeightAngleModifier",
"Modifier");
10330 srna,
"rna_GreasePencilWeightAngleModifier_material_filter_set");
10332 srna,
"rna_GreasePencilWeightAngleModifier_vertex_group_name_set");
10342 prop,
nullptr,
nullptr,
"rna_GreasePencilWeightAngleModifier_target_vgname_set");
10349 "Multiply Weights",
10350 "Multiply the calculated weights with the existing values in the vertex group");
10389 srna =
RNA_def_struct(brna,
"GreasePencilMultiplyModifier",
"Modifier");
10396 srna,
"rna_GreasePencilMultiModifier_material_filter_set");
10457 ICON_INVERSESQUARECURVE,
10463 {0,
nullptr, 0,
nullptr,
nullptr},
10466 srna =
RNA_def_struct(brna,
"GreasePencilHookModifier",
"Modifier");
10468 srna,
"Hook Modifier",
"Hook modifier to modify the location of stroke points");
10474 srna,
"rna_GreasePencilHookModifier_material_filter_set");
10476 srna,
"rna_GreasePencilHookModifier_vertex_group_name_set");
10486 prop,
"Object",
"Parent Object for hook, also recalculates and clears offset");
10489 prop,
nullptr,
"rna_GreasePencilHookModifier_object_set",
nullptr,
nullptr);
10497 "Name of Parent Bone for hook (if applicable), also recalculates and clears offset");
10518 prop,
"Radius",
"If not zero, the distance from the hook where influence ends");
10530 prop,
"Matrix",
"Reverse the transformation between this object and its target");
10546 srna =
RNA_def_struct(brna,
"GreasePencilWeightProximityModifier",
"Modifier");
10553 srna,
"rna_GreasePencilWeightProximityModifier_material_filter_set");
10555 srna,
"rna_GreasePencilWeightProximityModifier_vertex_group_name_set");
10566 "Multiply Weights",
10567 "Multiply the calculated weights with the existing values in the vertex group");
10580 prop,
nullptr,
nullptr,
"rna_GreasePencilWeightProximityModifier_target_vgname_set");
10587 prop,
nullptr,
"rna_GreasePencilWeightProximityModifier_object_set",
nullptr,
nullptr);
10623 "Delete alternating vertices in the stroke, except extremes"},
10626 ICON_IPO_EASE_IN_OUT,
10628 "Use a Ramer-Douglas-Peucker algorithm to simplify the stroke preserving main shape"},
10631 ICON_IPO_EASE_IN_OUT,
10633 "Re-sample the stroke with segments of the specified length"},
10636 ICON_IPO_EASE_IN_OUT,
10638 "Simplify the stroke by merging vertices closer than a given distance"},
10639 {0,
nullptr, 0,
nullptr,
nullptr},
10642 srna =
RNA_def_struct(brna,
"GreasePencilSimplifyModifier",
"Modifier");
10649 srna,
"rna_GreasePencilSimplifyModifier_material_filter_set");
10651 srna,
"rna_GreasePencilSimplifyModifier_vertex_group_name_set");
10685 prop,
"Sharp Threshold",
"Preserve corners that have sharper angle than this threshold");
10703 srna =
RNA_def_struct(brna,
"GreasePencilArmatureModifier",
"Modifier");
10709 srna,
"rna_GreasePencilArmatureModifier_vertex_group_name_set");
10719 "rna_GreasePencilArmatureModifier_object_set",
10721 "rna_Armature_object_poll");
10738 prop,
"Preserve Volume",
"Deform rotation interpolation with quaternions");
10754 "Apply offset in usual animation direction"},
10759 "Apply offset in reverse animation direction"},
10764 "Loop back and forth"},
10765 {0,
nullptr, 0,
nullptr,
nullptr},
10768 srna =
RNA_def_struct(brna,
"GreasePencilTimeModifierSegment",
nullptr);
10776 prop,
nullptr,
nullptr,
"rna_GreasePencilTimeModifierSegment_name_set");
10812 "Apply offset in usual animation direction"},
10817 "Apply offset in reverse animation direction"},
10822 "Keep frame and do not change with time"},
10827 "Loop back and forth starting in reverse"},
10832 "List of chained animation segments"},
10833 {0,
nullptr, 0,
nullptr,
nullptr},
10836 srna =
RNA_def_struct(brna,
"GreasePencilTimeModifier",
"Modifier");
10852 "rna_GreasePencilTimeModifier_segments_begin",
10853 "rna_iterator_array_next",
10854 "rna_iterator_array_end",
10855 "rna_iterator_array_get",
10876 prop,
"Frame Offset",
"Number of frames to offset original keyframe number or frame to fix");
10889 prop,
nullptr,
"rna_GreasePencilTimeModifier_start_frame_set",
nullptr);
10907 prop,
"Keep Loop",
"Retiming end frames and move to start of animation to keep loop");
10913 prop,
"Custom Range",
"Define a custom range of frames to use in modifier");
10929 "Deform the stroke to best match the envelope shape"},
10934 "Add segments to create the envelope. Keep the original stroke."},
10939 "Add fill segments to create the envelope. Don't keep the original stroke."},
10940 {0,
nullptr, 0,
nullptr,
nullptr},
10943 srna =
RNA_def_struct(brna,
"GreasePencilEnvelopeModifier",
"Modifier");
10945 srna,
"Grease Pencil Envelope Modifier",
"Envelope stroke effect modifier");
10951 srna,
"rna_GreasePencilEnvelopeModifier_material_filter_set");
10953 srna,
"rna_GreasePencilEnvelopeModifier_vertex_group_name_set");
10969 prop,
"Spread Length",
"The number of points to skip to create straight segments");
10997 prop,
"Skip Segments",
"The number of generated segments to skip to reduce complexity");
11008 srna =
RNA_def_struct(brna,
"GreasePencilOutlineModifier",
"Modifier");
11015 srna,
"rna_GreasePencilOutlineModifier_material_filter_set");
11048 "rna_GreasePencilOutlineModifier_outline_material_set",
11050 "rna_GreasePencilModifier_material_poll");
11058 prop,
nullptr,
"rna_GreasePencilOutlineModifier_object_set",
nullptr,
nullptr);
11069 srna =
RNA_def_struct(brna,
"GreasePencilShrinkwrapModifier",
"Modifier");
11071 "Shrinkwrap Modifier",
11072 "Shrink wrapping modifier to shrink wrap an object to a target");
11078 srna,
"rna_GreasePencilShrinkwrapModifier_material_filter_set");
11080 srna,
"rna_GreasePencilShrinkwrapModifier_vertex_group_name_set");
11096 prop,
"Snap Mode",
"Select how vertices are constrained to the target surface");
11103 "rna_GreasePencilShrinkwrapModifier_face_cull_get",
11104 "rna_GreasePencilShrinkwrapModifier_face_cull_set",
11109 "Stop vertices from projecting to a face on the target when facing towards/away");
11116 "rna_GreasePencilShrinkwrapModifier_target_set",
11118 "rna_Mesh_object_poll");
11127 "rna_GreasePencilShrinkwrapModifier_aux_target_set",
11129 "rna_Mesh_object_poll");
11145 prop,
"Project Limit",
"Limit the distance used for projection (zero disables)");
11169 "Subdivision Levels",
11170 "Number of subdivisions that must be performed before extracting vertices' "
11171 "positions and normals");
11178 prop,
"Negative",
"Allow vertices to move in the negative direction of axis");
11185 prop,
"Positive",
"Allow vertices to move in the positive direction of axis");
11191 prop,
"Invert Cull",
"When projecting in the negative direction invert the face cull mode");
11204 prop,
"Steps",
"Number of times to apply smooth (high numbers can reduce FPS)");
11217 "Strokes appear/disappear one after the other, but only a single one changes at a time"},
11222 "Multiple strokes appear/disappear at once"},
11227 "Builds only new strokes (assuming 'additive' drawing)"},
11228 {0,
nullptr, 0,
nullptr,
nullptr},
11236 "Show points in the order they occur in each stroke "
11237 "(e.g. for animating lines being drawn)"},
11242 "Hide points from the end of each stroke to the start "
11243 "(e.g. for animating lines being erased)"},
11248 "Hide points in the order they occur in each stroke "
11249 "(e.g. for animating ink fading or vanishing after getting drawn)"},
11250 {0,
nullptr, 0,
nullptr,
nullptr},
11258 "All strokes start at same time (i.e. short strokes finish earlier)"},
11263 "All strokes end at same time (i.e. short strokes start later)"},
11264 {0,
nullptr, 0,
nullptr,
nullptr},
11270 srna =
RNA_def_struct(brna,
"GreasePencilBuildModifier",
"Modifier");
11277 srna,
"rna_GreasePencilBuildModifier_material_filter_set");
11294 prop,
"Transition",
"How are strokes animated (i.e. are they appearing or disappearing)");
11300 prop,
"Delay",
"Number of frames after each GP keyframe before the modifier has any effect");
11309 "Maximum number of frames that the build effect can run for "
11310 "(unless another GP keyframe occurs before this time has elapsed)");
11328 "Use drawing speed, a number of frames, or a manual factor to build strokes");
11351 prop,
"Restrict Frame Range",
"Only modify strokes during the specified frame range");
11359 prop,
"Restrict Visible Points",
"Use a percentage factor to determine the visible points");
11370 prop,
"Start Frame",
"Start Frame (when Restrict Frame Range is enabled)");
11395 prop,
nullptr,
nullptr,
"rna_GreasePencilBuildModifier_target_vgname_set");
11401 prop,
"Opacity Strength",
"How much strength fading applies on top of stroke opacity");
11408 prop,
"Thickness Strength",
"How much strength fading applies on top of stroke thickness");
11415 prop,
nullptr,
"rna_GreasePencilBuildModifier_object_set",
nullptr,
nullptr);
11432 "Keep the texture at a constant length regardless of the length of each stroke"},
11437 "Scale the texture to fit the length of each stroke"},
11438 {0,
nullptr, 0,
nullptr,
nullptr},
11446 "Manipulate only stroke texture coordinates"},
11451 "Manipulate only fill texture coordinates"},
11456 "Manipulate both stroke and fill texture coordinates"},
11457 {0,
nullptr, 0,
nullptr,
nullptr},
11460 srna =
RNA_def_struct(brna,
"GreasePencilTextureModifier",
"Modifier");
11462 srna,
"Grease Pencil Texture Modifier",
"Transform stroke texture coordinates Modifier");
11468 srna,
"rna_GreasePencilTextureModifier_material_filter_set");
11495 prop,
"Rotation",
"Additional rotation applied to dots and square strokes");
11587 prop,
"rna_Modifier_show_expanded_get",
"rna_Modifier_show_expanded_set");
11613 "is_override_data",
11615 "Override Modifier",
11616 "In a local override object, whether this modifier comes from the linked "
11617 "reference object, or is local to the override");
11627 "Apply this and all preceding deformation modifiers on splines' points rather than "
11628 "on filled curve/surface");
11638 "Time in seconds that the modifier took to evaluate. This is only set on evaluated objects. "
11639 "If multiple modifiers run in parallel, execution time is not a reliable metric.");
11646 "Uniquely identifies the modifier within the modifier stack that it is part of");
CustomData interface, see also DNA_customdata_types.h.
General operations, lookup, etc. for materials.
General operations, lookup, etc. for blender objects.
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_AMOUNT
#define BLT_I18NCONTEXT_MODIFIER
#define BLT_I18NCONTEXT_ID_CACHEFILE
#define BLT_I18NCONTEXT_ID_SIMULATION
#define BLT_I18NCONTEXT_ID_ID
#define BLT_I18NCONTEXT_ID_CURVE_LEGACY
#define BLT_I18NCONTEXT_ID_GPENCIL
#define BLT_I18NCONTEXT_ID_PARTICLESETTINGS
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define BLT_I18NCONTEXT_ID_MESH
#define BLT_I18NCONTEXT_COLOR
#define ID_IS_LINKED(_id)
#define MOD_SHRINKWRAP_CULL_TARGET_MASK
#define MOD_UVPROJECT_MAXPROJECTORS
Object is a sort of wrapper for general info.
#define RNA_PROP_BEGIN(sptr, itemptr, prop)
#define RNA_MAX_ARRAY_LENGTH
#define RNA_MAX_ARRAY_DIMENSION
#define RNA_TRANSLATION_PREC_DEFAULT
#define RNA_ENUM_ITEM_HEADING(name, description)
#define BLI_assert_unreachable()
#define UNUSED_VARS_NDEBUG(...)
#define SET_FLAG_FROM_TEST(value, test, flag)
#define BLI_assert_msg(a, msg)
#define MAX_CUSTOMDATA_LAYER_NAME_NO_PREFIX
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
constexpr bool contains_ptr(const T *ptr) const
constexpr IndexRange()=default
constexpr StringRefNull()
std::shared_ptr< nodes::GeneratedTreeSrnaData > geometry_nodes_srna_data
Segment< FEdge *, Vec3r > segment
bool allow_procedural_attribute_access(StringRef attribute_name)
int size(const AssetLibraryReference *library_reference)
bool modifier_move_to_index(ReportList *reports, eReportType error_type, Object *ob, ModifierData *md, int index, bool allow_partial)
void free_shared_data(T **data, const ImplicitSharingInfo **sharing_info)
@ MOD_GREASE_PENCIL_BUILD_TIMEMODE_PERCENTAGE
@ MOD_GREASE_PENCIL_BUILD_TIMEMODE_DRAWSPEED
@ MOD_GREASE_PENCIL_BUILD_TIMEMODE_FRAMES
static const EnumPropertyItem prop_direction_items[]
void WM_main_add_notifier(uint type, void *reference)
bool CustomData_external_test(CustomData *data, eCustomDataType type)
static void rna_def_modifier_grease_pencil_vertex_group(StructRNA *srna, const char *vertex_group_name_set_fn)
@ CDT_MIX_REPLACE_ABOVE_THRESHOLD
@ CDT_MIX_REPLACE_BELOW_THRESHOLD
@ RNA_OVERRIDE_MATCH_RESULT_CREATED
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
static void rna_def_modifier_curve(BlenderRNA *brna)
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_modifier_datatransfer(BlenderRNA *brna)
static void rna_def_modifier_grease_pencil_time_segment(BlenderRNA *brna)
static void rna_def_modifier_explode(BlenderRNA *brna)
void id_lib_extern(ID *id, bool enforce_fix=false)
const EnumPropertyItem rna_enum_object_modifier_type_items[]
void BKE_curveprofile_init(struct CurveProfile *profile, short segments_len)
static void rna_def_modifier_wave(BlenderRNA *brna)
@ MOD_NORMALEDIT_INVERT_VGROUP
@ MOD_NORMALEDIT_NO_POLYNORS_FIX
@ MOD_NORMALEDIT_USE_DIRECTION_PARALLEL
@ UI_PANEL_DATA_EXPAND_ROOT
@ DT_MULTILAYER_INDEX_VCOL_VERT
@ DT_MULTILAYER_INDEX_MDEFORMVERT
@ DT_MULTILAYER_INDEX_VCOL_LOOP
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
@ MOD_CORRECTIVESMOOTH_SMOOTH_LENGTH_WEIGHT
@ MOD_CORRECTIVESMOOTH_SMOOTH_SIMPLE
static void rna_def_modifier_collision(BlenderRNA *brna)
void RNA_def_modifier(BlenderRNA *brna)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
@ MOD_OCEAN_SPECTRUM_PHILLIPS
@ MOD_OCEAN_SPECTRUM_PIERSON_MOSKOWITZ
@ MOD_OCEAN_SPECTRUM_JONSWAP
@ MOD_OCEAN_SPECTRUM_TEXEL_MARSEN_ARSLOE
char * STRNCPY(char(&dst)[N], const char *src)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
@ NODES_MODIFIER_PANEL_BAKE_DATA_BLOCKS
@ NODES_MODIFIER_PANEL_BAKE
@ NODES_MODIFIER_PANEL_OUTPUT_ATTRIBUTES
@ NODES_MODIFIER_PANEL_MANAGE
@ NODES_MODIFIER_PANEL_WARNINGS
@ NODES_MODIFIER_PANEL_NAMED_ATTRIBUTES
static void rna_def_modifier_weightvgproximity(BlenderRNA *brna)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ eBooleanModifierFlag_Collection
@ eBooleanModifierFlag_Self
@ eBooleanModifierFlag_Object
@ eBooleanModifierFlag_HoleTolerant
const EnumPropertyItem rna_enum_id_type_items[]
static void rna_def_modifier_remesh(BlenderRNA *brna)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_bitset_array_sdna(PropertyRNA *prop, const char *structname, const char *propname, const int64_t booleanbit, const int length)
@ SUBSURF_ADAPTIVE_SPACE_PIXEL
@ SUBSURF_ADAPTIVE_SPACE_OBJECT
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
static void rna_def_modifier_meshdeform(BlenderRNA *brna)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
@ MOD_NORMALEDIT_MODE_DIRECTIONAL
@ MOD_NORMALEDIT_MODE_RADIAL
const EnumPropertyItem rna_enum_dt_mix_mode_items[]
@ NODES_MODIFIER_BAKE_CUSTOM_PATH
@ NODES_MODIFIER_BAKE_CUSTOM_SIMULATION_FRAME_RANGE
const EnumPropertyItem rna_enum_dt_layers_select_dst_items[]
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
int CustomData_number_of_layers(const CustomData *data, eCustomDataType type)
@ MOD_GREASE_PENCIL_HOOK_Falloff_Curve
@ MOD_GREASE_PENCIL_HOOK_Falloff_Sharp
@ MOD_GREASE_PENCIL_HOOK_Falloff_Linear
@ MOD_GREASE_PENCIL_HOOK_Falloff_InvSquare
@ MOD_GREASE_PENCIL_HOOK_Falloff_Root
@ MOD_GREASE_PENCIL_HOOK_Falloff_None
@ MOD_GREASE_PENCIL_HOOK_Falloff_Smooth
@ MOD_GREASE_PENCIL_HOOK_Falloff_Const
@ MOD_GREASE_PENCIL_HOOK_Falloff_Sphere
const ListBaseT< bDeformGroup > * BKE_object_defgroup_list(const Object *ob)
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
void RNA_def_property_ui_scale_type(PropertyRNA *prop, PropertyScaleType ui_scale_type)
@ MREMAP_MODE_VERT_EDGEINTERP_NEAREST
@ MREMAP_MODE_LOOP_NEAREST_LOOPNOR
@ MREMAP_MODE_VERT_POLYINTERP_VNORPROJ
@ MREMAP_MODE_VERT_NEAREST
@ MREMAP_MODE_EDGE_VERT_NEAREST
@ MREMAP_MODE_EDGE_EDGEINTERP_VNORPROJ
@ MREMAP_MODE_VERT_FACE_NEAREST
@ MREMAP_MODE_LOOP_POLYINTERP_LNORPROJ
@ MREMAP_MODE_LOOP_POLYINTERP_NEAREST
@ MREMAP_MODE_POLY_POLYINTERP_PNORPROJ
@ MREMAP_MODE_LOOP_NEAREST_POLYNOR
@ MREMAP_MODE_VERT_EDGE_NEAREST
@ MREMAP_MODE_EDGE_NEAREST
@ MREMAP_MODE_VERT_POLYINTERP_NEAREST
@ MREMAP_MODE_LOOP_POLY_NEAREST
@ MREMAP_MODE_POLY_NEAREST
@ MREMAP_MODE_EDGE_POLY_NEAREST
static void rna_def_modifier_edgesplit(BlenderRNA *brna)
const EnumPropertyItem rna_enum_modifier_shrinkwrap_mode_items[]
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
@ MOD_WVG_MASK_TEX_USE_GREEN
@ MOD_WVG_MASK_TEX_USE_SAT
@ MOD_WVG_MASK_TEX_USE_HUE
@ MOD_WVG_MASK_TEX_USE_INT
@ MOD_WVG_MASK_TEX_USE_RED
@ MOD_WVG_MASK_TEX_USE_VAL
@ MOD_WVG_MASK_TEX_USE_BLUE
@ MOD_WVG_MASK_TEX_USE_ALPHA
static void rna_def_modifier_grease_pencil_hook(BlenderRNA *brna)
@ GP_NOISE_RANDOM_KEYFRAME
void RNA_property_update_main(Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_modifier_particleinstance(BlenderRNA *brna)
@ MOD_LATTICE_INVERT_VGROUP
static void rna_def_modifier_cloth(BlenderRNA *brna)
@ MOD_CURVE_INVERT_VGROUP
static void rna_def_modifier_grease_pencil_build(BlenderRNA *brna)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
static void rna_def_modifier_grease_pencil_texture(BlenderRNA *brna)
@ MOD_DECIM_FLAG_INVERT_VGROUP
@ MOD_DECIM_FLAG_ALL_BOUNDARY_VERTS
@ MOD_DECIM_FLAG_TRIANGULATE
@ MOD_DECIM_FLAG_SYMMETRY
@ MOD_MESHCACHE_TIME_SECONDS
@ MOD_MESHCACHE_TIME_FACTOR
@ MOD_MESHCACHE_TIME_FRAME
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
PropertyRNA * RNA_def_float_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
static void rna_def_modifier_uvproject(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_OPACITY_USE_UNIFORM_OPACITY
@ MOD_GREASE_PENCIL_OPACITY_USE_WEIGHT_AS_FACTOR
PointerRNA RNA_id_pointer_create(ID *id)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
@ GP_WEIGHT_INVERT_OUTPUT
@ GP_WEIGHT_MULTIPLY_DATA
static void rna_def_modifier_grease_pencil_dash(BlenderRNA *brna)
@ MOD_WELD_MODE_CONNECTED
static void rna_def_modifier_grease_pencil_material_filter(StructRNA *srna, const char *material_set_fn)
@ eExplodeFlag_INVERT_VGROUP
const char * RNA_property_identifier(const PropertyRNA *prop)
void BKE_lib_override_library_property_operation_ui_info_set(IDOverrideLibraryPropertyOperation &liboverride_property_operation, StringRefNull label, StringRefNull tooltip)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
StructRNA * ID_code_to_RNA_type(short idcode)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties)
static void rna_def_modifier_grease_pencil_opacity(BlenderRNA *brna)
@ MOD_LAPLACIANDEFORM_INVERT_VGROUP
@ MOD_LAPLACIANDEFORM_BIND
void nodes_modifier_packed_bake_copy(NodesModifierBake &bake_dst, const NodesModifierBake &bake_src)
@ MOD_GREASE_PENCIL_MULTIPLY_ENABLE_FADING
void BKE_ocean_free_modifier_cache(struct OceanModifierData *omd)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
static void rna_def_modifier_weightvgedit(BlenderRNA *brna)
static void rna_def_modifier_grease_pencil_weight_proximity(BlenderRNA *brna)
@ SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_AND_JUNCTIONS
@ SUBSURF_UV_SMOOTH_PRESERVE_BOUNDARIES
@ SUBSURF_UV_SMOOTH_PRESERVE_CORNERS
@ SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE
const EnumPropertyItem rna_enum_axis_xy_items[]
static void rna_def_modifier_correctivesmooth(BlenderRNA *brna)
static void rna_def_modifier_grease_pencil_smooth(BlenderRNA *brna)
static void rna_def_modifier_nodes_warning(BlenderRNA *brna)
static void rna_def_modifier_grease_pencil_array(BlenderRNA *brna)
@ MOD_WVG_PROXIMITY_GEOMETRY
@ MOD_WVG_PROXIMITY_OBJECT
int BKE_object_data_transfer_get_dttypes_item_types(int dtdata_types)
static void rna_def_modifier_cast(BlenderRNA *brna)
@ MOD_MESHCACHE_INVERT_VERTEX_GROUP
@ MOD_GREASE_PENCIL_TIME_SEG_MODE_PINGPONG
@ MOD_GREASE_PENCIL_TIME_SEG_MODE_REVERSE
@ MOD_GREASE_PENCIL_TIME_SEG_MODE_NORMAL
std::string RNA_path_name_to_infix(const StringRefNull string)
const EnumPropertyItem rna_enum_axis_flag_xyz_items[]
@ MOD_CORRECTIVESMOOTH_RESTSOURCE_BIND
@ MOD_CORRECTIVESMOOTH_RESTSOURCE_ORCO
@ eModifierType_LaplacianDeform
@ eModifierType_VolumeDisplace
@ eModifierType_Shrinkwrap
@ eModifierType_ParticleSystem
@ eModifierType_WeightedNormal
@ eModifierType_GreasePencilOffset
@ eModifierType_VolumeToMesh
@ eModifierType_WeightVGEdit
@ eModifierType_Collision
@ eModifierType_GreasePencilMultiply
@ eModifierType_GreasePencilArray
@ eModifierType_GreasePencilThickness
@ eModifierType_ParticleInstance
@ eModifierType_UVProject
@ eModifierType_DataTransfer
@ eModifierType_GreasePencilSubdiv
@ eModifierType_GreasePencilShrinkwrap
@ eModifierType_Triangulate
@ eModifierType_EdgeSplit
@ eModifierType_SimpleDeform
@ eModifierType_GreasePencilDash
@ eModifierType_GreasePencilBuild
@ eModifierType_GreasePencilWeightAngle
@ eModifierType_GreasePencilColor
@ eModifierType_GreasePencilLineart
@ eModifierType_GreasePencilHook
@ eModifierType_GreasePencilMirror
@ eModifierType_GreasePencilLattice
@ eModifierType_GreasePencilSmooth
@ eModifierType_MeshDeform
@ eModifierType_GreasePencilTexture
@ eModifierType_LaplacianSmooth
@ eModifierType_MeshSequenceCache
@ eModifierType_GreasePencilArmature
@ eModifierType_GreasePencilTime
@ eModifierType_CorrectiveSmooth
@ eModifierType_GreasePencilOpacity
@ eModifierType_WeightVGMix
@ eModifierType_Wireframe
@ eModifierType_GreasePencilOutline
@ eModifierType_MeshToVolume
@ eModifierType_GreasePencilTint
@ eModifierType_GreasePencilNoise
@ eModifierType_DynamicPaint
@ eModifierType_MeshCache
@ eModifierType_WeightVGProximity
@ eModifierType_GreasePencilSimplify
@ eModifierType_GreasePencilLength
@ eModifierType_NormalEdit
@ eModifierType_GreasePencilEnvelope
@ eModifierType_GreasePencilWeightProximity
@ eModifierType_SurfaceDeform
static void rna_def_modifier_normaledit(BlenderRNA *brna)
const EnumPropertyItem rna_enum_node_warning_type_items[]
std::optional< AncestorPointerRNA > RNA_struct_search_closest_ancestor_by_type(const PointerRNA *ptr, const StructRNA *srna)
void MOD_nodes_update_interface(Main &bmain, Object *object, NodesModifierData *nmd)
void RNA_define_lib_overridable(const bool make_overridable)
StringRefNull rna_Attribute_name_get(const PointerRNA &ptr)
@ MOD_GREASE_PENCIL_BUILD_MODE_SEQUENTIAL
@ MOD_GREASE_PENCIL_BUILD_MODE_CONCURRENT
@ MOD_GREASE_PENCIL_BUILD_MODE_ADDITIVE
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
static void rna_def_modifier_triangulate(BlenderRNA *brna)
static void rna_def_modifier_nodes(BlenderRNA *brna)
static void rna_def_modifier_fluid(BlenderRNA *brna)
static void rna_def_modifier_nodes_bakes(BlenderRNA *brna)
@ MOD_WIREFRAME_OFS_RELATIVE
@ MOD_WIREFRAME_INVERT_VGROUP
static void rna_def_modifier_grease_pencil_thickness(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_BUILD_TIMEALIGN_START
@ MOD_GREASE_PENCIL_BUILD_TIMEALIGN_END
static void rna_def_modifier_laplaciansmooth(BlenderRNA *brna)
const EnumPropertyItem rna_enum_subdivision_uv_smooth_items[]
int RNA_int_get(PointerRNA *ptr, const char *name)
static void rna_def_modifier_panel_open_prop(StructRNA *srna, const char *identifier, const int id)
@ MOD_WEIGHTEDNORMAL_INVERT_VGROUP
@ MOD_WEIGHTEDNORMAL_KEEP_SHARP
@ MOD_WEIGHTEDNORMAL_FACE_INFLUENCE
@ MOD_GREASE_PENCIL_WEIGHT_ANGLE_SPACE_WORLD
@ MOD_GREASE_PENCIL_WEIGHT_ANGLE_SPACE_LOCAL
static void rna_def_modifier_grease_pencil_multiply(BlenderRNA *brna)
static void rna_def_modifier_lattice(BlenderRNA *brna)
static void rna_def_modifier_grease_pencil_weight_angle(BlenderRNA *brna)
@ GEO_NODE_ASSET_MODIFIER
@ GREASE_PENCIL_INFLUENCE_INVERT_MATERIAL_PASS_FILTER
@ GREASE_PENCIL_INFLUENCE_USE_LAYER_PASS_FILTER
@ GREASE_PENCIL_INFLUENCE_INVERT_LAYER_FILTER
@ GREASE_PENCIL_INFLUENCE_INVERT_MATERIAL_FILTER
@ GREASE_PENCIL_INFLUENCE_USE_MATERIAL_PASS_FILTER
@ GREASE_PENCIL_INFLUENCE_INVERT_VERTEX_GROUP
@ GREASE_PENCIL_INFLUENCE_INVERT_LAYER_PASS_FILTER
@ GREASE_PENCIL_INFLUENCE_USE_CUSTOM_CURVE
@ GREASE_PENCIL_INFLUENCE_USE_LAYER_GROUP_FILTER
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
MINLINE int max_ii(int a, int b)
@ MOD_GREASE_PENCIL_TEXTURE_FILL
@ MOD_GREASE_PENCIL_TEXTURE_STROKE_AND_FILL
@ MOD_GREASE_PENCIL_TEXTURE_STROKE
@ MOD_SMOOTH_INVERT_VGROUP
@ RNA_OVERRIDE_COMPARE_CREATE
static void rna_def_modifier_grease_pencil_envelope(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_SUBDIV_CATMULL
@ MOD_GREASE_PENCIL_SUBDIV_SIMPLE
const char * BKE_id_name(const ID &id)
static void rna_def_modifier_grease_pencil_noise(BlenderRNA *brna)
@ eWarp_Falloff_InvSquare
static void rna_def_modifier_mesh_to_volume(BlenderRNA *brna)
const EnumPropertyItem rna_enum_shrinkwrap_type_items[]
static void rna_def_modifier_softbody(BlenderRNA *brna)
static void rna_def_modifier_subsurf(BlenderRNA *brna)
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
@ MOD_GREASE_PENCIL_WEIGHT_PROXIMITY_MULTIPLY_DATA
@ MOD_GREASE_PENCIL_WEIGHT_PROXIMITY_INVERT_OUTPUT
static void rna_def_modifier_array(BlenderRNA *brna)
@ eBooleanModifierBMeshFlag_BMesh_NoDissolve
@ eBooleanModifierBMeshFlag_BMesh_Separate
@ eBooleanModifierBMeshFlag_BMesh_NoConnectRegions
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ MOD_GREASE_PENCIL_TIME_KEEP_LOOP
@ MOD_GREASE_PENCIL_TIME_CUSTOM_RANGE
@ MOD_GREASE_PENCIL_OUTLINE_KEEP_SHAPE
@ eBooleanModifierOp_Union
@ eBooleanModifierOp_Intersect
@ eBooleanModifierOp_Difference
@ MOD_SOLIDIFY_NONMANIFOLD_OFFSET_MODE_FIXED
@ MOD_SOLIDIFY_NONMANIFOLD_OFFSET_MODE_EVEN
@ MOD_SOLIDIFY_NONMANIFOLD_OFFSET_MODE_CONSTRAINTS
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
@ MOD_GREASE_PENCIL_ARRAY_USE_OB_OFFSET
@ MOD_GREASE_PENCIL_ARRAY_USE_OFFSET
@ MOD_GREASE_PENCIL_ARRAY_UNIFORM_RANDOM_SCALE
@ MOD_GREASE_PENCIL_ARRAY_USE_RELATIVE
@ MOD_GREASE_PENCIL_OFFSET_UNIFORM_RANDOM_SCALE
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_NO_COMPARISON
@ MOD_MIR_BISECT_FLIP_AXIS_X
@ MOD_SOLIDIFY_NONMANIFOLD_BOUNDARY_MODE_FLAT
@ MOD_SOLIDIFY_NONMANIFOLD_BOUNDARY_MODE_ROUND
@ MOD_SOLIDIFY_NONMANIFOLD_BOUNDARY_MODE_NONE
static void rna_def_modifier_displace(BlenderRNA *brna)
int rna_object_vgroup_name_index_length(PointerRNA *ptr, int index)
static void rna_def_modifier_grease_pencil_subdiv(BlenderRNA *brna)
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void BKE_animdata_fix_paths(ID &id, StringRef prefix, StringRef old_infix, StringRef new_infix, bool verify_paths, const DriverMap &driver_map)
@ MOD_DATATRANSFER_USE_LOOP
@ MOD_DATATRANSFER_USE_EDGE
@ MOD_DATATRANSFER_INVERT_VGROUP
@ MOD_DATATRANSFER_USE_POLY
@ MOD_DATATRANSFER_OBSRC_TRANSFORM
@ MOD_DATATRANSFER_USE_VERT
@ MOD_DATATRANSFER_MAP_MAXDIST
@ LINEART_SILHOUETTE_FILTER_NONE
@ LINEART_SILHOUETTE_FILTER_INDIVIDUAL
@ LINEART_SILHOUETTE_FILTER_GROUP
@ LINEART_GPENCIL_INTERSECTION_MATCH
@ LINEART_GPENCIL_MATERIAL_MASK_MATCH
@ LINEART_GPENCIL_MATERIAL_MASK_ENABLE
static void rna_def_modifier_grease_pencil_armature(BlenderRNA *brna)
void BKE_modifier_unique_name(ListBaseT< ModifierData > *modifiers, ModifierData *md)
void rna_property_override_diff_default(Main *bmain, RNAPropertyOverrideDiffContext &rnadiff_ctx)
@ GP_LENGTH_INVERT_CURVATURE
@ GP_LENGTH_USE_CURVATURE
PropertyRNA * RNA_def_float_factor(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
void BKE_fluid_modifier_free(struct FluidModifierData *fmd)
size_t void BLI_uniquename_cb(FunctionRef< bool(StringRefNull)> unique_check, const char *defname, char delim, char *name, size_t name_maxncpy) ATTR_NONNULL(2
@ MOD_GREASE_PENCIL_SIMPLIFY_MERGE
@ MOD_GREASE_PENCIL_SIMPLIFY_ADAPTIVE
@ MOD_GREASE_PENCIL_SIMPLIFY_SAMPLE
@ MOD_GREASE_PENCIL_SIMPLIFY_FIXED
static void rna_def_modifier_generic_map_info(StructRNA *srna)
@ MOD_MESHCACHE_PLAY_CFEA
@ MOD_MESHCACHE_PLAY_EVAL
@ MOD_GREASE_PENCIL_ENVELOPE_FILLS
@ MOD_GREASE_PENCIL_ENVELOPE_SEGMENTS
@ MOD_GREASE_PENCIL_ENVELOPE_DEFORM
static void rna_def_modifier_grease_pencil_offset(BlenderRNA *brna)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void rna_def_modifier_smooth(BlenderRNA *brna)
static void rna_def_modifier_skin(BlenderRNA *brna)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void rna_def_modifier_weightednormal(BlenderRNA *brna)
void multires_force_external_reload(Object *object)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
@ MOD_GREASE_PENCIL_SMOOTH_SMOOTH_ENDS
@ MOD_GREASE_PENCIL_SMOOTH_MOD_UV
@ MOD_GREASE_PENCIL_SMOOTH_MOD_STRENGTH
@ MOD_GREASE_PENCIL_SMOOTH_MOD_LOCATION
@ MOD_GREASE_PENCIL_SMOOTH_KEEP_SHAPE
@ MOD_GREASE_PENCIL_SMOOTH_MOD_THICKNESS
@ eSubsurfModifierFlag_UseCrease
@ eSubsurfModifierFlag_UseRecursiveSubdivision
@ eSubsurfModifierFlag_UseCustomNormals
@ eSubsurfModifierFlag_ControlEdges
@ eSubsurfModifierFlag_UseAdaptiveSubdivision
static void rna_def_modifier_mirror(BlenderRNA *brna)
static void rna_def_modifier_screw(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_BUILD_TRANSITION_GROW
@ MOD_GREASE_PENCIL_BUILD_TRANSITION_SHRINK
@ MOD_GREASE_PENCIL_BUILD_TRANSITION_VANISH
static void rna_def_modifier_grease_pencil_outline(BlenderRNA *brna)
@ PROP_STRING_SEARCH_SUGGESTION
@ MOD_WVG_PROXIMITY_INVERT_VGROUP_MASK
@ MOD_WVG_PROXIMITY_WEIGHTS_NORMALIZE
@ MOD_WVG_PROXIMITY_GEOM_EDGES
@ MOD_WVG_PROXIMITY_GEOM_FACES
@ MOD_WVG_PROXIMITY_GEOM_VERTS
@ MOD_WVG_PROXIMITY_INVERT_FALLOFF
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
@ MOD_GREASE_PENCIL_TINT_GRADIENT
@ MOD_GREASE_PENCIL_TINT_UNIFORM
static void rna_def_modifier_warp(BlenderRNA *brna)
@ MOD_SHRINKWRAP_ABOVE_SURFACE
@ MOD_SHRINKWRAP_OUTSIDE_SURFACE
@ MOD_SHRINKWRAP_ON_SURFACE
const EnumPropertyItem rna_enum_dt_method_edge_items[]
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)
@ eModifierMode_ApplyOnSpline
@ MOD_GREASE_PENCIL_TIME_MODE_REVERSE
@ MOD_GREASE_PENCIL_TIME_MODE_PINGPONG
@ MOD_GREASE_PENCIL_TIME_MODE_FIX
@ MOD_GREASE_PENCIL_TIME_MODE_NORMAL
@ MOD_GREASE_PENCIL_TIME_MODE_CHAIN
@ MOD_SKIN_SMOOTH_SHADING
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)
@ MOD_GREASE_PENCIL_BUILD_USE_FADING
@ MOD_GREASE_PENCIL_BUILD_RESTRICT_TIME
static void rna_def_modifier_nodes_properties(BlenderRNA *brna)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
static void rna_def_modifier_mask(BlenderRNA *brna)
Object * BKE_object_pose_armature_get(Object *ob)
const EnumPropertyItem rna_enum_modifier_triangulate_quad_method_items[]
@ VOLUME_TO_MESH_USE_SMOOTH_SHADE
static void rna_def_modifier_grease_pencil_color(BlenderRNA *brna)
T * DEG_get_evaluated(const Depsgraph *depsgraph, T *id)
@ MOD_TRIANGULATE_NGON_EARCLIP
@ MOD_TRIANGULATE_NGON_BEAUTY
static void rna_def_modifier_boolean(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_OFFSET_RANDOM
@ MOD_GREASE_PENCIL_OFFSET_STROKE
@ MOD_GREASE_PENCIL_OFFSET_MATERIAL
@ MOD_GREASE_PENCIL_OFFSET_LAYER
@ MOD_LAPLACIANSMOOTH_NORMALIZED
@ MOD_LAPLACIANSMOOTH_INVERT_VGROUP
@ MOD_LAPLACIANSMOOTH_PRESERVE_VOLUME
@ NODES_MODIFIER_BAKE_MODE_ANIMATION
@ NODES_MODIFIER_BAKE_MODE_STILL
static void rna_def_modifier_volume_displace(BlenderRNA *brna)
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C, bool rna_write_check=false)
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)
const EnumPropertyItem rna_enum_object_axis_items[]
static void rna_def_modifier_grease_pencil_length(BlenderRNA *brna)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
@ MOD_BEVEL_HARDEN_NORMALS
@ MOD_BEVEL_INVERT_VGROUP
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
@ eParticleInstanceSpace_World
@ eParticleInstanceSpace_Local
bool BKE_object_data_transfer_get_dttypes_capacity(int dtdata_types, bool *r_advanced_mixing, bool *r_threshold)
@ eBooleanModifierMaterialMode_Transfer
@ eBooleanModifierMaterialMode_Index
@ DT_LAYERS_VGROUP_SRC_BONE_SELECT
@ DT_LAYERS_VGROUP_SRC_BONE_DEFORM
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
static void rna_def_modifier_solidify(BlenderRNA *brna)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
const EnumPropertyItem rna_enum_dt_method_poly_items[]
const EnumPropertyItem rna_enum_shrinkwrap_face_cull_items[]
@ MOD_EDGESPLIT_FROMANGLE
static void rna_def_modifier_grease_pencil_dash_segment(BlenderRNA *brna)
const EnumPropertyItem rna_enum_mesh_delimit_mode_items[]
@ MOD_GREASE_PENCIL_HOOK_UNIFORM_SPACE
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
@ MOD_REMESH_SHARP_FEATURES
@ MOD_SCREW_OBJECT_OFFSET
@ MOD_SCREW_SMOOTH_SHADING
void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item, int value)
@ MOD_SIMPLEDEFORM_FLAG_INVERT_VGROUP
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
int BKE_object_material_index_get(Object *ob, const Material *ma)
@ MOD_CAST_SIZE_FROM_RADIUS
@ MOD_CAST_USE_OB_TRANSFORM
@ GP_BUILD_MODE_CONCURRENT
static void rna_def_modifier_hook(BlenderRNA *brna)
@ LINEART_SHADOW_FILTER_SHADED
@ LINEART_SHADOW_FILTER_ILLUMINATED_ENCLOSED_SHAPES
@ LINEART_SHADOW_FILTER_NONE
@ LINEART_SHADOW_FILTER_ILLUMINATED
static void rna_def_modifier_grease_pencil_lineart(BlenderRNA *brna)
@ MOD_WVG_EDIT_INVERT_VGROUP_MASK
@ MOD_WVG_EDIT_WEIGHTS_NORMALIZE
@ MOD_NORMALEDIT_MIX_COPY
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
static void rna_def_modifier_surface(BlenderRNA *brna)
static void rna_def_modifier_weightvg_mask(BlenderRNA *, StructRNA *srna, const char *mask_flags, const int invert_vgroup_mask_flag, const char *mask_vgroup_setter, const char *mask_uvlayer_setter)
@ MOD_SIMPLEDEFORM_MODE_TWIST
@ MOD_SIMPLEDEFORM_MODE_BEND
@ MOD_SIMPLEDEFORM_MODE_TAPER
@ MOD_SIMPLEDEFORM_MODE_STRETCH
@ MOD_MESHSEQ_READ_ATTRIBUTES
@ MOD_MESHSEQ_INTERPOLATE_VERTICES
static void rna_def_modifier_uvwarp(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_TEXTURE_CONSTANT_LENGTH
@ MOD_GREASE_PENCIL_TEXTURE_FIT_STROKE
@ MOD_SHRINKWRAP_NEAREST_VERTEX
@ MOD_SHRINKWRAP_NEAREST_SURFACE
@ MOD_SHRINKWRAP_TARGET_PROJECT
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_modifier_weld(BlenderRNA *brna)
@ MOD_SHRINKWRAP_PROJECT_OVER_Y_AXIS
@ MOD_SHRINKWRAP_PROJECT_OVER_X_AXIS
@ MOD_SHRINKWRAP_PROJECT_OVER_Z_AXIS
@ MOD_SIMPLEDEFORM_LOCK_AXIS_X
@ MOD_SIMPLEDEFORM_LOCK_AXIS_Z
@ MOD_SIMPLEDEFORM_LOCK_AXIS_Y
static void rna_def_modifier_grease_pencil_simplify(BlenderRNA *brna)
static void rna_def_modifier_grease_pencil_mirror(BlenderRNA *brna)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
@ MOD_SOLIDIFY_MODE_NONMANIFOLD
@ MOD_SOLIDIFY_MODE_EXTRUDE
static void rna_def_modifier_nodes_bake(BlenderRNA *brna)
static void rna_def_modifier_grease_pencil_custom_curve(StructRNA *srna)
static void rna_def_modifier_nodes_bake_data_blocks(BlenderRNA *brna)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
@ MOD_OCEAN_GEOM_DISPLACE
@ MOD_OCEAN_GEOM_SIM_ONLY
@ MOD_OCEAN_GEOM_GENERATE
@ MOD_MESHCACHE_DEFORM_OVERWRITE
@ MOD_MESHCACHE_DEFORM_INTEGRATE
@ MOD_LINEART_EDGE_FLAG_PROJECTED_SHADOW
@ MOD_LINEART_EDGE_FLAG_EDGE_MARK
@ MOD_LINEART_EDGE_FLAG_LOOSE
@ MOD_LINEART_EDGE_FLAG_CREASE
@ MOD_LINEART_EDGE_FLAG_INTERSECTION
@ MOD_LINEART_EDGE_FLAG_LIGHT_CONTOUR
@ MOD_LINEART_EDGE_FLAG_CONTOUR
@ MOD_LINEART_EDGE_FLAG_MATERIAL
static const EnumPropertyItem modifier_warp_falloff_items[]
@ NODES_MODIFIER_BAKE_TARGET_PACKED
@ NODES_MODIFIER_BAKE_TARGET_INHERIT
@ NODES_MODIFIER_BAKE_TARGET_DISK
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
@ MOD_BEVEL_PROFILE_CUSTOM
@ MOD_BEVEL_PROFILE_SUPERELLIPSE
static void rna_def_property_subdivision_common(StructRNA *srna)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void rna_object_vgroup_name_index_set(PointerRNA *ptr, const char *value, short *index)
const EnumPropertyItem rna_enum_subdivision_boundary_smooth_items[]
const EnumPropertyItem rna_enum_dt_method_loop_items[]
@ MOD_GREASE_PENCIL_MIRROR_AXIS_X
@ MOD_GREASE_PENCIL_MIRROR_AXIS_Z
@ MOD_GREASE_PENCIL_MIRROR_AXIS_Y
static void rna_def_modifier_build(BlenderRNA *brna)
@ NODES_MODIFIER_HIDE_DATABLOCK_SELECTOR
@ NODES_MODIFIER_HIDE_MANAGE_PANEL
static void rna_def_modifier_surfacedeform(BlenderRNA *brna)
void RNA_def_property_override_clear_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
@ VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_AMOUNT
@ VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_SIZE
@ VOLUME_TO_MESH_RESOLUTION_MODE_GRID
void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem)
@ SUBSURF_TYPE_CATMULL_CLARK
static void rna_def_modifier_grease_pencil_layer_filter(StructRNA *srna)
static void rna_def_modifier_laplaciandeform(BlenderRNA *brna)
const char * CustomData_get_layer_name(const CustomData *data, eCustomDataType type, int n)
@ MOD_WVG_MIX_INVERT_VGROUP_MASK
@ MOD_WVG_MIX_INVERT_VGROUP_B
@ MOD_WVG_MIX_WEIGHTS_NORMALIZE
@ MOD_WVG_MIX_INVERT_VGROUP_A
IDOverrideLibraryProperty * BKE_lib_override_library_property_get(IDOverrideLibrary *liboverride, const char *rna_path, bool *r_created)
const EnumPropertyItem rna_enum_dt_layers_select_src_items[]
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
static void rna_def_modifier_volume_to_mesh(BlenderRNA *brna)
@ SUBSURF_BOUNDARY_SMOOTH_PRESERVE_CORNERS
@ SUBSURF_BOUNDARY_SMOOTH_ALL
@ MOD_TRIANGULATE_KEEP_CUSTOMLOOP_NORMALS
@ MOD_OCEAN_GENERATE_FOAM
@ MOD_OCEAN_GENERATE_NORMALS
@ MOD_OCEAN_GENERATE_SPRAY
@ PROP_PATH_SUPPORTS_TEMPLATES
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_modifier_grease_pencil_lattice(BlenderRNA *brna)
@ eMultiresModifierFlag_UseSculptBaseMesh
@ eMultiresModifierFlag_ControlEdges
@ eMultiresModifierFlag_UseCustomNormals
@ eMultiresModifierFlag_UseCrease
static void rna_def_modifier_multires(BlenderRNA *brna)
@ MOD_VOLUME_DISPLACE_MAP_GLOBAL
@ MOD_VOLUME_DISPLACE_MAP_LOCAL
@ MOD_VOLUME_DISPLACE_MAP_OBJECT
static void rna_def_modifier_dynamic_paint(BlenderRNA *brna)
@ MOD_WARP_VOLUME_PRESERVE
@ MOD_TRIANGULATE_QUAD_LONGEDGE
@ MOD_TRIANGULATE_QUAD_BEAUTY
@ MOD_TRIANGULATE_QUAD_ALTERNATE
@ MOD_TRIANGULATE_QUAD_SHORTEDGE
@ MOD_TRIANGULATE_QUAD_FIXED
static void rna_def_modifier_decimate(BlenderRNA *brna)
@ eModifierFlag_OverrideLibrary_Local
PropertyRNA * RNA_def_int_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
@ MOD_MESHCACHE_FLIP_AXIS_X
const EnumPropertyItem rna_enum_dt_method_vertex_items[]
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
const EnumPropertyItem rna_enum_prop_dynamicpaint_type_items[]
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
static void rna_def_modifier_grease_pencil_shrinkwrap(BlenderRNA *brna)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
@ MOD_BEVEL_FACE_STRENGTH_NONE
@ MOD_BEVEL_FACE_STRENGTH_ALL
@ MOD_BEVEL_FACE_STRENGTH_AFFECTED
@ MOD_BEVEL_FACE_STRENGTH_NEW
void DEG_relations_tag_update(Main *bmain)
@ MOD_CORRECTIVESMOOTH_ONLY_SMOOTH
@ MOD_CORRECTIVESMOOTH_PIN_BOUNDARY
@ MOD_CORRECTIVESMOOTH_INVERT_VGROUP
int BLI_sortutil_cmp_int(const void *a_, const void *b_)
@ LINEART_GPENCIL_USE_CACHE
@ LINEART_GPENCIL_OFFSET_TOWARDS_CUSTOM_CAMERA
@ LINEART_GPENCIL_INVERT_COLLECTION
@ LINEART_GPENCIL_IS_BAKED
@ LINEART_GPENCIL_INVERT_SILHOUETTE_FILTER
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
@ MOD_MESHCACHE_INTERP_LINEAR
@ MOD_MESHCACHE_INTERP_NONE
void nodes_modifier_packed_bake_free(NodesModifierPackedBake *packed_bake)
@ MOD_SHRINKWRAP_INVERT_VGROUP
@ MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR
@ MOD_SHRINKWRAP_CULL_TARGET_BACKFACE
@ MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR
@ MOD_SHRINKWRAP_CULL_TARGET_FRONTFACE
@ MOD_SHRINKWRAP_INVERT_CULL_TARGET
static void rna_def_modifier_particlesystem(BlenderRNA *brna)
const EnumPropertyItem rna_enum_modifier_triangulate_ngon_method_items[]
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
@ MOD_LINEART_USE_IMAGE_BOUNDARY_TRIMMING
@ MOD_LINEART_CHAIN_PRESERVE_DETAILS
@ MOD_LINEART_USE_BACK_FACE_CULLING
@ MOD_LINEART_FILTER_FACE_MARK
@ MOD_LINEART_ALLOW_CLIPPING_BOUNDARIES
@ MOD_LINEART_USE_CREASE_ON_SHARP_EDGES
@ MOD_LINEART_USE_CUSTOM_CAMERA
@ MOD_LINEART_ALLOW_DUPLI_OBJECTS
@ MOD_LINEART_CHAIN_GEOMETRY_SPACE
@ MOD_LINEART_FILTER_FACE_MARK_INVERT
@ MOD_LINEART_INVERT_SOURCE_VGROUP
@ MOD_LINEART_FILTER_FACE_MARK_BOUNDARIES
@ MOD_LINEART_MATCH_OUTPUT_VGROUP
@ MOD_LINEART_FILTER_FACE_MARK_KEEP_CONTOUR
@ MOD_LINEART_ALLOW_OVERLAP_EDGE_TYPES
@ MOD_LINEART_ALLOW_OVERLAPPING_EDGES
@ MOD_LINEART_CHAIN_LOOSE_EDGES
@ MOD_LINEART_INTERSECTION_AS_CONTOUR
@ MOD_LINEART_USE_CREASE_ON_SMOOTH_SURFACES
@ MOD_LINEART_LOOSE_AS_CONTOUR
@ MOD_LINEART_EVERYTHING_AS_CONTOUR
static void rna_def_modifier_simpledeform(BlenderRNA *brna)
static const EnumPropertyItem grease_pencil_build_time_mode_items[]
@ MOD_DECIM_MODE_DISSOLVE
@ MOD_DECIM_MODE_UNSUBDIV
@ MOD_DECIM_MODE_COLLAPSE
static void rna_def_modifier_grease_pencil_time(BlenderRNA *brna)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
static void rna_def_modifier_meshseqcache(BlenderRNA *brna)
void BKE_object_modifier_hook_reset(Object *ob, HookModifierData *hmd)
@ MOD_GREASE_PENCIL_THICK_NORMALIZE
@ MOD_GREASE_PENCIL_THICK_WEIGHT_FACTOR
@ MOD_SOLIDIFY_NORMAL_CALC
@ MOD_SOLIDIFY_NONMANIFOLD_FLAT_FACES
@ MOD_SOLIDIFY_OFFSET_ANGLE_CLAMP
@ MOD_SOLIDIFY_VGROUP_INV
@ MOD_REMESH_SMOOTH_SHADING
static void rna_def_modifier_bevel(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_DASH_USE_CYCLIC
void id_us_plus_no_lib(ID *id)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
Object * CTX_data_active_object(const bContext *C)
@ eBooleanModifierSolver_Float
@ eBooleanModifierSolver_Mesh_Arr
@ eBooleanModifierSolver_Manifold
@ MOD_BEVEL_AFFECT_VERTICES
static EnumPropertyItem bake_target_in_modifier_items[]
const ModifierTypeInfo * BKE_modifier_get_info(ModifierType type)
void RNA_def_property_array(PropertyRNA *prop, int length)
IDOverrideLibraryPropertyOperation * BKE_lib_override_library_property_operation_get(IDOverrideLibraryProperty *liboverride_property, eID_OverrideLib_Op operation, const char *subitem_refname, const char *subitem_locname, const std::optional< ID * > &subitem_refid, const std::optional< ID * > &subitem_locid, int subitem_refindex, int subitem_locindex, bool strict, bool *r_strict, bool *r_created)
static void rna_def_modifier_nodes_data_block(BlenderRNA *brna)
const int rna_matrix_dimsize_4x4[]
void BKE_fluid_modifier_create_type_data(struct FluidModifierData *fmd)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
static void rna_def_modifier_wireframe(BlenderRNA *brna)
@ MOD_BUILD_FLAG_RANDOMIZE
static void rna_def_modifier_ocean(BlenderRNA *brna)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
@ MESH_TO_VOLUME_RESOLUTION_MODE_VOXEL_AMOUNT
@ MESH_TO_VOLUME_RESOLUTION_MODE_VOXEL_SIZE
@ MOD_UVWARP_INVERT_VGROUP
static void rna_def_modifier_armature(BlenderRNA *brna)
@ MOD_GREASE_PENCIL_COLOR_FILL
@ MOD_GREASE_PENCIL_COLOR_HARDNESS
@ MOD_GREASE_PENCIL_COLOR_STROKE
@ MOD_GREASE_PENCIL_COLOR_BOTH
void RNA_def_property_string_search_func(PropertyRNA *prop, const char *search, const eStringPropertySearchFlag search_flag)
static void rna_def_modifier_weightvgmix(BlenderRNA *brna)
@ eParticleInstanceFlag_Path
@ eParticleInstanceFlag_Parents
@ eParticleInstanceFlag_Dead
@ eParticleInstanceFlag_Alive
@ eParticleInstanceFlag_Children
@ eParticleInstanceFlag_Unborn
@ eParticleInstanceFlag_KeepShape
@ eParticleInstanceFlag_UseSize
@ MOD_GREASE_PENCIL_TINT_USE_WEIGHT_AS_FACTOR
static void rna_def_modifier_meshcache(BlenderRNA *brna)
@ LINEART_SOURCE_COLLECTION
const EnumPropertyItem rna_enum_axis_xyz_items[]
Mesh * BKE_object_get_evaluated_mesh(const Object *object_eval)
void rna_object_vgroup_name_index_get(PointerRNA *ptr, char *value, int index)
static void rna_def_modifier_shrinkwrap(BlenderRNA *brna)
static EnumPropertyItem bake_target_in_node_items[]
@ MOD_WEIGHTEDNORMAL_MODE_FACE_ANGLE
@ MOD_WEIGHTEDNORMAL_MODE_FACE
@ MOD_WEIGHTEDNORMAL_MODE_ANGLE
static void rna_def_modifier_grease_pencil_tint(BlenderRNA *brna)
uint16_t layout_panel_open_flag
struct ModifierData * next
struct ModifierData * prev
struct IDProperty * system_properties
struct bNodeTree * node_group
bke::bNodeTreeRuntime * runtime