58 {
OB_MODE_OBJECT,
"OBJECT", ICON_OBJECT_DATAMODE,
"Object Mode",
""},
59 {
OB_MODE_EDIT,
"EDIT", ICON_EDITMODE_HLT,
"Edit Mode",
""},
61 {
OB_MODE_SCULPT,
"SCULPT", ICON_SCULPTMODE_HLT,
"Sculpt Mode",
""},
70 "Edit Grease Pencil Strokes"},
72 "SCULPT_GREASE_PENCIL",
75 "Sculpt Grease Pencil Strokes"},
77 "PAINT_GREASE_PENCIL",
80 "Paint Grease Pencil Strokes"},
82 "WEIGHT_GREASE_PENCIL",
85 "Grease Pencil Weight Paint Strokes"},
87 "VERTEX_GREASE_PENCIL",
90 "Grease Pencil Vertex Paint Strokes"},
92 {0,
nullptr, 0,
nullptr,
nullptr},
96 {
OB_MODE_OBJECT,
"OBJECT", ICON_OBJECT_DATAMODE,
"Object Mode",
""},
97 {
OB_MODE_EDIT,
"EDIT", ICON_EDITMODE_HLT,
"Edit Mode",
""},
99 {
OB_MODE_SCULPT,
"SCULPT", ICON_SCULPTMODE_HLT,
"Sculpt Mode",
""},
107 "Grease Pencil Edit Mode",
108 "Edit Grease Pencil Strokes"},
110 "SCULPT_GREASE_PENCIL",
112 "Grease Pencil Sculpt Mode",
113 "Sculpt Grease Pencil Strokes"},
115 "PAINT_GREASE_PENCIL",
117 "Grease Pencil Draw",
118 "Paint Grease Pencil Strokes"},
120 "VERTEX_GREASE_PENCIL",
122 "Grease Pencil Vertex Paint",
123 "Grease Pencil Vertex Paint Strokes"},
125 "WEIGHT_GREASE_PENCIL",
127 "Grease Pencil Weight Paint",
128 "Grease Pencil Weight Paint Strokes"},
129 {0,
nullptr, 0,
nullptr,
nullptr},
133 {
OB_PLAINAXES,
"PLAIN_AXES", ICON_EMPTY_AXIS,
"Plain Axes",
""},
134 {
OB_ARROWS,
"ARROWS", ICON_EMPTY_ARROWS,
"Arrows",
""},
135 {
OB_SINGLE_ARROW,
"SINGLE_ARROW", ICON_EMPTY_SINGLE_ARROW,
"Single Arrow",
""},
136 {
OB_CIRCLE,
"CIRCLE", ICON_MESH_CIRCLE,
"Circle",
""},
137 {
OB_CUBE,
"CUBE", ICON_CUBE,
"Cube",
""},
141 {0,
nullptr, 0,
nullptr,
nullptr},
148 {0,
nullptr, 0,
nullptr,
nullptr},
152 {
GP_EMPTY,
"EMPTY", ICON_EMPTY_AXIS,
"Blank",
"Create an empty grease pencil object"},
153 {
GP_STROKE,
"STROKE", ICON_STROKE,
"Stroke",
"Create a simple stroke with basic colors"},
154 {
GP_MONKEY,
"MONKEY", ICON_MONKEY,
"Monkey",
"Construct a Suzanne grease pencil object"},
160 "Quickly set up Line Art for the entire scene"},
162 "LINEART_COLLECTION",
163 ICON_OUTLINER_COLLECTION,
164 "Collection Line Art",
165 "Quickly set up Line Art for the active collection"},
170 "Quickly set up Line Art for the active object"},
171 {0,
nullptr, 0,
nullptr,
nullptr}};
174 {
PAROBJECT,
"OBJECT", 0,
"Object",
"The object is parented to an object"},
175 {
PARSKEL,
"ARMATURE", 0,
"Armature",
""},
177 {
PARSKEL,
"LATTICE", 0,
"Lattice",
"The object is parented to a lattice"},
178 {
PARVERT1,
"VERTEX", 0,
"Vertex",
"The object is parented to a vertex"},
179 {
PARVERT3,
"VERTEX_3", 0,
"3 Vertices",
""},
180 {
PARBONE,
"BONE", 0,
"Bone",
"The object is parented to a bone"},
181 {0,
nullptr, 0,
nullptr,
nullptr},
184#define INSTANCE_ITEMS_SHARED \
185 {0, "NONE", 0, "None", ""}, \
186 {OB_DUPLIVERTS, "VERTS", 0, "Vertices", "Instantiate child objects on all vertices"}, \
188 OB_DUPLIFACES, "FACES", 0, "Faces", "Instantiate child objects on all faces" \
191#define INSTANCE_ITEM_COLLECTION \
193 OB_DUPLICOLLECTION, "COLLECTION", 0, "Collection", "Enable collection instancing" \
198 {0,
nullptr, 0,
nullptr,
nullptr},
203 {0,
nullptr, 0,
nullptr,
nullptr},
207 {0,
"NONE", 0,
"None",
""},
209 {0,
nullptr, 0,
nullptr,
nullptr},
213 {0,
"NONE", 0,
"None",
""},
214 {
OB_DUPLIVERTS,
"VERTS", 0,
"Vertices",
"Use Object Font on characters"},
215 {0,
nullptr, 0,
nullptr,
nullptr},
218#undef INSTANCE_ITEMS_SHARED
219#undef INSTANCE_ITEM_COLLECTION
222 {
MB_BALL,
"BALL", ICON_META_BALL,
"Ball",
""},
223 {
MB_TUBE,
"CAPSULE", ICON_META_CAPSULE,
"Capsule",
""},
224 {
MB_PLANE,
"PLANE", ICON_META_PLANE,
"Plane",
""},
226 {
MB_ELIPSOID,
"ELLIPSOID", ICON_META_ELLIPSOID,
"Ellipsoid",
""},
227 {
MB_CUBE,
"CUBE", ICON_META_CUBE,
"Cube",
""},
228 {0,
nullptr, 0,
nullptr,
nullptr},
235 {0,
nullptr, 0,
nullptr,
nullptr},
239#define OBTYPE_CU_CURVE \
241 OB_CURVES_LEGACY, "CURVE", ICON_OUTLINER_OB_CURVE, "Curve", "" \
243#define OBTYPE_CU_SURF \
245 OB_SURF, "SURFACE", ICON_OUTLINER_OB_SURFACE, "Surface", "" \
247#define OBTYPE_CU_FONT \
249 OB_FONT, "FONT", ICON_OUTLINER_OB_FONT, "Text", "" \
253 {
OB_MESH,
"MESH", ICON_OUTLINER_OB_MESH,
"Mesh",
""},
256 {
OB_MBALL,
"META", ICON_OUTLINER_OB_META,
"Metaball",
""},
258 {
OB_CURVES,
"CURVES", ICON_OUTLINER_OB_CURVES,
"Hair Curves",
""},
259 {
OB_POINTCLOUD,
"POINTCLOUD", ICON_OUTLINER_OB_POINTCLOUD,
"Point Cloud",
""},
260 {
OB_VOLUME,
"VOLUME", ICON_OUTLINER_OB_VOLUME,
"Volume",
""},
261 {
OB_GPENCIL_LEGACY,
"GPENCIL", ICON_OUTLINER_OB_GREASEPENCIL,
"Grease Pencil",
""},
262 {
OB_GREASE_PENCIL,
"GREASEPENCIL", ICON_OUTLINER_OB_GREASEPENCIL,
"Grease Pencil v3",
""},
264 {
OB_ARMATURE,
"ARMATURE", ICON_OUTLINER_OB_ARMATURE,
"Armature",
""},
265 {
OB_LATTICE,
"LATTICE", ICON_OUTLINER_OB_LATTICE,
"Lattice",
""},
267 {
OB_EMPTY,
"EMPTY", ICON_OUTLINER_OB_EMPTY,
"Empty",
""},
269 {
OB_LAMP,
"LIGHT", ICON_OUTLINER_OB_LIGHT,
"Light",
""},
270 {
OB_LIGHTPROBE,
"LIGHT_PROBE", ICON_OUTLINER_OB_LIGHTPROBE,
"Light Probe",
""},
272 {
OB_CAMERA,
"CAMERA", ICON_OUTLINER_OB_CAMERA,
"Camera",
""},
274 {
OB_SPEAKER,
"SPEAKER", ICON_OUTLINER_OB_SPEAKER,
"Speaker",
""},
275 {0,
nullptr, 0,
nullptr,
nullptr},
282 {0,
nullptr, 0,
nullptr,
nullptr},
286 {
ROT_MODE_QUAT,
"QUATERNION", 0,
"Quaternion (WXYZ)",
"No Gimbal Lock"},
287 {
ROT_MODE_XYZ,
"XYZ", 0,
"XYZ Euler",
"XYZ Rotation Order - prone to Gimbal Lock (default)"},
288 {
ROT_MODE_XZY,
"XZY", 0,
"XZY Euler",
"XZY Rotation Order - prone to Gimbal Lock"},
289 {
ROT_MODE_YXZ,
"YXZ", 0,
"YXZ Euler",
"YXZ Rotation Order - prone to Gimbal Lock"},
290 {
ROT_MODE_YZX,
"YZX", 0,
"YZX Euler",
"YZX Rotation Order - prone to Gimbal Lock"},
291 {
ROT_MODE_ZXY,
"ZXY", 0,
"ZXY Euler",
"ZXY Rotation Order - prone to Gimbal Lock"},
292 {
ROT_MODE_ZYX,
"ZYX", 0,
"ZYX Euler",
"ZYX Rotation Order - prone to Gimbal Lock"},
297 "Axis Angle (W+XYZ), defines a rotation around some axis defined by 3D-Vector"},
298 {0,
nullptr, 0,
nullptr,
nullptr},
302 {
OB_POSX,
"POS_X", 0,
"+X",
""},
303 {
OB_POSY,
"POS_Y", 0,
"+Y",
""},
304 {
OB_POSZ,
"POS_Z", 0,
"+Z",
""},
305 {
OB_NEGX,
"NEG_X", 0,
"-X",
""},
306 {
OB_NEGY,
"NEG_Y", 0,
"-Y",
""},
307 {
OB_NEGZ,
"NEG_Z", 0,
"-Z",
""},
308 {0,
nullptr, 0,
nullptr,
nullptr},
315# include <fmt/format.h>
366 rna_Object_internal_update(bmain, scene,
ptr);
378static void rna_Object_duplicator_visibility_flag_update(
Main * ,
405static void rna_Object_matrix_world_get(
PointerRNA *
ptr,
float *values)
408 std::copy_n(ob->object_to_world().base_ptr(), 16, values);
411static void rna_Object_matrix_world_set(
PointerRNA *
ptr,
const float *values)
417static void rna_Object_matrix_local_get(
PointerRNA *
ptr,
float values[16])
423static void rna_Object_matrix_local_set(
PointerRNA *
ptr,
const float values[16])
426 float local_mat[4][4];
434 mul_m4_m4m4(local_mat, invmat, (
float(*)[4])values);
445static void rna_Object_matrix_basis_get(
PointerRNA *
ptr,
float values[16])
451static void rna_Object_matrix_basis_set(
PointerRNA *
ptr,
const float values[16])
465 rna_Object_internal_update_data_impl(
ptr);
471 rna_Object_internal_update_data_impl(
ptr);
483 BMEditMesh *em = mesh->runtime->edit_mesh.get();
487 em = mesh->runtime->edit_mesh.get();
506 rna_Object_internal_update_data_impl(
ptr);
518 rna_Object_internal_update_data_dependency(bmain, scene,
ptr);
535 ID *
id =
static_cast<ID *
>(value.data);
549 "Can only assign evaluated data to evaluated object, or original data to "
560 if (!
id ||
GS(id->name) ==
ID_IM) {
606 return &RNA_MetaBall;
614 return &RNA_Armature;
618 return &RNA_LightProbe;
620 return &RNA_GreasePencil;
622 return &RNA_GreasePencilv3;
626 return &RNA_PointCloud;
657static bool rna_Object_parent_override_apply(
Main *bmain,
665 const int len_dst = rnaapply_ctx.
len_src;
666 const int len_src = rnaapply_ctx.
len_src;
670 BLI_assert(len_dst == len_src && (!ptr_storage || len_dst == len_storage) && len_dst == 0);
672 "Unsupported RNA override operation on object parent pointer");
681 if (parent_src == parent_dst) {
685 if (parent_src ==
nullptr) {
696static void rna_Object_parent_type_set(
PointerRNA *
ptr,
int value)
709static bool rna_Object_parent_type_override_apply(
Main *bmain,
717 const int len_dst = rnaapply_ctx.
len_src;
718 const int len_src = rnaapply_ctx.
len_src;
722 BLI_assert(len_dst == len_src && (!ptr_storage || len_dst == len_storage) && len_dst == 0);
724 "Unsupported RNA override operation on object parent pointer");
733 if (parent_type_dst == parent_type_src) {
778static void rna_Object_empty_display_type_set(
PointerRNA *
ptr,
int value)
785static void rna_Object_parent_bone_set(
PointerRNA *
ptr,
const char *value)
792static bool rna_Object_parent_bone_override_apply(
Main *bmain,
800 const int len_dst = rnaapply_ctx.
len_src;
801 const int len_src = rnaapply_ctx.
len_src;
805 BLI_assert(len_dst == len_src && (!ptr_storage || len_dst == len_storage) && len_dst == 0);
807 "Unsupported RNA override operation on object parent bone property");
818 if (
STREQ(parent_bone_src, parent_bone_dst)) {
836 item = instance_items_empty;
839 item = instance_items_font;
842 item = instance_items_nogroup;
871 "Cannot set instance-collection as object belongs in collection being instanced, thus "
880 rna_Object_internal_update_data_impl(
ptr);
892 iter->
valid = defbase !=
nullptr;
897static void rna_VertexGroup_name_set(
PointerRNA *
ptr,
const char *value)
932static void rna_Object_active_vertex_group_set(
PointerRNA *
ptr,
947 "VertexGroup '%s' not found in object '%s'",
956static int rna_Object_active_vertex_group_index_get(
PointerRNA *
ptr)
966static void rna_Object_active_vertex_group_index_set(
PointerRNA *
ptr,
int value)
976static void rna_Object_active_vertex_group_index_range(
1002 strcpy(value, dg->
name);
1018 return (dg) ? strlen(dg->
name) : 0;
1064 mesh =
static_cast<Mesh *
>(ob->
data);
1066 for (a = 0; a < mesh->corner_data.totlayer; a++) {
1090 mesh =
static_cast<Mesh *
>(ob->
data);
1092 for (a = 0; a < mesh->fdata_legacy.totlayer; a++) {
1095 if (layer->type ==
CD_MCOL &&
STREQ(layer->name, value)) {
1105static int rna_Object_active_material_index_get(
PointerRNA *
ptr)
1108 return std::max<int>(ob->
actcol - 1, 0);
1111static void rna_Object_active_material_index_set(
PointerRNA *
ptr,
int value)
1115 value = std::max(std::min(value, ob->
totcol - 1), 0);
1121 if (mesh->runtime->edit_mesh) {
1122 mesh->
runtime->edit_mesh->mat_nr = value;
1127static void rna_Object_active_material_index_range(
1163static int rna_Object_active_material_editable(
const PointerRNA *
ptr,
const char ** )
1178static void rna_Object_active_particle_system_index_range(
1186static int rna_Object_active_particle_system_index_get(
PointerRNA *
ptr)
1192static void rna_Object_active_particle_system_index_set(
PointerRNA *
ptr,
int value)
1211static void rna_Object_rotation_axis_angle_get(
PointerRNA *
ptr,
float *value)
1221static void rna_Object_rotation_axis_angle_set(
PointerRNA *
ptr,
const float *value)
1232static void rna_Object_rotation_mode_set(
PointerRNA *
ptr,
int value)
1244static void rna_Object_dimensions_get(
PointerRNA *
ptr,
float *value)
1250static void rna_Object_dimensions_set(
PointerRNA *
ptr,
const float *value)
1256static int rna_Object_location_editable(
const PointerRNA *
ptr,
int index)
1275static int rna_Object_scale_editable(
const PointerRNA *
ptr,
int index)
1294static int rna_Object_rotation_euler_editable(
const PointerRNA *
ptr,
int index)
1313static int rna_Object_rotation_4d_editable(
const PointerRNA *
ptr,
int index)
1345 return rna_MaterialSlot_index(
ptr);
1348static int rna_MaterialSlot_material_editable(
const PointerRNA *
ptr,
const char ** )
1351 const int index = rna_MaterialSlot_index(
ptr);
1368 const int index = rna_MaterialSlot_index(
ptr);
1384 int index = rna_MaterialSlot_index(
ptr);
1410 int index = rna_MaterialSlot_index(
ptr);
1411 if (index < ob->totcol) {
1412 return ob->
matbits[index] != 0;
1417static void rna_MaterialSlot_link_set(
PointerRNA *
ptr,
int value)
1420 int index = rna_MaterialSlot_index(
ptr);
1438 int index = rna_MaterialSlot_index(
ptr);
1443 return strlen(ma->
id.
name + 2);
1449static void rna_MaterialSlot_name_get(
PointerRNA *
ptr,
char *value)
1453 int index = rna_MaterialSlot_index(
ptr);
1458 strcpy(value, ma->
id.
name + 2);
1467 rna_Object_internal_update(bmain, scene,
ptr);
1474static std::optional<std::string> rna_MaterialSlot_path(
const PointerRNA *
ptr)
1476 int index = rna_MaterialSlot_index(
ptr);
1477 return fmt::format(
"material_slots[{}]", index);
1493 const int length = rna_Object_material_slots_length(
ptr);
1496 iter->
valid = length > 0;
1501 const int length = rna_Object_material_slots_length(&iter->
ptr);
1524static std::optional<std::string> rna_ObjectDisplay_path(
const PointerRNA * )
1536static void rna_Object_active_shape_key_index_range(
1554static int rna_Object_active_shape_key_index_get(
PointerRNA *
ptr)
1558 return std::max<int>(ob->
shapenr - 1, 0);
1561static void rna_Object_active_shape_key_index_set(
PointerRNA *
ptr,
int value)
1574 if (key ==
nullptr) {
1608static void rna_Object_active_constraint_set(
PointerRNA *
ptr,
1629static void rna_Object_constraints_remove(
Object *
object,
1638 "Constraint '%s' not found in object '%s'",
1640 object->id.name + 2);
1652static void rna_Object_constraints_clear(
Object *
object,
Main *bmain)
1662static void rna_Object_constraints_move(
1670 BKE_reportf(reports,
RPT_ERROR,
"Could not move constraint from index '%d' to '%d'", from, to);
1690bool rna_Object_constraints_override_apply(
Main *bmain,
1699 "Unsupported RNA override operation on constraints collection");
1718 if (con_src ==
nullptr) {
1748static void rna_Object_modifier_remove(
Object *
object,
1766static void rna_Object_modifier_clear(
Object *
object,
bContext *C)
1773static void rna_Object_modifier_move(
Object *
object,
ReportList *reports,
int from,
int to)
1806 reports,
RPT_ERROR,
"Modifier \"%s\" is not in the object's modifier list", md->
name);
1813bool rna_Object_modifiers_override_apply(
Main *bmain,
1822 "Unsupported RNA override operation on modifiers collection");
1841 if (mod_src ==
nullptr) {
1850 nullptr, bmain,
nullptr, ob_dst, mod_src->
name, mod_src->
type);
1852 if (mod_dst ==
nullptr) {
1864 if (mod_dst ==
nullptr) {
1883 psys_dst->
flag &= ~PSYS_DELETE;
1904static void rna_Object_shaderfx_remove(
Object *
object,
1920static void rna_Object_shaderfx_clear(
Object *
object,
bContext *C)
1926static void rna_Object_boundbox_get(
PointerRNA *
ptr,
float *values)
1933 memcpy(values, bb.
vec,
sizeof(bb.
vec));
1940static bool check_object_vgroup_support_and_warn(
const Object *ob,
1941 const char *op_name,
1945 const char *ob_type_name =
"Unknown";
1947 BKE_reportf(reports,
RPT_ERROR,
"%s is not supported for '%s' objects", op_name, ob_type_name);
1958 if (!check_object_vgroup_support_and_warn(ob,
"VertexGroups.new()", reports)) {
1970static void rna_Object_vgroup_remove(
Object *ob,
1975 if (!check_object_vgroup_support_and_warn(ob,
"VertexGroups.remove()", reports)) {
1985 "DeformGroup '%s' not in object '%s'",
2000 if (!check_object_vgroup_support_and_warn(ob,
"VertexGroups.clear()", reports)) {
2010static void rna_VertexGroup_vertex_add(
ID *
id,
2022 reports,
RPT_ERROR,
"VertexGroup.add(): cannot be called while object is in edit mode");
2026 while (index_num--) {
2035static void rna_VertexGroup_vertex_remove(
2042 reports,
RPT_ERROR,
"VertexGroup.remove(): cannot be called while object is in edit mode");
2046 while (index_num--) {
2057 reinterpret_cast<Object *
>(
id), dg, index);
2083 return (
reinterpret_cast<Object *
>(value.owner_id))->type ==
OB_MESH;
2088 return (
reinterpret_cast<Object *
>(value.owner_id))->type ==
OB_CAMERA;
2093 return (
reinterpret_cast<Object *
>(value.owner_id))->type ==
OB_LAMP;
2101bool rna_Object_use_dynamic_topology_sculpting_get(
PointerRNA *
ptr)
2112static std::optional<std::string> rna_ObjectLineArt_path(
const PointerRNA * )
2157 mesh->symmetry &= ~sym;
2161static void rna_Object_mesh_symmetry_x_set(
PointerRNA *
ptr,
bool value)
2166static void rna_Object_mesh_symmetry_y_set(
PointerRNA *
ptr,
bool value)
2171static void rna_Object_mesh_symmetry_z_set(
PointerRNA *
ptr,
bool value)
2176static int rna_Object_mesh_symmetry_yz_editable(
const PointerRNA *
ptr,
const char ** )
2195 char value_buf[
sizeof(lgm->
name)];
2197 memcpy(value, value_buf,
len + 1);
2206void rna_Object_lightgroup_set(
PointerRNA *
ptr,
const char *value)
2216static std::optional<std::string> rna_ObjectLightLinking_path(
const PointerRNA * )
2218 return "light_linking";
2226 return collection_ptr;
2229static void rna_LightLinking_receiver_collection_set(
PointerRNA *
ptr,
2244 return collection_ptr;
2247static void rna_LightLinking_blocker_collection_set(
PointerRNA *
ptr,
2278 {0,
nullptr, 0,
nullptr,
nullptr},
2284 srna,
"Vertex Group",
"Group of vertices, used for armature deform and other purposes");
2310 parm =
RNA_def_int_array(func,
"index", 1,
nullptr, 0, 0,
"",
"List of indices", 0, 0);
2312 parm =
RNA_def_float(func,
"weight", 0, 0.0f, 1.0f,
"",
"Vertex weight", 0.0f, 1.0f);
2314 parm =
RNA_def_enum(func,
"type", assign_mode_items, 0,
"",
"Vertex assign mode");
2321 parm =
RNA_def_int_array(func,
"index", 1,
nullptr, 0, 0,
"",
"List of indices", 0, 0);
2327 parm =
RNA_def_int(func,
"index", 0, 0, INT_MAX,
"Index",
"The index of the vertex", 0, INT_MAX);
2329 parm =
RNA_def_float(func,
"weight", 0, 0.0f, 1.0f,
"",
"Vertex weight", 0.0f, 1.0f);
2339 {1,
"OBJECT", ICON_OBJECT_DATAMODE,
"Object",
""},
2340 {0,
"DATA", ICON_MESH_DATA,
"Data",
""},
2341 {0,
nullptr, 0,
nullptr,
nullptr},
2360 prop,
"rna_MaterialSlot_link_get",
"rna_MaterialSlot_link_set",
nullptr);
2369 "rna_MaterialSlot_material_get",
2370 "rna_MaterialSlot_material_set",
2372 "rna_MaterialSlot_material_poll");
2382 prop,
"rna_MaterialSlot_name_get",
"rna_MaterialSlot_name_length",
nullptr);
2411 "rna_Object_active_constraint_get",
2412 "rna_Object_active_constraint_set",
2427 parm =
RNA_def_pointer(func,
"constraint",
"Constraint",
"",
"New constraint");
2434 parm =
RNA_def_pointer(func,
"constraint",
"Constraint",
"",
"Removed constraint");
2446 func,
"from_index", -1, INT_MIN, INT_MAX,
"From Index",
"Index to move", 0, 10000);
2448 parm =
RNA_def_int(func,
"to_index", -1, INT_MIN, INT_MAX,
"To Index",
"Target index", 0, 10000);
2459 "Constraint to copy - may belong to a different object");
2463 parm =
RNA_def_pointer(func,
"new_constraint",
"Constraint",
"",
"New constraint");
2489 prop,
nullptr,
"rna_Armature_act_edit_bone_set",
nullptr,
nullptr);
2499 parm =
RNA_def_string(func,
"name",
"Name", 0,
"",
"New name for the modifier");
2506 parm =
RNA_def_pointer(func,
"modifier",
"Modifier",
"",
"Newly created modifier");
2514 parm =
RNA_def_pointer(func,
"modifier",
"Modifier",
"",
"Modifier to remove");
2528 func,
"from_index", -1, INT_MIN, INT_MAX,
"From Index",
"Index to move", 0, 10000);
2530 parm =
RNA_def_int(func,
"to_index", -1, INT_MIN, INT_MAX,
"To Index",
"Target index", 0, 10000);
2537 prop,
"rna_Object_active_modifier_get",
"rna_Object_active_modifier_set",
nullptr,
nullptr);
2562 parm =
RNA_def_string(func,
"name",
"Name", 0,
"",
"New name for the effect");
2569 parm =
RNA_def_pointer(func,
"shader_fx",
"ShaderFx",
"",
"Newly created effect");
2577 parm =
RNA_def_pointer(func,
"shader_fx",
"ShaderFx",
"",
"Effect to remove");
2605 prop,
"rna_Object_active_particle_system_get",
nullptr,
nullptr,
nullptr);
2607 prop,
"Active Particle System",
"Active particle system being displayed");
2613 "rna_Object_active_particle_system_index_get",
2614 "rna_Object_active_particle_system_index_set",
2615 "rna_Object_active_particle_system_index_range");
2617 prop,
"Active Particle System Index",
"Index of active particle system slot");
2639 "rna_Object_active_vertex_group_get",
2640 "rna_Object_active_vertex_group_set",
2650 "rna_Object_active_vertex_group_index_get",
2651 "rna_Object_active_vertex_group_index_set",
2652 "rna_Object_active_vertex_group_index_range");
2654 prop,
"Active Vertex Group Index",
"Active index in vertex group array");
2661 RNA_def_string(func,
"name",
"Group", 0,
"",
"Vertex group name");
2662 parm =
RNA_def_pointer(func,
"group",
"VertexGroup",
"",
"New vertex group");
2668 parm =
RNA_def_pointer(func,
"group",
"VertexGroup",
"",
"Vertex group to remove");
2705 {
OBJECT_LRT_INHERIT,
"INHERIT", 0,
"Inherit",
"Use settings from the parent collection"},
2710 "Generate feature lines for this object's data"},
2715 "Only use the object data to produce occlusion"},
2720 "Don't use this object for Line Art rendering"},
2722 "INTERSECTION_ONLY",
2724 "Intersection Only",
2725 "Only generate intersection lines for this collection"},
2730 "Include this object but do not generate intersection lines"},
2732 "FORCE_INTERSECTION",
2734 "Force Intersection",
2735 "Generate intersection lines even with objects that disabled intersection"},
2736 {0,
nullptr, 0,
nullptr,
nullptr},
2752 prop,
"Use Crease",
"Use this object's crease setting to overwrite scene global");
2765 "Use Intersection Priority",
2766 "Use this object's intersection priority to override collection setting");
2772 "Intersection Priority",
2773 "The intersection line will be included into the object with the "
2774 "higher intersection priority value");
2810 prop,
"Disable in Spherical Light Probes",
"Globally disable in spherical light probes");
2816 prop,
"Disable in Planar Light Probes",
"Globally disable in planar light probes");
2824 prop,
NC_OBJECT |
ND_DRAW,
"rna_Object_duplicator_visibility_flag_update");
2831 prop,
NC_OBJECT |
ND_DRAW,
"rna_Object_duplicator_visibility_flag_update");
2852 prop,
"Transmission Visibility",
"Object visibility to transmission rays");
2858 prop,
"Volume Scatter Visibility",
"Object visibility to volume scattering rays");
2872 "Render objects as a holdout or matte, creating a hole in the image with zero alpha, to "
2873 "fill out in compositing with real footage or another render");
2881 "Only render shadows and reflections on this object, for compositing renders into real "
2882 "footage. Objects with this setting are considered to already exist in the footage, "
2883 "objects without it are synthetic objects being composited into it.");
2896 {0,
nullptr, 0,
nullptr,
nullptr},
2900 {
OB_BOUNDBOX,
"BOUNDS", 0,
"Bounds",
"Display the bounds of the object"},
2901 {
OB_WIRE,
"WIRE", 0,
"Wire",
"Display the object as a wireframe"},
2906 "Display the object as a solid (if solid drawing is enabled in the viewport)"},
2911 "Display the object with textures (if textures are enabled in the viewport)"},
2912 {0,
nullptr, 0,
nullptr,
nullptr},
2916 {
OB_BOUND_BOX,
"BOX", 0,
"Box",
"Display bounds as box"},
2919 {
OB_BOUND_CONE,
"CONE", 0,
"Cone",
"Display bounds as cone"},
2921 {0,
nullptr, 0,
nullptr,
nullptr},
2924 static int boundbox_dimsize[] = {8, 3};
2936 "rna_Object_data_get",
2937 "rna_Object_data_set",
2938 "rna_Object_data_typef",
2939 "rna_Object_data_poll");
2968 "Object's bounding box in object-space coordinates, all values are -1.0 when "
2983 prop,
nullptr,
"rna_Object_parent_type_set",
"rna_Object_parent_type_itemf");
2992 prop,
"Parent Vertices",
"Indices of vertices in case of a vertex parenting relation");
3000 prop,
"Parent Bone",
"Name of parent bone in case of a bone parenting relation");
3007 "Camera Parent Lock",
3008 "View Lock 3D viewport camera transformation affects the object's "
3021 "Axis that points in the 'forward' direction (applies to Instance Vertices when "
3022 "Align to Vertex Normal is enabled)");
3031 "Axis that points in the upward direction (applies to Instance Vertices when "
3032 "Align to Vertex Normal is enabled)");
3041 "rna_Object_material_slots_begin",
3042 "rna_Object_material_slots_next",
3043 "rna_Object_material_slots_end",
3044 "rna_Object_material_slots_get",
3045 "rna_Object_material_slots_length",
3054 "rna_Object_active_material_get",
3055 "rna_Object_active_material_set",
3057 "rna_MaterialSlot_material_poll");
3068 "rna_Object_active_material_index_get",
3069 "rna_Object_active_material_index_set",
3070 "rna_Object_active_material_index_range");
3094 prop,
"rna_Object_rotation_axis_angle_get",
"rna_Object_rotation_axis_angle_set",
nullptr);
3098 prop,
"Axis-Angle Rotation",
"Angle of Rotation for Axis-Angle rotation representation");
3129 prop,
"rna_Object_dimensions_get",
"rna_Object_dimensions_set",
nullptr);
3133 "Absolute bounding box dimensions of the object.\n"
3134 "Warning: Assigning to it or its members multiple consecutive times "
3135 "will not work correctly, as this needs up-to-date evaluated data");
3142 prop,
"Delta Location",
"Extra translation added to the location of the object");
3150 "Delta Rotation (Euler)",
3151 "Extra rotation added to the rotation of the object (when using Euler rotations)");
3159 "Delta Rotation (Quaternion)",
3160 "Extra rotation added to the rotation of the object (when using Quaternion rotations)");
3170 "Delta Rotation (Axis Angle)",
3171 "Extra rotation added to the rotation of the object (when using Axis-Angle rotations)");
3204 "Lock Rotation (4D Angle)",
3205 "Lock editing of 'angle' component of four-component rotations when transforming");
3211 "Lock Rotations (4D)",
3212 "Lock editing of four component rotations by components (instead of as Eulers)");
3228 prop,
"rna_Object_matrix_world_get",
"rna_Object_matrix_world_set",
nullptr);
3240 "Parent relative transformation matrix.\n"
3241 "Warning: Only takes into account object parenting, so e.g. in case of bone parenting "
3242 "you get a matrix relative to the Armature object, not to the actual parent bone");
3244 prop,
"rna_Object_matrix_local_get",
"rna_Object_matrix_local_set",
nullptr);
3254 "Matrix access to location, rotation and scale (including deltas), "
3255 "before constraints and parenting are applied");
3257 prop,
"rna_Object_matrix_basis_get",
"rna_Object_matrix_basis_set",
nullptr);
3265 prop,
"Parent Inverse Matrix",
"Inverse of object's parent matrix at time of parenting");
3272 prop,
"Modifiers",
"Modifiers affecting the geometric data of the object");
3291 prop,
"Constraints",
"Constraints affecting the transformation of the object");
3303 "constraints__remove");
3310 "rna_Object_vertex_groups_begin",
3311 "rna_iterator_listbase_next",
3312 "rna_iterator_listbase_end",
3313 "rna_iterator_listbase_get",
3336 prop,
"Empty Display Size",
"Size of display for empties in the viewport");
3351 "Parameters defining which layer, pass and frame of the image is displayed");
3357 prop,
"Empty Image Depth",
"Determine which other objects will occlude the image");
3364 prop,
"Display in Perspective Mode",
"Display image in perspective mode");
3371 prop,
"Display in Orthographic Mode",
"Display image in orthographic mode");
3378 "Display Only Axis Aligned",
3379 "Only display the image when it is aligned with the view axis");
3387 "Use alpha blending instead of alpha test (can produce sorting artifacts)");
3391 {0,
"DOUBLE_SIDED", 0,
"Both",
""},
3394 {0,
nullptr, 0,
nullptr,
nullptr},
3407 "Add Rest Position",
3408 "Add a \"rest_position\" attribute that is a copy of the position "
3409 "attribute before shape keys and modifiers are evaluated");
3416 prop,
"Pass Index",
"Index number for the \"Object Index\" render pass");
3421 prop,
"Color",
"Object color and alpha, used when the Object Color mode is enabled");
3430 prop,
"Field Settings",
"Settings for using the object as a field in physics simulation");
3437 "Collision Settings",
3438 "Settings for using the object as a collider in physics simulation");
3464 prop,
"Use Simulation Cache",
"Cache frames during simulation nodes playback");
3481 prop,
"Orient with Normals",
"Rotate instance according to vertex normal");
3545 prop,
"Display Wire",
"Display the object's wireframe over solid shading");
3562 prop,
"Display Transparent",
"Display material transparency in the object");
3586 prop,
"Shape Key Edit Mode",
"Display shape keys in edit mode (for meshes only)");
3595 prop,
"rna_Object_active_shape_key_get",
nullptr,
nullptr,
nullptr);
3602 "rna_Object_active_shape_key_index_get",
3603 "rna_Object_active_shape_key_index_set",
3604 "rna_Object_active_shape_key_index_range");
3645 prop,
"rna_Object_mesh_symmetry_x_get",
"rna_Object_mesh_symmetry_x_set");
3652 prop,
"rna_Object_mesh_symmetry_y_get",
"rna_Object_mesh_symmetry_y_set");
3660 prop,
"rna_Object_mesh_symmetry_z_get",
"rna_Object_mesh_symmetry_z_set");
3669 "rna_Object_lightgroup_get",
3670 "rna_Object_lightgroup_length",
3671 "rna_Object_lightgroup_set");
3708 "rna_LightLinking_receiver_collection_get",
3709 "rna_LightLinking_receiver_collection_set",
3713 "Receiver Collection",
3714 "Collection which defines light linking relation of this emitter");
3721 "rna_LightLinking_blocker_collection_get",
3722 "rna_LightLinking_blocker_collection_set",
3726 "Blocker Collection",
3727 "Collection which defines objects which block light from this emitter");
void BKE_pose_rebuild(Main *bmain, Object *ob, bArmature *arm, bool do_id_user)
void BKE_rotMode_change_values(float quat[4], float eul[3], float axis[3], float *angle, short oldMode, short newMode)
Camera data-block and utility functions.
bool BKE_collection_has_object_recursive(Collection *collection, Object *ob)
bool BKE_constraint_remove(ListBase *list, struct bConstraint *con)
void BKE_constraints_free(struct ListBase *list)
struct bConstraint * BKE_constraint_add_for_object(struct Object *ob, const char *name, short type)
struct bConstraint * BKE_constraint_copy_for_object(struct Object *ob, struct bConstraint *src)
struct bConstraint * BKE_constraint_duplicate_ex(struct bConstraint *src, int flag, bool do_extern)
struct bConstraint * BKE_constraints_active_get(struct ListBase *list)
void BKE_constraints_active_set(ListBase *list, struct bConstraint *con)
void BKE_constraint_unique_name(struct bConstraint *con, struct ListBase *list)
Scene * CTX_data_scene(const bContext *C)
Main * CTX_data_main(const bContext *C)
void BKE_curve_type_test(Object *ob)
void BKE_editlattice_load(struct Object *obedit)
void BKE_editlattice_make(struct Object *obedit)
void BKE_editmesh_looptris_and_normals_calc(BMEditMesh *em)
Key * BKE_key_from_object(Object *ob)
void BKE_main_collection_sync_remap(const Main *bmain)
int BKE_lightgroup_membership_length(const LightgroupMembership *lgm)
void BKE_lightgroup_membership_set(LightgroupMembership **lgm, const char *name)
int BKE_lightgroup_membership_get(const LightgroupMembership *lgm, char *name)
bool BKE_id_is_in_global_main(ID *id)
void BKE_light_linking_collection_assign_only(struct Object *object, struct Collection *new_collection, LightLinkingType link_type)
struct Collection * BKE_light_linking_collection_get(const struct Object *object, LightLinkingType link_type)
General operations, lookup, etc. for materials.
struct Material * BKE_object_material_get(struct Object *ob, short act)
int BKE_object_material_count_eval(const struct Object *ob)
void BKE_object_materials_test(struct Main *bmain, struct Object *ob, struct ID *id)
void BKE_object_material_assign(struct Main *bmain, struct Object *ob, struct Material *ma, short act, int assign_type)
struct Material * BKE_object_material_get_eval(struct Object *ob, short act)
@ BKE_MAT_ASSIGN_EXISTING
void BKE_mesh_assign_object(Main *bmain, Object *ob, Mesh *mesh)
Mesh * BKE_mesh_wrapper_ensure_subdivision(Mesh *mesh)
ModifierData * BKE_modifiers_findby_type(const Object *ob, ModifierType type)
const ModifierTypeInfo * BKE_modifier_get_info(ModifierType type)
@ eModifierTypeFlag_Single
void BKE_modifier_copydata(const ModifierData *md, ModifierData *target)
General operations, lookup, etc. for blender objects.
void BKE_object_matrix_local_get(Object *ob, float r_mat[4][4])
void BKE_object_empty_draw_type_set(Object *ob, int value)
void BKE_object_modifier_set_active(Object *ob, ModifierData *md)
bool BKE_object_is_in_editmode(const Object *ob)
void BKE_object_dimensions_set(Object *ob, const float value[3], int axis_mask)
void BKE_object_apply_mat4(Object *ob, const float mat[4][4], bool use_compat, bool use_parent)
std::optional< blender::Bounds< blender::float3 > > BKE_object_boundbox_eval_cached_get(const Object *ob)
void BKE_boundbox_init_from_minmax(BoundBox *bb, const float min[3], const float max[3])
ModifierData * BKE_object_active_modifier(const Object *ob)
void BKE_object_to_mat4(const Object *ob, float r_mat[4][4])
void BKE_object_dimensions_eval_cached_get(Object *ob, float r_vec[3])
bool BKE_object_is_in_editmode_vgroup(const Object *ob)
bool BKE_object_sculpt_use_dyntopo(const Object *object)
void psys_set_current_num(struct Object *ob, int index)
short psys_get_current_num(struct Object *ob)
struct ParticleSystem * psys_get_current(struct Object *ob)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BKE_report(ReportList *reports, eReportType type, const char *message)
bool BLI_listbase_move_index(ListBase *listbase, int from, int to) ATTR_NONNULL()
void BLI_insertlinkafter(struct ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_remlink(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_listbase_count(const struct ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void void * BLI_listbase_string_or_index_find(const struct ListBase *listbase, const char *string, size_t string_offset, int index) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
MINLINE int max_ii(int a, int b)
void mul_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4])
void copy_m4_m4(float m1[4][4], const float m2[4][4])
bool invert_m4_m4(float inverse[4][4], const float mat[4][4])
MINLINE void copy_v3_v3(float r[3], const float a[3])
void copy_vn_fl(float *array_tar, int size, float val)
#define STRNCPY(dst, src)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
#define UNUSED_VARS_NDEBUG(...)
#define BLT_I18NCONTEXT_ID_IMAGE
#define BLT_I18NCONTEXT_ID_ID
void DEG_id_tag_update(ID *id, unsigned int flags)
void DEG_relations_tag_update(Main *bmain)
bool DEG_is_evaluated_object(const Object *object)
ID and Library types, which are fundamental for SDNA.
#define ID_IS_EDITABLE(_id)
@ LIBOVERRIDE_OP_INSERT_AFTER
Object groups, one object can be in many groups at once.
@ CONSTRAINT_OVERRIDE_LIBRARY_LOCAL
@ ME_EDIT_MIRROR_VERTEX_GROUPS
@ eModifierType_ParticleSystem
@ OB_MODE_VERTEX_GREASE_PENCIL
@ OB_MODE_EDIT_GPENCIL_LEGACY
@ OB_MODE_PAINT_GREASE_PENCIL
@ OB_MODE_SCULPT_GREASE_PENCIL
@ OB_MODE_WEIGHT_GREASE_PENCIL
Object is a sort of wrapper for general info.
#define OB_DATA_SUPPORT_ID(_id_type)
@ OB_MODIFIER_FLAG_ADD_REST_POSITION
@ OB_FLAG_USE_SIMULATION_CACHE
#define OB_TYPE_SUPPORT_PARVERT(_type)
@ GREASE_PENCIL_LINEART_SCENE
@ GREASE_PENCIL_LINEART_COLLECTION
@ GREASE_PENCIL_LINEART_OBJECT
@ OBJECT_LRT_OWN_INTERSECTION_PRIORITY
@ OB_EMPTY_IMAGE_DEPTH_DEFAULT
@ OB_EMPTY_IMAGE_DEPTH_FRONT
@ OB_EMPTY_IMAGE_DEPTH_BACK
@ OB_TRANSFORM_ADJUST_ROOT_PARENT_FOR_VIEW_LOCK
@ OBJECT_LRT_NO_INTERSECTION
@ OBJECT_LRT_OCCLUSION_ONLY
@ OBJECT_LRT_INTERSECTION_ONLY
@ OBJECT_LRT_FORCE_INTERSECTION
@ OB_EMPTY_IMAGE_HIDE_FRONT
@ OB_EMPTY_IMAGE_HIDE_NON_AXIS_ALIGNED
@ OB_EMPTY_IMAGE_HIDE_ORTHOGRAPHIC
@ OB_EMPTY_IMAGE_HIDE_BACK
@ OB_EMPTY_IMAGE_HIDE_PERSPECTIVE
@ OB_EMPTY_IMAGE_USE_ALPHA_BLEND
void EDBM_mesh_make(Object *ob, int select_mode, bool add_key_index)
void EDBM_mesh_load(Main *bmain, Object *ob)
void PE_current_changed(Depsgraph *depsgraph, Scene *scene, Object *ob)
#define RNA_POINTER_INVALIDATE(ptr)
#define RNA_ENUM_ITEM_SEPR
#define RNA_TRANSLATION_PREC_DEFAULT
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_NO_COMPARISON
@ PROPOVERRIDE_LIBRARY_INSERTION
@ PROPOVERRIDE_NO_PROP_NAME
constexpr PointerRNA PointerRNA_NULL
static btDbvtVolume bounds(btDbvtNode **leaves, int count)
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
void ED_curve_editnurb_make(Object *obedit)
void ED_curve_editnurb_load(Main *bmain, Object *obedit)
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
ModifierData * modifier_add(ReportList *reports, Main *bmain, Scene *scene, Object *ob, const char *name, int type)
void constraint_active_set(Object *ob, bConstraint *con)
void shaderfx_clear(Main *bmain, Object *ob)
void constraint_update(Main *bmain, Object *ob)
ShaderFxData * shaderfx_add(ReportList *reports, Main *bmain, Scene *scene, Object *ob, const char *name, int type)
float vgroup_vert_weight(Object *ob, bDeformGroup *dg, int vertnum)
void constraint_tag_update(Main *bmain, Object *ob, bConstraint *con)
bool parent_set(ReportList *reports, const bContext *C, Scene *scene, Object *const ob, Object *const par, int partype, bool xmirror, bool keep_transform, const int vert_par[3])
bool modifier_move_to_index(ReportList *reports, eReportType error_type, Object *ob, ModifierData *md, int index, bool allow_partial)
bool shaderfx_remove(ReportList *reports, Main *bmain, Object *ob, ShaderFxData *fx)
void vgroup_vert_add(Object *ob, bDeformGroup *dg, int vertnum, float weight, int assignmode)
void vgroup_vert_remove(Object *ob, bDeformGroup *dg, int vertnum)
void modifiers_clear(Main *bmain, Scene *scene, Object *ob)
bool modifier_remove(ReportList *reports, Main *bmain, Scene *scene, Object *ob, ModifierData *md)
SymEdge< T > * sym(const SymEdge< T > *se)
MatBase< float, 4, 4 > float4x4
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, ListBase *lb, IteratorSkipFunc skip)
bool RNA_enum_name_from_value(const EnumPropertyItem *item, int value, const char **r_name)
void RNA_property_update_main(Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
PointerRNA rna_pointer_inherit_refine(const PointerRNA *ptr, StructRNA *type, void *data)
bool RNA_pointer_is_null(const PointerRNA *ptr)
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
std::string RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop)
PointerRNA RNA_pointer_create(ID *id, StructRNA *type, void *data)
PointerRNA RNA_id_pointer_create(ID *id)
void rna_def_animdata_common(StructRNA *srna)
void rna_def_animviz_common(StructRNA *srna)
void rna_def_motionpath_common(StructRNA *srna)
const EnumPropertyItem rna_enum_constraint_type_items[]
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
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)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_define_lib_overridable(const bool make_overridable)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_define_animate_sdna(bool animate)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
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)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
const float rna_default_axis_angle[4]
void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_struct_clear_flag(StructRNA *srna, int flag)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
const int rna_matrix_dimsize_4x4[]
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_override_clear_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item, int value)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
bool rna_Armature_object_poll(PointerRNA *ptr, PointerRNA value)
bool rna_GPencil_object_poll(PointerRNA *ptr, PointerRNA value)
bool rna_Light_object_poll(PointerRNA *ptr, PointerRNA value)
int rna_object_vgroup_name_index_length(PointerRNA *ptr, int index)
bool rna_Lattice_object_poll(PointerRNA *ptr, PointerRNA value)
void rna_object_vgroup_name_set(PointerRNA *ptr, const char *value, char *result, int result_maxncpy)
bool rna_Mesh_object_poll(PointerRNA *ptr, PointerRNA value)
void rna_object_uvlayer_name_set(PointerRNA *ptr, const char *value, char *result, int result_maxncpy)
void rna_object_vgroup_name_index_set(PointerRNA *ptr, const char *value, short *index)
bool rna_Camera_object_poll(PointerRNA *ptr, PointerRNA value)
void rna_object_vgroup_name_index_get(PointerRNA *ptr, char *value, int index)
void rna_object_vcollayer_name_set(PointerRNA *ptr, const char *value, char *result, int result_maxncpy)
bool rna_Curve_object_poll(PointerRNA *ptr, PointerRNA value)
void rna_Object_internal_update_data(Main *bmain, Scene *scene, PointerRNA *ptr)
void RNA_api_object(StructRNA *srna)
const EnumPropertyItem rna_enum_object_modifier_type_items[]
const EnumPropertyItem rna_enum_object_empty_drawtype_items[]
const EnumPropertyItem rna_enum_metaelem_type_items[]
static void rna_def_object_light_linking(BlenderRNA *brna)
const EnumPropertyItem rna_enum_workspace_object_mode_items[]
static void rna_def_object_shaderfxs(BlenderRNA *brna, PropertyRNA *cprop)
static const EnumPropertyItem instance_items[]
static const EnumPropertyItem parent_type_items[]
const EnumPropertyItem rna_enum_object_gpencil_type_items[]
const EnumPropertyItem rna_enum_object_rotation_mode_items[]
static void rna_def_object_visibility(StructRNA *srna)
static void rna_def_material_slot(BlenderRNA *brna)
static void rna_def_object(BlenderRNA *brna)
const EnumPropertyItem rna_enum_lightprobes_type_items[]
static void rna_def_object_vertex_groups(BlenderRNA *brna, PropertyRNA *cprop)
const EnumPropertyItem rna_enum_object_mode_items[]
static void rna_def_object_lineart(BlenderRNA *brna)
const EnumPropertyItem rna_enum_object_axis_items[]
const EnumPropertyItem rna_enum_object_type_curve_items[]
#define INSTANCE_ITEM_COLLECTION
const EnumPropertyItem rna_enum_object_type_items[]
static void rna_def_object_modifiers(BlenderRNA *brna, PropertyRNA *cprop)
static const EnumPropertyItem rna_enum_object_empty_image_depth_items[]
static void rna_def_vertex_group(BlenderRNA *brna)
static void rna_def_object_display(BlenderRNA *brna)
static void rna_def_object_constraints(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_object_particle_systems(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_object(BlenderRNA *brna)
#define INSTANCE_ITEMS_SHARED
const EnumPropertyItem rna_enum_object_shaderfx_type_items[]
_W64 unsigned int uintptr_t
union CollectionPropertyIterator::@1329 internal
int subitem_reference_index
char * subitem_local_name
char * subitem_reference_name
struct MaterialGPencilStyle * gp_style
MeshRuntimeHandle * runtime
struct Collection * instance_collection
ObjectRuntimeHandle * runtime
IDOverrideLibraryPropertyOperation * liboverride_operation
void WM_main_add_notifier(uint type, void *reference)