81 if (animscreen && animscreen->
animtimer) {
115 std::swap(reports->
flag, reports_flag_prev);
142 if (obact ==
nullptr || ob.
type != obact->
type) {
175 *bmain, *depsgraph, *scene, ob,
true, reports);
226 std::swap(reports->
flag, reports_flag_prev);
238 if (do_undo_system &&
G_MAIN->wm.first_) {
242 if (
wm->runtime->undo_stack) {
244 wm->runtime->undo_stack =
nullptr;
261 if (do_undo_system ==
false) {
276 bool has_edited =
false;
300 if (needs_flush_ptr !=
nullptr) {
301 if (check_needs_flush && (*needs_flush_ptr == 0)) {
304 *needs_flush_ptr = 0;
321 bool has_edited =
false;
343 bool shift,
bool ctrl,
float *val,
float fac1,
float fac2,
float fac3,
int invert)
352 *val = fac3 *
floorf(*val / fac3 + 0.5f);
357 *val = fac2 *
floorf(*val / fac2 + 0.5f);
362 *val = fac1 *
floorf(*val / fac1 + 0.5f);
370 const char *abs_name,
387 if (blendfile_path[0] !=
'\0') {
391 BLI_path_join(local_name,
sizeof(local_name),
"//", folder, fi);
392 if (!
STREQ(abs_name, local_name)) {
449 popup_menu_end(
C, pup);
466 mappings.
add(old_id, new_id);
General operations, lookup, etc. for materials.
General operations, lookup, etc. for blender objects.
#define BLI_path_join(...)
#define SNPRINTF_UTF8(dst, format,...)
#define ED_screen_areas_iter(win, screen, area_name)
#define BLI_assert_unreachable()
void add(ID *old_id, ID *new_id)
#define pf(_x, _i)
Prefetch 64.
float2x2 invert(float2x2 mat)
void storage_tag_main_data_dirty()
bool editmode_free_ex(Main *bmain, Object *obedit)
bool mode_set_ex(bContext *C, eObjectMode mode, bool use_undo, ReportList *reports)
bool editmode_enter_ex(Main *bmain, Scene *scene, Object *ob, int flag)
bool editmode_load(Main *bmain, Object *obedit)
void object_sculpt_mode_enter(Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob, bool force_dyntopo, ReportList *reports)
PopupMenu * popup_menu_begin(bContext *C, const char *title, int icon) ATTR_NONNULL()
void ED_mesh_mirror_topo_table_end(Object *ob)
@ V3D_RUNTIME_LOCAL_MAYBE_EMPTY
void BKE_object_sculpt_data_create(Object *ob)
ePF_FileCompare BKE_packedfile_compare_to_file(const char *ref_file_name, const char *filepath_rel, const PackedFile *pf)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
bool ED_editors_flush_edits(Main *bmain)
void unpack_menu(bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, PackedFile *pf)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
void ED_mesh_mirror_spatial_table_end(Object *ob)
void ED_spacedata_id_remap_single(ScrArea *area, SpaceLink *sl, ID *old_id, ID *new_id)
void ED_editors_init(bContext *C)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
void BKE_sculptsession_bm_to_me(Object *ob)
ViewLayer * WM_window_get_active_view_layer(const wmWindow *win)
void multires_flush_sculpt_updates(Object *object)
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
void ED_object_texture_paint_mode_enter_ex(Main &bmain, Scene &scene, Depsgraph &depsgraph, Object &ob)
bool BKE_scene_has_object(const Main &bmain, Scene *scene, Object *ob)
Scene * WM_window_get_active_scene(const wmWindow *win)
void ED_editors_init_for_undo(Main *bmain)
void DEG_id_tag_update(ID *id, unsigned int flags)
void ED_spacedata_id_remap(ScrArea *area, SpaceLink *sl, const bke::id::IDRemapper &mappings)
wmWindowManager * CTX_wm_manager(const bContext *C)
bool BKE_object_has_mode_data(const Object *ob, eObjectMode object_mode)
void ED_editors_exit(Main *bmain, bool do_undo_system)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
bool ED_paint_proj_mesh_data_check(Scene &scene, Object &ob, bool *r_has_uvs, bool *r_has_mat, bool *r_has_tex, bool *r_has_stencil)
bool BKE_object_use_sculptsession(eObjectMode mode)
SpaceType * BKE_spacetype_from_id(int spaceid)
char * BKE_object_data_editmode_flush_ptr_get(ID *id)
bool ED_editors_flush_edits_for_object(Main *bmain, Object *ob)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
void void void BLI_path_split_file_part(const char *filepath, char *file, size_t file_maxncpy) ATTR_NONNULL(1
Depsgraph * CTX_data_expect_evaluated_depsgraph(const bContext *C)
Main * CTX_data_main(const bContext *C)
bool ED_editors_flush_edits_for_object_ex(Main *bmain, Object *ob, bool check_needs_flush)
bool ED_object_posemode_enter_ex(Main *bmain, Object *ob)
void BKE_texpaint_slots_refresh_object(Scene *scene, Object *ob)
Scene * CTX_data_scene(const bContext *C)
void WM_event_timer_remove(wmWindowManager *wm, wmWindow *, wmTimer *timer)
void ED_object_vpaintmode_enter_ex(Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob)
bool BKE_collection_has_object_recursive(Collection *collection, Object *ob)
void BKE_undosys_stack_destroy(UndoStack *ustack)
void ED_space_image_paint_update(Main *bmain, wmWindowManager *wm, Scene *scene)
ReportList * CTX_wm_reports(const bContext *C)
bool BKE_id_is_editable(const Main *bmain, const ID *id)
bScreen * WM_window_get_active_screen(const wmWindow *win)
Object * CTX_data_active_object(const bContext *C)
bool ED_editors_flush_edits_ex(Main *bmain, bool check_needs_flush)
bScreen * ED_screen_animation_playing(const wmWindowManager *wm)
void ED_object_wpaintmode_enter_ex(Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob)
void apply_keyb_grid(bool shift, bool ctrl, float *val, float fac1, float fac2, float fac3, int invert)
void ED_area_tag_redraw(ScrArea *area)
ListBaseT< wmWindowManager > wm
bool is_memfile_undo_flush_needed
ListBaseT< Object > objects
ListBaseT< bScreen > screens
bke::ObjectRuntime * runtime
eObject_VisibilityFlag visibility_flag
struct Collection * master_collection
ListBaseT< SpaceLink > spacedata
ed::sculpt_paint::StrokeCache * cache
void(*) id_remap(ScrArea *area, SpaceLink *sl, const bke::id::IDRemapper &mappings)
struct wmTimer * animtimer
ListBaseT< struct ScrArea > areabase
SculptSession * sculpt_session
PointerRNA op(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag)