Blender V2.61 - r43446
|
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_packedFile_types.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_utildefines.h"
#include "BKE_packedFile.h"
#include "ED_armature.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "ED_sculpt.h"
#include "ED_util.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "WM_types.h"
#include "RNA_access.h"
Go to the source code of this file.
Functions | |
void | ED_editors_init (bContext *C) |
void | ED_editors_exit (bContext *C) |
void | apply_keyb_grid (int shift, int ctrl, float *val, float fac1, float fac2, float fac3, int invert) |
int | GetButStringLength (const char *str) |
void | unpack_menu (bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf) |
Definition in file ed_util.c.
void apply_keyb_grid | ( | int | shift, |
int | ctrl, | ||
float * | val, | ||
float | fac1, | ||
float | fac2, | ||
float | fac3, | ||
int | invert | ||
) |
void ED_editors_exit | ( | bContext * | C | ) |
Definition at line 91 of file ed_util.c.
References CTX_data_main(), Object::data, ED_armature_edit_free(), ED_undo_paint_free(), Mesh::edit_mesh, ListBase::first, free_editMesh(), Scene::id, MEM_freeN(), mesh_mirrtopo_table(), mesh_octree_table(), ID::next, NULL, OB_ARMATURE, OB_MESH, Scene::obedit, Main::scene, Object::type, and undo_editmode_clear().
Referenced by WM_exit_ext(), and wm_window_match_init().
void ED_editors_init | ( | bContext * | C | ) |
Definition at line 67 of file ed_util.c.
References Scene::basact, CTX_data_main(), CTX_data_scene(), Object::data, data, ED_object_toggle_modes(), ListBase::first, Object::id, ID::lib, Object::mode, ID::next, NULL, OB_MODE_POSE, Main::object, and Base::object.
Referenced by WM_read_file(), and WM_read_homefile().
int GetButStringLength | ( | const char * | str | ) |
Definition at line 152 of file ed_util.c.
References UI_GetStringWidth().
void unpack_menu | ( | bContext * | C, |
const char * | opname, | ||
const char * | id_name, | ||
const char * | abs_name, | ||
const char * | folder, | ||
struct PackedFile * | pf | ||
) |
Definition at line 162 of file ed_util.c.
References BLI_snprintf(), BLI_splitdirstring(), BLI_strncpy(), checkPackedFile(), FILE_MAX, FILE_MAXDIR, G, NULL, PF_DIFFERS, PF_EQUAL, PF_NOFILE, PF_REMOVE, PF_USE_LOCAL, PF_USE_ORIGINAL, PF_WRITE_LOCAL, PF_WRITE_ORIGINAL, RNA_enum_set(), RNA_string_set(), UI_ITEM_O_RETURN_PROPS, uiItemFullO(), uiPupMenuBegin(), uiPupMenuEnd(), uiPupMenuLayout(), and WM_OP_EXEC_DEFAULT.
Referenced by image_unpack_invoke(), and sound_unpack_invoke().