diff --git a/source/blender/editors/object/object_hook.cc b/source/blender/editors/object/object_hook.cc index da73887d45a..7f05a818506 100644 --- a/source/blender/editors/object/object_hook.cc +++ b/source/blender/editors/object/object_hook.cc @@ -719,6 +719,7 @@ static int object_hook_remove_exec(bContext *C, wmOperator *op) BKE_modifier_remove_from_list(ob, (ModifierData *)hmd); BKE_modifier_free((ModifierData *)hmd); + DEG_relations_tag_update(CTX_data_main(C)); DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER, ob); diff --git a/source/blender/editors/space_file/filesel.cc b/source/blender/editors/space_file/filesel.cc index ab54d8839de..1b4dd5afa35 100644 --- a/source/blender/editors/space_file/filesel.cc +++ b/source/blender/editors/space_file/filesel.cc @@ -1099,7 +1099,9 @@ void ED_fileselect_init_layout(SpaceFile *sfile, ARegion *region) file_attribute_columns_init(params, layout); layout->rows = std::max(rowcount, numfiles); - BLI_assert(layout->rows != 0); + + /* layout->rows can be zero if a very small area is changed to a File Browser. #124168. */ + layout->height = sfile->layout->rows * (layout->tile_h + 2 * layout->tile_border_y) + layout->tile_border_y * 2 + layout->offset_top; layout->flag = FILE_LAYOUT_VER;