Blender V5.0
object_edit.cc File Reference
#include <cctype>
#include <cfloat>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include "AS_asset_library.hh"
#include "BLI_path_utils.hh"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math_rotation.h"
#include "BLI_string.h"
#include "BLI_string_utf8.h"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "DNA_armature_types.h"
#include "DNA_asset_types.h"
#include "DNA_collection_types.h"
#include "DNA_curve_types.h"
#include "DNA_lattice_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_object_force_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_anim_visualization.h"
#include "BKE_armature.hh"
#include "BKE_collection.hh"
#include "BKE_constraint.h"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_editlattice.h"
#include "BKE_editmesh.hh"
#include "BKE_effect.h"
#include "BKE_global.hh"
#include "BKE_idprop.hh"
#include "BKE_image.hh"
#include "BKE_lattice.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_material.hh"
#include "BKE_mball.hh"
#include "BKE_mesh.hh"
#include "BKE_modifier.hh"
#include "BKE_node_runtime.hh"
#include "BKE_object.hh"
#include "BKE_paint.hh"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "BKE_softbody.h"
#include "BKE_workspace.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "ED_anim_api.hh"
#include "ED_armature.hh"
#include "ED_asset.hh"
#include "ED_asset_menu_utils.hh"
#include "ED_curve.hh"
#include "ED_gpencil_legacy.hh"
#include "ED_grease_pencil.hh"
#include "ED_image.hh"
#include "ED_keyframes_keylist.hh"
#include "ED_lattice.hh"
#include "ED_mball.hh"
#include "ED_mesh.hh"
#include "ED_object.hh"
#include "ED_outliner.hh"
#include "ED_screen.hh"
#include "ED_undo.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_types.hh"
#include "UI_interface.hh"
#include "UI_interface_icons.hh"
#include "UI_interface_layout.hh"
#include "CLG_log.h"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "WM_toolsystem.hh"
#include "WM_types.hh"
#include "MOD_nodes.hh"
#include "object_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::object

Functions

Object Link/Move to Collection Operator
static ListBase blender::ed::object::selected_objects_get (bContext *C)
static bool blender::ed::object::move_to_collection_poll (bContext *C)
static wmOperatorStatus blender::ed::object::move_to_collection_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::object::move_to_collection_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void blender::ed::object::move_to_collection_menu_draw (Menu *menu, Collection *collection, int icon)
static void blender::ed::object::move_to_collection_recursive_menu_draw (const bContext *, Menu *menu)
static void blender::ed::object::move_to_collection_menu_draw (const bContext *C, Menu *menu)
void blender::ed::object::move_to_collection_menu_register ()
void blender::ed::object::link_to_collection_menu_register ()
void blender::ed::object::OBJECT_OT_move_to_collection (wmOperatorType *ot)
void blender::ed::object::OBJECT_OT_link_to_collection (wmOperatorType *ot)
Internal Utilities
static bool blender::ed::object::object_mode_set_ok_or_report (ReportList *reports)
Objectblender::ed::object::context_object (const bContext *C)
Objectblender::ed::object::context_active_object (const bContext *C)
blender::Vector< Object * > blender::ed::object::objects_in_mode_or_selected (bContext *C, bool(*filter_fn)(const Object *ob, void *user_data), void *filter_user_data)
Object Index Lookup/Creation
int blender::ed::object::object_in_mode_to_index (const Scene *scene, ViewLayer *view_layer, eObjectMode mode, const Object *ob)
Objectblender::ed::object::object_in_mode_from_index (const Scene *scene, ViewLayer *view_layer, eObjectMode mode, int index)
Toggle Edit-Mode Operator
static void blender::ed::object::flush_bone_selection_to_pose (Object &ob)
static void blender::ed::object::flush_pose_selection_to_bone (Object &ob)
static bool blender::ed::object::mesh_needs_keyindex (Main *bmain, const Mesh *mesh)
static bool blender::ed::object::editmode_load_free_ex (Main *bmain, Object *obedit, const bool load_data, const bool free_data)
bool blender::ed::object::editmode_load (Main *bmain, Object *obedit)
bool blender::ed::object::editmode_exit_ex (Main *bmain, Scene *scene, Object *obedit, int flag)
bool blender::ed::object::editmode_exit (bContext *C, int flag)
bool blender::ed::object::editmode_free_ex (Main *bmain, Object *obedit)
bool blender::ed::object::editmode_exit_multi_ex (Main *bmain, Scene *scene, ViewLayer *view_layer, int flag)
bool blender::ed::object::editmode_exit_multi (bContext *C, int flag)
bool blender::ed::object::editmode_enter_ex (Main *bmain, Scene *scene, Object *ob, int flag)
bool blender::ed::object::editmode_enter (bContext *C, int flag)
static wmOperatorStatus blender::ed::object::editmode_toggle_exec (bContext *C, wmOperator *op)
static bool blender::ed::object::editmode_toggle_poll (bContext *C)
void blender::ed::object::OBJECT_OT_editmode_toggle (wmOperatorType *ot)
Toggle Pose-Mode Operator
static wmOperatorStatus blender::ed::object::posemode_exec (bContext *C, wmOperator *op)
void blender::ed::object::OBJECT_OT_posemode_toggle (wmOperatorType *ot)
Force Field Toggle Operator
void blender::ed::object::check_force_modifiers (Main *bmain, Scene *scene, Object *object)
static wmOperatorStatus blender::ed::object::forcefield_toggle_exec (bContext *C, wmOperator *)
void blender::ed::object::OBJECT_OT_forcefield_toggle (wmOperatorType *ot)
Calculate Motion Paths Operator
static eAnimvizCalcRange blender::ed::object::object_path_convert_range (eObjectPathCalcRange range)
void blender::ed::object::motion_paths_recalc_selected (bContext *C, Scene *scene, eObjectPathCalcRange range)
void blender::ed::object::motion_paths_recalc_visible (bContext *C, Scene *scene, eObjectPathCalcRange range)
static bool blender::ed::object::has_object_motion_paths (Object *ob)
static bool blender::ed::object::has_pose_motion_paths (Object *ob)
void blender::ed::object::motion_paths_recalc (bContext *C, Scene *scene, eObjectPathCalcRange range, ListBase *ld_objects)
static wmOperatorStatus blender::ed::object::object_calculate_paths_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus blender::ed::object::object_calculate_paths_exec (bContext *C, wmOperator *op)
void blender::ed::object::OBJECT_OT_paths_calculate (wmOperatorType *ot)
Update Motion Paths Operator
static bool blender::ed::object::object_update_paths_poll (bContext *C)
static wmOperatorStatus blender::ed::object::object_update_paths_exec (bContext *C, wmOperator *op)
void blender::ed::object::OBJECT_OT_paths_update (wmOperatorType *ot)
Update All Motion Paths Operator
static bool blender::ed::object::object_update_all_paths_poll (bContext *)
static wmOperatorStatus blender::ed::object::object_update_all_paths_exec (bContext *C, wmOperator *)
void blender::ed::object::OBJECT_OT_paths_update_visible (wmOperatorType *ot)
Clear Motion Paths Operator
static void blender::ed::object::object_clear_mpath (Object *ob)
void blender::ed::object::motion_paths_clear (bContext *C, bool only_selected)
static wmOperatorStatus blender::ed::object::object_clear_paths_exec (bContext *C, wmOperator *op)
static std::string blender::ed::object::object_clear_paths_get_description (bContext *, wmOperatorType *, PointerRNA *ptr)
void blender::ed::object::OBJECT_OT_paths_clear (wmOperatorType *ot)
Object Shade Smooth/Flat Operator
static bool blender::ed::object::is_smooth_by_angle_modifier (const ModifierData &md)
static wmOperatorStatus blender::ed::object::shade_smooth_exec (bContext *C, wmOperator *op)
static bool blender::ed::object::shade_poll (bContext *C)
void blender::ed::object::OBJECT_OT_shade_flat (wmOperatorType *ot)
void blender::ed::object::OBJECT_OT_shade_smooth (wmOperatorType *ot)
void blender::ed::object::OBJECT_OT_shade_smooth_by_angle (wmOperatorType *ot)
Object Shade Auto Smooth Operator
static bool blender::ed::object::is_valid_smooth_by_angle_group (const bNodeTree &ntree)
static wmOperatorStatus blender::ed::object::shade_auto_smooth_exec (bContext *C, wmOperator *op)
static void blender::ed::object::shade_auto_smooth_ui (bContext *, wmOperator *op)
void blender::ed::object::OBJECT_OT_shade_auto_smooth (wmOperatorType *ot)
Object Mode Set Operator
static const EnumPropertyItemblender::ed::object::object_mode_set_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static bool blender::ed::object::object_mode_set_poll (bContext *C)
static wmOperatorStatus blender::ed::object::object_mode_set_exec (bContext *C, wmOperator *op)
void blender::ed::object::OBJECT_OT_mode_set (wmOperatorType *ot)
void blender::ed::object::OBJECT_OT_mode_set_with_submode (wmOperatorType *ot)

Variables

static CLG_LogRef blender::ed::object::LOG = {"object.edit"}

Hide Operator

#define COLLECTION_INVALID_INDEX   -1
static bool blender::ed::object::object_hide_poll (bContext *C)
static wmOperatorStatus blender::ed::object::object_hide_view_clear_exec (bContext *C, wmOperator *op)
void blender::ed::object::OBJECT_OT_hide_view_clear (wmOperatorType *ot)
static wmOperatorStatus blender::ed::object::object_hide_view_set_exec (bContext *C, wmOperator *op)
void blender::ed::object::OBJECT_OT_hide_view_set (wmOperatorType *ot)
static wmOperatorStatus blender::ed::object::object_hide_collection_exec (bContext *C, wmOperator *op)
void blender::ed::object::collection_hide_menu_draw (const bContext *C, uiLayout *layout)
static wmOperatorStatus blender::ed::object::object_hide_collection_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::ed::object::OBJECT_OT_hide_collection (wmOperatorType *ot)

Macro Definition Documentation

◆ COLLECTION_INVALID_INDEX