164 bool (*filter_fn)(
const Object *ob,
void *user_data),
165 void *filter_user_data)
173 ID *id_pin =
nullptr;
174 const bool use_objects_in_mode = (ob_active !=
nullptr) &&
183 id_pin = sbuts->
pinid;
186 if (id_pin && (id_pin->id_type() ==
ID_OB)) {
188 ob = id_cast<Object *>(id_pin);
190 else if ((space_type ==
SPACE_PROPERTIES) && (use_objects_in_mode ==
false)) {
209 if ((ob !=
nullptr) && !filter_fn(ob, filter_user_data)) {
218 if (use_objects_in_mode) {
225 *bmain, scene, view_layer, v3d, ¶ms);
254 if (base_iter->object == ob) {
275 ob = base_iter->object;
305 bool changed =
false;
341 ot->
name =
"Show Hidden Objects";
342 ot->
description =
"Reveal temporarily hidden objects";
343 ot->
idname =
"OBJECT_OT_hide_view_clear";
362 bool changed =
false;
394 if (hide_count > 0 && confirm) {
409 ot->
name =
"Hide Objects";
410 ot->
description =
"Temporarily hide objects from the viewport";
411 ot->
idname =
"OBJECT_OT_hide_view_set";
422 ot->
srna,
"unselected",
false,
"Unselected",
"Hide unselected rather than selected objects");
466#define COLLECTION_INVALID_INDEX -1
490 int icon = ICON_NONE;
492 icon = ICON_LAYER_ACTIVE;
495 icon = ICON_LAYER_USED;
525 popup_menu_end(
C, pup);
533 ot->
name =
"Hide Other Collections";
534 ot->
description =
"Show only objects in collection (Shift to extend)";
535 ot->
idname =
"OBJECT_OT_hide_collection";
552 "Index of the collection to change visibility",
576 const Bone *bone = pose_bone.bone_get(ob);
593 Bone *bone = pose_bone.bone_get(ob);
619 if (ob.
data == id_cast<const ID *>(
mesh)) {
639 const bool free_data)
643 if (obedit ==
nullptr) {
649 if (
mesh->runtime->edit_mesh ==
nullptr) {
665 mesh->runtime->edit_mesh.reset();
674 const bArmature *arm = id_cast<const bArmature *>(obedit->
data);
675 if (arm->
edbo ==
nullptr) {
689 if (obedit->
pose !=
nullptr) {
704 const Curve *cu = id_cast<const Curve *>(obedit->
data);
718 const Curve *cu = id_cast<const Curve *>(obedit->
data);
732 const Lattice *lt = id_cast<const Lattice *>(obedit->
data);
746 const MetaBall *mb = id_cast<const MetaBall *>(obedit->
data);
768 if (needs_flush_ptr) {
769 *needs_flush_ptr =
false;
801 ListBaseT<PTCacheID> pidlist;
809 pidlist.free_no_destruct();
844 if (obedit ==
nullptr) {
847 bool changed =
false;
848 const short obedit_type = obedit->
type;
887 CLOG_WARN(&
LOG,
"Unable to enter edit-mode on library data for object '%s'", ob->
id.
name + 2);
1013 const bool is_mode_set = (obact->
mode & mode_flag) != 0;
1030 if ((ob != obact) && (ob->type == obact->
type)) {
1040 if ((obact->
mode & mode_flag) == 0) {
1042 if ((ob != obact) && (ob->type == obact->
type)) {
1052 if (
G.background ==
false) {
1087 ot->
name =
"Edit Mode";
1089 ot->
idname =
"OBJECT_OT_editmode_toggle";
1118 if (base ==
nullptr) {
1124 bool is_mode_set = (obact->
mode & mode_flag) != 0;
1139 if (obact == obedit) {
1141 is_mode_set =
false;
1149 if ((ob != obact) && (ob->type ==
OB_ARMATURE) && (ob->mode & mode_flag)) {
1173 if (
G.background ==
false) {
1183 ot->
name =
"Toggle Pose Mode";
1184 ot->
idname =
"OBJECT_OT_posemode_toggle";
1185 ot->
description =
"Enable or disable posing/selecting bones";
1229 if (ob->
pd ==
nullptr) {
1254 ot->
name =
"Toggle Force Field";
1256 ot->
idname =
"OBJECT_OT_forcefield_toggle";
1289 for (
Object *ob : objects) {
1308 for (
Object *ob : objects) {
1335 C, op, 270,
IFACE_(
"Calculate Object Motion Paths"),
IFACE_(
"Calculate"));
1358 selected_objects.
append(ob);
1378 ot->
name =
"Calculate Object Motion Paths";
1379 ot->
idname =
"OBJECT_OT_paths_calculate";
1380 ot->
description =
"Generate motion paths for the selected objects";
1401 "Computation Range",
1425 if (scene ==
nullptr) {
1435 selected_objects.
append(ob);
1455 ot->
name =
"Update Object Paths";
1456 ot->
idname =
"OBJECT_OT_paths_update";
1457 ot->
description =
"Recalculate motion paths for selected objects";
1482 if (scene ==
nullptr) {
1487 bool has_any_motion_path =
false;
1490 has_any_motion_path =
true;
1496 has_any_motion_path =
true;
1500 if (has_any_motion_path) {
1501 visible_objects_with_mpath.
append(ob);
1515 ot->
name =
"Update All Object Paths";
1516 ot->
idname =
"OBJECT_OT_paths_update_visible";
1517 ot->
description =
"Recalculate all visible motion paths for objects and poses";
1538 ob->
mpath =
nullptr;
1548 if (only_selected) {
1583 if (only_selected) {
1584 return TIP_(
"Clear motion paths of selected objects");
1586 return TIP_(
"Clear motion paths of all objects");
1592 ot->
name =
"Clear Object Paths";
1593 ot->
idname =
"OBJECT_OT_paths_clear";
1608 "Only clear motion paths of selected objects");
1632 if (!
STREQ(library_ref->library_id_name + 2,
"Smooth by Angle")) {
1641 char auto_smooth_asset_path[
FILE_MAX] =
"datafiles/assets/nodes/geometry_nodes_essentials.blend";
1654 const bool use_flat =
STREQ(op->
idname,
"OBJECT_OT_shade_flat");
1655 const bool use_smooth =
STREQ(op->
idname,
"OBJECT_OT_shade_smooth");
1656 const bool use_smooth_by_angle =
STREQ(op->
idname,
"OBJECT_OT_shade_smooth_by_angle");
1685 if (use_flat || use_smooth) {
1699 bool changed_multi =
false;
1700 bool has_linked_data =
false;
1701 for (
ID *
data : object_data) {
1703 has_linked_data =
true;
1707 bool changed =
false;
1712 if (use_smooth_by_angle) {
1725 changed_multi =
true;
1731 if (has_linked_data) {
1745 if (obact !=
nullptr) {
1760 ot->
name =
"Shade Flat";
1761 ot->
description =
"Render and display faces uniform, using face normals";
1762 ot->
idname =
"OBJECT_OT_shade_flat";
1775 "Don't remove sharp edges, which are redundant with faces shaded smooth");
1781 ot->
name =
"Shade Smooth";
1782 ot->
description =
"Render and display faces smooth, using interpolated vertex normals";
1783 ot->
idname =
"OBJECT_OT_shade_smooth";
1796 "Don't remove sharp edges. Tagged edges will remain sharp");
1801 ot->
name =
"Shade Smooth by Angle";
1803 "Set the sharpness of mesh edges based on the angle between the neighboring faces";
1804 ot->
idname =
"OBJECT_OT_shade_smooth_by_angle";
1815 prop,
"Angle",
"Maximum angle between face normals that will be considered as smooth");
1821 "Only add sharp edges instead of clearing existing tags first");
1839 if (ntree.interface_inputs().size() != 3) {
1842 if (ntree.interface_outputs().size() != 1) {
1859 if (use_auto_smooth) {
1863 "nodes/geometry_nodes_essentials.blend/NodeTree/Smooth by Angle");
1873 if (!asset_representation) {
1878 while (!node_group) {
1880 if (!node_group_id) {
1883 if (node_group_id->id_type() !=
ID_NT) {
1886 node_group =
reinterpret_cast<bNodeTree *
>(node_group_id);
1887 node_group->ensure_topology_cache();
1888 node_group->ensure_interface_cache();
1895 node_group =
nullptr;
1898 const StringRefNull angle_identifier = node_group->interface_inputs()[1]->identifier;
1900 for (
const PointerRNA &ob_ptr : ctx_objects) {
1914 if (!smooth_by_angle_nmd) {
1917 if (!smooth_by_angle_nmd) {
1921 smooth_by_angle_nmd->
node_group = node_group;
1931 &
object->id, RNA_NodesModifier, smooth_by_angle_nmd);
1943 for (
const PointerRNA &ob_ptr : ctx_objects) {
1974 ot->
name =
"Shade Auto Smooth";
1976 "Add modifier to automatically set the sharpness of mesh edges based on the angle between "
1977 "the neighboring faces";
1978 ot->
idname =
"OBJECT_OT_shade_auto_smooth";
1992 "Add modifier to set edge sharpness automatically");
1999 prop,
"Angle",
"Maximum angle between face normals that will be considered as smooth");
2051 const bool use_submode =
STREQ(op->
idname,
"OBJECT_OT_mode_set_with_submode");
2081 if (toggle ==
false) {
2082 if (ob->
mode != mode) {
2106 if (ob->
mode != mode) {
2129 if (mesh_select_mode != 0) {
2157 ot->
name =
"Set Object Mode";
2158 ot->
description =
"Sets the object interaction mode";
2159 ot->
idname =
"OBJECT_OT_mode_set";
2182 ot->
name =
"Set Object Mode with Sub-mode";
2183 ot->
idname =
"OBJECT_OT_mode_set_with_submode";
2201 ListBaseT<LinkData> objects = {
nullptr};
2228 const bool is_link =
STREQ(op->
idname,
"OBJECT_OT_link_to_collection");
2238 Scene *dest_scene =
nullptr;
2240 if (collection ==
nullptr) {
2248 op->
reports,
RPT_ERROR,
"Cannot add objects to the collection. %s", reason.c_str());
2260 Object *single_object = objects.is_single() ?
static_cast<Object *
>((objects.first())->
data) :
2263 if ((single_object !=
nullptr) && is_link &&
2269 single_object->
id.
name + 2,
2271 objects.free_no_destruct();
2285 objects.free_no_destruct();
2288 if (single_object !=
nullptr) {
2292 single_object->
id.
name + 2,
2301 if (single_object !=
nullptr) {
2305 single_object->
id.
name + 2,
2321 if (src_scene != dest_scene) {
2337 if (objects.is_empty()) {
2341 objects.free_no_destruct();
2343 bool is_move =
STREQ(op->
type->
idname,
"OBJECT_OT_move_to_collection");
2346 is_move ?
"OBJECT_MT_move_to_collection" :
"OBJECT_MT_link_to_collection",
2373 is_move ?
IFACE_(
"Move to New Collection") :
2374 IFACE_(
"Link to New Collection"),
2383 const bool is_scene_collection =
false)
2387 "OBJECT_MT_move_to_collection",
2388 "OBJECT_MT_move_to_collection_recursive");
2390 is_move ?
"OBJECT_OT_move_to_collection" :
"OBJECT_OT_link_to_collection",
false);
2394 if (!is_scene_collection) {
2396 ot, is_move ?
IFACE_(
"Move Inside") :
IFACE_(
"Link Inside"), ICON_NONE);
2406 if (is_scene_collection) {
2416 layout.
menu(is_move ?
"OBJECT_MT_move_to_collection_recursive" :
2417 "OBJECT_MT_link_to_collection_recursive",
2440 PointerRNA op_ptr = layout.
op(
"WM_OT_search_single_menu",
2494 ot->
name =
"Move to Collection";
2496 ot->
idname =
"OBJECT_OT_move_to_collection";
2512 "Session UID of the collection to move to",
2516 prop =
RNA_def_boolean(ot->
srna,
"is_new",
false,
"New",
"Move objects to a new collection");
2519 "new_collection_name",
2523 "Name of the newly added collection");
2533 ot->
name =
"Link to Collection";
2535 ot->
idname =
"OBJECT_OT_link_to_collection";
2551 "Session UID of the collection to link to",
2555 prop =
RNA_def_boolean(ot->
srna,
"is_new",
false,
"New",
"Link objects to a new collection");
2558 "new_collection_name",
2562 "Name of the newly added collection");
#define CTX_DATA_BEGIN(C, Type, instance, member)
#define FOREACH_BASE_IN_MODE_BEGIN(_bmain, _scene, _view_layer, _v3d, _object_type, _object_mode, _instance)
#define FOREACH_BASE_IN_MODE_END
#define FOREACH_SELECTED_OBJECT_BEGIN(_view_layer, _v3d, _instance)
#define FOREACH_OBJECT_END
#define FOREACH_OBJECT_BEGIN(_bmain, _scene, _view_layer, _instance)
#define FOREACH_SELECTED_OBJECT_END
General operations, lookup, etc. for materials.
General operations, lookup, etc. for blender objects.
#define PTCACHE_TYPE_PARTICLES
#define PTCACHE_RESET_OUTDATED
#define STRNCPY_UTF8(dst, src)
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
#define CLOG_WARN(clg_ref,...)
#define ID_IS_EDITABLE(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Object groups, one object can be in many groups at once.
#define OB_MODE_ALL_PAINT_MESH
#define OB_MODE_ALL_PAINT_GPENCIL
Object is a sort of wrapper for general info.
#define OB_TYPE_SUPPORT_EDITMODE(_type)
Read Blender memory allocation and freeing.
#define NS_EDITMODE_POINTCLOUD
#define NS_EDITMODE_CURVES
#define NS_EDITMODE_ARMATURE
#define NS_EDITMODE_MBALL
#define NS_EDITMODE_GREASE_PENCIL
#define NS_EDITMODE_LATTICE
#define NS_EDITMODE_CURVE
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
constexpr const char * c_str() const
constexpr StringRefNull()
void append(const T &value)
float4 load_data(StoredFloat4 data)
AssetLibraryReference all_library_reference()
void free(struct bMotionPath *mpath)
struct bMotionPath * ensure(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct bPoseChannel *pchan)
void mesh_sharp_edges_set_from_angle(Mesh &mesh, float angle, bool keep_sharp_edges=false)
void mesh_smooth_set(Mesh &mesh, bool use_smooth, bool keep_sharp_edges=false)
void storage_fetch_blocking(const AssetLibraryReference &library_reference, const bContext &C)
const asset_system::AssetRepresentation * find_asset_from_weak_ref(const bContext &C, const AssetWeakReference &weak_ref, ReportList *reports)
ID * asset_local_id_ensure_imported(Main &bmain, const asset_system::AssetRepresentation &asset, int flags=0, const std::optional< eAssetImportMethod > import_method=std::nullopt, const std::optional< ImportInstantiateContext > instantiate_context=std::nullopt, ReportList *reports=nullptr)
bool ensure_selection_domain(ToolSettings *ts, Object *object)
void tag_for_recalc(bMotionPath &motion_path)
void OBJECT_OT_paths_update_visible(wmOperatorType *ot)
void OBJECT_OT_shade_smooth(wmOperatorType *ot)
ModifierData * modifier_add(ReportList *reports, Main *bmain, Scene *scene, Object *ob, const char *name, int type)
static bool is_valid_smooth_by_angle_group(const bNodeTree &ntree)
static wmOperatorStatus object_update_paths_exec(bContext *C, wmOperator *op)
void OBJECT_OT_editmode_toggle(wmOperatorType *ot)
void motion_paths_recalc(bContext *C, Scene *scene, const Span< Object * > objects)
bool editmode_exit_multi(bContext *C, int flag)
void OBJECT_OT_mode_set(wmOperatorType *ot)
static bool editmode_load_free_ex(Main *bmain, Object *obedit, const bool load_data, const bool free_data)
bool editmode_enter(bContext *C, int flag)
void OBJECT_OT_posemode_toggle(wmOperatorType *ot)
static bool object_mode_set_poll(bContext *C)
static void flush_pose_selection_to_bone(Object &ob)
static bool object_mode_set_ok_or_report(ReportList *reports)
static wmOperatorStatus object_calculate_paths_exec(bContext *C, wmOperator *op)
void OBJECT_OT_shade_flat(wmOperatorType *ot)
void OBJECT_OT_hide_view_clear(wmOperatorType *ot)
void OBJECT_OT_shade_auto_smooth(wmOperatorType *ot)
static wmOperatorStatus editmode_toggle_exec(bContext *C, wmOperator *op)
static void object_clear_mpath(Object *ob)
void motion_paths_clear(bContext *C, bool only_selected)
void OBJECT_OT_shade_smooth_by_angle(wmOperatorType *ot)
static wmOperatorStatus object_clear_paths_exec(bContext *C, wmOperator *op)
void OBJECT_OT_move_to_collection(wmOperatorType *ot)
static void move_to_collection_recursive_menu_draw(const bContext *, Menu *menu)
bool editmode_free_ex(Main *bmain, Object *obedit)
static wmOperatorStatus move_to_collection_invoke(bContext *C, wmOperator *op, const wmEvent *)
bool mode_set_ex(bContext *C, eObjectMode mode, bool use_undo, ReportList *reports)
static wmOperatorStatus object_calculate_paths_invoke(bContext *C, wmOperator *op, const wmEvent *)
void OBJECT_OT_hide_view_set(wmOperatorType *ot)
static wmOperatorStatus object_update_all_paths_exec(bContext *C, wmOperator *)
static wmOperatorStatus object_hide_collection_exec(bContext *C, wmOperator *op)
void base_select(Base *base, eObjectSelect_Mode mode)
static wmOperatorStatus object_hide_view_set_exec(bContext *C, wmOperator *op)
static wmOperatorStatus move_to_collection_exec(bContext *C, wmOperator *op)
Object * context_object(const bContext *C)
void OBJECT_OT_mode_set_with_submode(wmOperatorType *ot)
void OBJECT_OT_hide_collection(wmOperatorType *ot)
static bool shade_poll(bContext *C)
void OBJECT_OT_paths_update(wmOperatorType *ot)
void link_to_collection_menu_register()
void OBJECT_OT_paths_calculate(wmOperatorType *ot)
static wmOperatorStatus object_hide_view_clear_exec(bContext *C, wmOperator *op)
bool mode_compat_test(const Object *ob, eObjectMode mode)
bool editmode_enter_ex(Main *bmain, Scene *scene, Object *ob, int flag)
Object * context_active_object(const bContext *C)
static wmOperatorStatus shade_auto_smooth_exec(bContext *C, wmOperator *op)
void OBJECT_OT_forcefield_toggle(wmOperatorType *ot)
static const EnumPropertyItem * object_mode_set_itemf(bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
bool editmode_exit(bContext *C, int flag)
int object_in_mode_to_index(const Main &bmain, const Scene *scene, ViewLayer *view_layer, eObjectMode mode, const Object *ob)
static bool has_object_motion_paths(Object *ob)
void OBJECT_OT_link_to_collection(wmOperatorType *ot)
static bool move_to_collection_poll(bContext *C)
static wmOperatorStatus object_mode_set_exec(bContext *C, wmOperator *op)
bool mode_compat_set(bContext *C, Object *ob, eObjectMode mode, ReportList *reports)
void move_to_collection_menu_register()
bool editmode_exit_multi_ex(Main *bmain, Scene *scene, ViewLayer *view_layer, int flag)
static bool object_update_all_paths_poll(bContext *)
void collection_hide_menu_draw(const bContext *C, ui::Layout &layout)
void check_force_modifiers(Main *bmain, Scene *scene, Object *object)
static ListBaseT< LinkData > selected_objects_get(bContext *C)
Object * object_in_mode_from_index(const Main &bmain, const Scene *scene, ViewLayer *view_layer, eObjectMode mode, int index)
static bool object_update_paths_poll(bContext *C)
static bool editmode_toggle_poll(bContext *C)
static void shade_auto_smooth_ui(bContext *, wmOperator *op)
static bool mesh_needs_keyindex(Main *bmain, const Mesh *mesh)
static bool has_pose_motion_paths(Object *ob)
static bool is_smooth_by_angle_modifier(const ModifierData &md)
static wmOperatorStatus shade_smooth_exec(bContext *C, wmOperator *op)
static void flush_bone_selection_to_pose(Object &ob)
bool editmode_load(Main *bmain, Object *obedit)
static wmOperatorStatus object_hide_collection_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static std::string object_clear_paths_get_description(bContext *, wmOperatorType *, PointerRNA *ptr)
Vector< Object * > objects_in_mode_or_selected(bContext *C, bool(*filter_fn)(const Object *ob, void *user_data), void *filter_user_data)
bool editmode_exit_ex(Main *bmain, Scene *scene, Object *obedit, int flag)
void OBJECT_OT_paths_clear(wmOperatorType *ot)
static bool object_hide_poll(bContext *C)
static void move_to_collection_menu_draw(Menu *menu, Collection *collection, int icon, const bool is_scene_collection=false)
static wmOperatorStatus posemode_exec(bContext *C, wmOperator *op)
static wmOperatorStatus forcefield_toggle_exec(bContext *C, wmOperator *)
bool modifier_remove(ReportList *reports, Main *bmain, Scene *scene, Object *ob, ModifierData *md)
PopupMenu * popup_menu_begin(bContext *C, const char *title, int icon) ATTR_NONNULL()
int icon_color_from_collection(const Collection *collection)
void WM_main_add_notifier(uint type, void *reference)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
void ED_mesh_mirror_topo_table_end(Object *ob)
struct PartDeflect * BKE_partdeflect_new(ePFieldType type)
const EnumPropertyItem rna_enum_mesh_select_mode_items[]
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
ScrArea * CTX_wm_area(const bContext *C)
void WM_report_banner_show(wmWindowManager *wm, wmWindow *win)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void BKE_editlattice_load(struct Object *obedit)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
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_struct_find_property(PointerRNA *ptr, const char *identifier)
void ED_curve_editnurb_load(Main *bmain, Object *obedit)
BMesh * BKE_editmesh_bmesh_get_for_write(Mesh *mesh)
int BKE_ptcache_object_reset(struct Scene *scene, struct Object *ob, int mode)
void ED_armature_to_edit(bArmature *arm)
void ED_armature_from_edit(Main *bmain, bArmature *arm)
const char * BKE_collection_ui_name_get(Collection *collection)
void ED_curve_editfont_load(Object *obedit)
SpaceOutliner * CTX_wm_space_outliner(const bContext *C)
void DEG_graph_free(Depsgraph *graph)
Collection * BKE_collection_from_session_uid(Scene *scene, uint64_t session_uid)
bool BKE_base_is_visible(const View3D *v3d, const Base *base)
PointerRNA RNA_id_pointer_create(ID *id)
void ED_mball_editmball_free(Object *obedit)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
void BKE_editlattice_make(struct Object *obedit)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
void ED_mesh_mirror_spatial_table_end(Object *ob)
void MOD_nodes_update_interface(Main &bmain, Object *object, NodesModifierData *nmd)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
int RNA_int_get(PointerRNA *ptr, const char *name)
wmWindow * CTX_wm_window(const bContext *C)
void EDBM_mesh_load_ex(Main *bmain, Object *ob, bool free_data)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
void ED_curve_editfont_free(Object *obedit)
bool WM_autosave_write(wmWindowManager *wm, Main *bmain, ReportList *reports)
void BKE_editlattice_free(struct Object *ob)
int BKE_layer_collection_findindex(ViewLayer *view_layer, const LayerCollection *lc)
void ED_curve_editnurb_free(Object *obedit)
const char * BKE_id_name(const ID &id)
void BKE_layer_collection_isolate_local(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d, LayerCollection *lc, bool extend)
void BLI_path_slash_native(char *path) ATTR_NONNULL(1)
void BKE_view_layer_need_resync_tag(ViewLayer *view_layer)
Base * CTX_data_active_base(const bContext *C)
@ ASSET_LIBRARY_ESSENTIALS
ViewLayer * CTX_data_view_layer(const bContext *C)
bool EDBM_selectmode_set_multi(bContext *C, short selectmode)
bool BKE_collection_has_object(Collection *collection, const Object *ob)
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void EDBM_mesh_free_data(BMEditMesh *em)
void BKE_modifier_unique_name(ListBaseT< ModifierData > *modifiers, ModifierData *md)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
void animviz_build_motionpath_targets(Object *ob, Vector< MPathTarget > &r_targets)
bool ED_outliner_collections_editor_poll(bContext *C)
LayerCollection * BKE_layer_collection_from_index(ViewLayer *view_layer, int index)
void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *value)
Depsgraph * animviz_depsgraph_build(Main *bmain, Scene *scene, ViewLayer *view_layer, const Span< MPathTarget > targets)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void ED_curve_editfont_make(Object *obedit)
bool ED_object_posemode_exit_ex(Main *bmain, Object *ob)
Object * BKE_view_layer_edit_object_get(const ViewLayer *view_layer)
void DEG_id_tag_update(ID *id, unsigned int flags)
float BKE_scene_frame_get(const Scene *scene)
void BKE_layer_collection_isolate_global(Scene *scene, ViewLayer *view_layer, LayerCollection *lc, bool extend)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void BKE_mesh_batch_cache_dirty_tag(Mesh *mesh, eMeshBatchDirtyMode mode)
@ LAYER_COLLECTION_EXCLUDE
Vector< Object * > BKE_view_layer_array_from_objects_in_mode_params(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d, const ObjectsInModeParams *params)
wmWindowManager * CTX_wm_manager(const bContext *C)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
Object * CTX_data_edit_object(const bContext *C)
void BKE_pose_channels_clear_with_null_bone(Object *armature_ob, bool do_id_user)
void BKE_scene_object_base_flag_sync_from_base(Base *base)
void WM_menu_name_call(bContext *C, const char *menu_name, wm::OpCallContext context)
@ LAYER_COLLECTION_HIDE_VIEWPORT
@ LAYER_COLLECTION_HAS_OBJECTS
void WM_toolsystem_update_from_context_view3d(bContext *C)
bool BKE_layer_collection_local_sync(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
void ED_outliner_selected_objects_get(const bContext *C, ListBaseT< LinkData > *objects)
void BKE_editmesh_looptris_and_normals_calc(BMEditMesh *em, BMesh *bm)
LinkData * BLI_genericNodeN(void *data)
void animviz_calc_motionpaths(Depsgraph *depsgraph, Scene *scene, MutableSpan< MPathTarget > targets, const int modified_frame)
void BKE_collection_object_move(Main *bmain, Scene *scene, Collection *collection_dst, Collection *collection_src, Object *ob)
bool BKE_collection_object_add(Main *bmain, Collection *collection, Object *ob)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
bool ED_operator_view3d_active(bContext *C)
void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item, int value)
void BKE_curve_smooth_flag_set(Curve *cu, bool use_smooth)
const EnumPropertyItem rna_enum_motionpath_range_items[]
bool CTX_data_selected_editable_objects(const bContext *C, Vector< PointerRNA > *list)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
wmOperatorStatus WM_operator_props_dialog_popup(bContext *C, wmOperator *op, int width, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message, const bool show_icon)
void BKE_ptcache_ids_from_object(ListBaseT< PTCacheID > *lb, struct Object *ob, struct Scene *scene, int duplis)
void ED_armature_edit_free(bArmature *arm)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void BKE_particlesystem_reset_all(struct Object *object)
bool ED_operator_object_active_editable(bContext *C)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
wmMsgBus * CTX_wm_message_bus(const bContext *C)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
char * BKE_object_data_editmode_flush_ptr_get(ID *id)
const EnumPropertyItem rna_enum_object_mode_items[]
PointerRNA RNA_pointer_get(PointerRNA *ptr, const char *name)
Vector< Object * > BKE_view_layer_array_selected_objects_params(ViewLayer *view_layer, const View3D *v3d, const ObjectsInViewLayerParams *params)
void animviz_motionpath_compute_range(Object *ob, Scene *scene)
BMEditMesh * BKE_editmesh_from_object(Object *ob)
Return the BMEditMesh for a given object.
bool BKE_object_is_in_editmode(const Object *ob)
ModifierData * BKE_modifiers_findby_type(const Object *ob, ModifierType type)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
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)
bool ED_object_posemode_exit(bContext *C, Object *ob)
bool ED_operator_objectmode(bContext *C)
bool BKE_collection_is_content_editable(const Collection *collection, std::string *reason=nullptr)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void EDBM_mesh_make(Object *ob, int select_mode, bool add_key_index)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Main * CTX_data_main(const bContext *C)
@ NODES_MODIFIER_HIDE_DATABLOCK_SELECTOR
@ NODES_MODIFIER_HIDE_MANAGE_PANEL
@ COLLECTION_HIDE_VIEWPORT
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
bool WM_menutype_add(MenuType *mt)
bool WM_autosave_is_scheduled(wmWindowManager *wm)
bool ED_object_posemode_enter_ex(Main *bmain, Object *ob)
const EnumPropertyItem rna_enum_motionpath_display_type_items[]
void ED_curve_editnurb_make(Object *obedit)
const BMesh * BKE_editmesh_bmesh_get(const Object *ob)
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)
void DEG_relations_tag_update(Main *bmain)
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
Scene * CTX_data_scene(const bContext *C)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void BKE_collection_new_name_get(Collection *collection_parent, char r_name[256])
@ BKE_MESH_BATCH_DIRTY_ALL
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop)
bool BKE_id_is_editable(const Main *bmain, const ID *id)
@ MOTIONPATH_BAKE_HAS_PATHS
void ED_mball_editmball_load(Object *obedit)
Object * CTX_data_active_object(const bContext *C)
bool ED_operator_object_active_editable_ex(bContext *C, const Object *ob)
bool BKE_layer_collection_has_selected_objects(const Main &bmain, const Scene *scene, ViewLayer *view_layer, LayerCollection *lc)
ListBaseT< Base > * BKE_view_layer_object_bases_get(ViewLayer *view_layer)
float RNA_float_get(PointerRNA *ptr, const char *name)
PointerRNA CTX_data_pointer_get_type(const bContext *C, const char *member, StructRNA *type)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
View3D * CTX_wm_view3d(const bContext *C)
bool BKE_object_obdata_is_libdata(const Object *ob)
bool ED_object_posemode_enter(bContext *C, Object *ob)
void ED_mball_editmball_make(Object *obedit)
Collection * BKE_collection_add(Main *bmain, Collection *collection_parent, const char *name_custom)
#define COLLECTION_INVALID_INDEX
const char * relative_asset_identifier
eAssetLibraryType asset_library_type
struct Collection * collection
ListBaseT< CollectionChild > children
struct EditFont * editfont
struct LibraryWeakReference * library_weak_reference
struct EditLatt * editlatt
eLayerCollection_Flag flag
struct Collection * collection
ListBaseT< LayerCollection > layer_collections
eLayerCollection_RuntimeFlag runtime_flag
unsigned short local_collections_bits
ListBaseT< Object > objects
bool is_memfile_undo_written
struct bNodeTree * node_group
ListBaseT< ModifierData > modifiers
eObject_VisibilityFlag visibility_flag
eObject_EmptyDrawType empty_drawtype
bool(*) filter_fn(const Object *ob, void *user_data)
bool(*) filter_fn(const Object *ob, void *user_data)
struct Collection * master_collection
struct ToolSettings * toolsettings
ListBaseT< SpaceLink > spacedata
unsigned short local_collections_uid
unsigned short local_view_uid
ListBaseT< LayerCollection > layer_collections
eMotionPath_Ranges path_range
eMotionPath_BakeFlag path_bakeflag
eMotionPaths_Types path_type
ListBaseT< EditBone > * edbo
ListBaseT< bPoseChannel > chanbase
void use_property_decorate_set(bool is_decorate)
void operator_context_set(wm::OpCallContext opcontext)
wm::OpCallContext operator_context() const
void use_property_split_set(bool is_sep)
PointerRNA op(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
void menu(MenuType *mt, std::optional< StringRef > name, int icon)
const PointerRNA * context_ptr_get(const StringRef name, const StructRNA *type) const
void active_set(bool active)
Layout & column(bool align)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
void context_ptr_set(StringRef name, const PointerRNA *ptr)
wmEventModifierFlag modifier
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
const char * translation_context
void(*) ui(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
std::string(*) get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
struct ReportList * reports
struct wmOperatorType * type
#define WM_msg_publish_rna_prop(mbus, id_, data_, type_, prop_)