Blender  V2.59
Defines | Functions | Variables
object_edit.c File Reference
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <float.h>
#include <ctype.h>
#include <stddef.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLI_editVert.h"
#include "BLI_ghash.h"
#include "BLI_rand.h"
#include "DNA_armature_types.h"
#include "DNA_curve_types.h"
#include "DNA_group_types.h"
#include "DNA_lattice_types.h"
#include "DNA_material_types.h"
#include "DNA_meta_types.h"
#include "DNA_property_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_object_force.h"
#include "DNA_meshdata_types.h"
#include "DNA_vfont_types.h"
#include "IMB_imbuf_types.h"
#include "BKE_anim.h"
#include "BKE_constraint.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_effect.h"
#include "BKE_depsgraph.h"
#include "BKE_font.h"
#include "BKE_image.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_mball.h"
#include "BKE_mesh.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_pointcache.h"
#include "BKE_property.h"
#include "BKE_sca.h"
#include "BKE_softbody.h"
#include "BKE_modifier.h"
#include "ED_armature.h"
#include "ED_curve.h"
#include "ED_mesh.h"
#include "ED_mball.h"
#include "ED_lattice.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "object_intern.h"

Go to the source code of this file.

Defines

#define COPY_PROPERTIES_REPLACE   1
#define COPY_PROPERTIES_MERGE   2
#define COPY_PROPERTIES_COPY   3

Functions

static void error (const char *UNUSED(arg))
static void waitcursor (int UNUSED(val))
static int pupmenu (const char *UNUSED(msg))
static void error_libdata (void)
ObjectED_object_active_context (bContext *C)
static int object_hide_view_clear_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_hide_view_clear (wmOperatorType *ot)
static int object_hide_view_set_exec (bContext *C, wmOperator *op)
void OBJECT_OT_hide_view_set (wmOperatorType *ot)
static int object_hide_render_clear_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_hide_render_clear (wmOperatorType *ot)
static int object_hide_render_set_exec (bContext *C, wmOperator *op)
void OBJECT_OT_hide_render_set (wmOperatorType *ot)
void ED_object_exit_editmode (bContext *C, int flag)
void ED_object_enter_editmode (bContext *C, int flag)
static int editmode_toggle_exec (bContext *C, wmOperator *UNUSED(op))
static int editmode_toggle_poll (bContext *C)
void OBJECT_OT_editmode_toggle (wmOperatorType *ot)
static int posemode_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_posemode_toggle (wmOperatorType *ot)
static void special_editmenu (Scene *scene, View3D *v3d)
static void copymenu_properties (Scene *scene, View3D *v3d, Object *ob)
static void copymenu_logicbricks (Scene *scene, View3D *v3d, Object *ob)
static void copy_texture_space (Object *to, Object *ob)
static void copy_attr (Main *bmain, Scene *scene, View3D *v3d, short event)
static void copy_attr_menu (Main *bmain, Scene *scene, View3D *v3d)
static int forcefield_toggle_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_forcefield_toggle (wmOperatorType *ot)
void ED_objects_recalculate_paths (bContext *C, Scene *scene)
static int object_calculate_paths_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_paths_calculate (wmOperatorType *ot)
void ED_objects_clear_paths (bContext *C)
static int object_clear_paths_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_paths_clear (wmOperatorType *ot)
static int shade_smooth_exec (bContext *C, wmOperator *op)
static int shade_poll (bContext *C)
void OBJECT_OT_shade_flat (wmOperatorType *ot)
void OBJECT_OT_shade_smooth (wmOperatorType *ot)
static void image_aspect (Scene *scene, View3D *v3d)
static int vergbaseco (const void *a1, const void *a2)
static void auto_timeoffs (Scene *scene, View3D *v3d)
static void ofs_timeoffs (Scene *scene, View3D *v3d)
static void rand_timeoffs (Scene *scene, View3D *v3d)
static EnumPropertyItemobject_mode_set_itemsf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free)
static const char * object_mode_op_string (int mode)
static int object_mode_set_compat (bContext *UNUSED(C), wmOperator *op, Object *ob)
static int object_mode_set_exec (bContext *C, wmOperator *op)
void OBJECT_OT_mode_set (wmOperatorType *ot)
void ED_object_toggle_modes (bContext *C, int mode)
static int game_property_new (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_game_property_new (wmOperatorType *ot)
static int game_property_remove (bContext *C, wmOperator *op)
void OBJECT_OT_game_property_remove (wmOperatorType *ot)
static EnumPropertyItemgameprops_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free)
static int game_property_copy_exec (bContext *C, wmOperator *op)
void OBJECT_OT_game_property_copy (wmOperatorType *ot)
static int game_property_clear_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_game_property_clear (wmOperatorType *ot)
static int logicbricks_copy_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_logic_bricks_copy (wmOperatorType *ot)

Variables

static bContextevil_C
static EnumPropertyItem game_properties_copy_operations []
static EnumPropertyItem gameprops_items []

Detailed Description

Definition in file object_edit.c.


Define Documentation

#define COPY_PROPERTIES_COPY   3

Definition at line 2010 of file object_edit.c.

#define COPY_PROPERTIES_MERGE   2

Definition at line 2009 of file object_edit.c.

#define COPY_PROPERTIES_REPLACE   1

Definition at line 2008 of file object_edit.c.

Referenced by game_property_copy_exec().


Function Documentation

static void auto_timeoffs ( Scene scene,
View3D v3d 
) [static]
static void copy_attr ( Main bmain,
Scene scene,
View3D v3d,
short  event 
) [static]

Definition at line 1097 of file object_edit.c.

References BASACT, Curve::bevobj, Curve::bevresol, BKE_text_to_curve(), BLI_addhead(), BLI_addtail(), BLI_strncpy(), Object::boundtype, Object::bsoft, Object::col, Object::constraints, copy_bulletsoftbody(), copy_constraints(), copy_softbody(), copy_texture_space(), copymenu_logicbricks(), copymenu_properties(), CU_UV_ORCO, DAG_ids_flush_update(), DAG_scene_sort(), Object::damping, Object::data, Object::dloc, Object::dquat, Object::drot, Object::dsize, Object::dt, Object::dtx, Object::dup_group, Object::dupend, Object::dupoff, Object::dupon, Object::dupsta, ELEM, eModifierType_Softbody, eModifierType_Subsurf, Object::empty_drawsize, Object::empty_drawtype, Curve::ext1, Curve::ext2, Curve::family, ListBase::first, FIRSTBASE, Mesh::flag, Curve::flag, Object::formfactor, Curve::fsize, Object::gameflag, VFont::id, Group::id, Scene::id, id_lib_extern(), id_us_plus(), Object::index, Object::inertia, ID::lib, Curve::linedist, Object::loc, Object::margin, Object::mass, Object::max_vel, ME_AUTOSMOOTH, Object::min_vel, modifier_copyData(), modifier_new(), Object::modifiers, modifiers_findByType(), Base::next, Nurb::next, Object::nlastrips, Curve::nurb, OB_BOUNDS, OB_CURVE, OB_DUPLI, OB_FONT, OB_MESH, OB_RECALC_DATA, OB_RECALC_OB, OB_SURF, OBACT, Scene::obedit, Base::object, Object::protectflag, Object::quat, QUATCOPY, Object::rdamping, Object::recalc, Nurb::resolu, Curve::resolu, Curve::resolu_ren, Object::rot, sbFree(), Object::sf, Curve::shear, Object::size, Mesh::smoothresh, Object::soft, Object::softflag, Curve::spacemode, Curve::spacing, Curve::taperobj, TESTBASELIB, Curve::textoncurve, Object::transflag, TRUE, Object::type, Curve::ulheight, Curve::ulpos, ID::us, VECCOPY, Curve::vfont, Curve::vfontb, Curve::vfontbi, Curve::vfonti, Curve::width, Curve::wordspace, Curve::xof, and Curve::yof.

Referenced by copy_attr_menu().

static void copy_attr_menu ( Main bmain,
Scene scene,
View3D v3d 
) [static]
static void copy_texture_space ( Object to,
Object ob 
) [static]
static void copymenu_logicbricks ( Scene scene,
View3D v3d,
Object ob 
) [static]
static void copymenu_properties ( Scene scene,
View3D v3d,
Object ob 
) [static]
Object* ED_object_active_context ( bContext C) [read]
void ED_object_enter_editmode ( bContext C,
int  flag 
)
void ED_object_exit_editmode ( bContext C,
int  flag 
)
void ED_object_toggle_modes ( bContext C,
int  mode 
)
void ED_objects_clear_paths ( bContext C)
void ED_objects_recalculate_paths ( bContext C,
Scene scene 
)
static int editmode_toggle_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int editmode_toggle_poll ( bContext C) [static]
static void error ( const char *  UNUSEDarg) [static]

Definition at line 108 of file object_edit.c.

Referenced by ED_object_exit_editmode(), and special_editmenu().

static void error_libdata ( void  ) [static]

Definition at line 114 of file object_edit.c.

Referenced by ED_object_enter_editmode().

static int forcefield_toggle_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int game_property_clear_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int game_property_copy_exec ( bContext C,
wmOperator op 
) [static]
static int game_property_new ( bContext C,
wmOperator UNUSEDop 
) [static]
static int game_property_remove ( bContext C,
wmOperator op 
) [static]
static EnumPropertyItem* gameprops_itemf ( bContext C,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
int *  free 
) [static]
static void image_aspect ( Scene scene,
View3D v3d 
) [static]
static int logicbricks_copy_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int object_calculate_paths_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int object_clear_paths_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int object_hide_render_clear_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int object_hide_render_set_exec ( bContext C,
wmOperator op 
) [static]
static int object_hide_view_clear_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int object_hide_view_set_exec ( bContext C,
wmOperator op 
) [static]
static const char* object_mode_op_string ( int  mode) [static]
static int object_mode_set_compat ( bContext UNUSEDC,
wmOperator op,
Object ob 
) [static]
static int object_mode_set_exec ( bContext C,
wmOperator op 
) [static]
static EnumPropertyItem* object_mode_set_itemsf ( bContext C,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
int *  free 
) [static]
void OBJECT_OT_editmode_toggle ( wmOperatorType ot)
void OBJECT_OT_forcefield_toggle ( wmOperatorType ot)
void OBJECT_OT_game_property_clear ( wmOperatorType ot)
void OBJECT_OT_game_property_copy ( wmOperatorType ot)
void OBJECT_OT_game_property_new ( wmOperatorType ot)
void OBJECT_OT_game_property_remove ( wmOperatorType ot)
void OBJECT_OT_hide_render_clear ( wmOperatorType ot)
void OBJECT_OT_hide_render_set ( wmOperatorType ot)
void OBJECT_OT_hide_view_clear ( wmOperatorType ot)
void OBJECT_OT_hide_view_set ( wmOperatorType ot)
void OBJECT_OT_logic_bricks_copy ( wmOperatorType ot)
void OBJECT_OT_mode_set ( wmOperatorType ot)
void OBJECT_OT_paths_calculate ( wmOperatorType ot)
void OBJECT_OT_paths_clear ( wmOperatorType ot)
void OBJECT_OT_posemode_toggle ( wmOperatorType ot)
void OBJECT_OT_shade_flat ( wmOperatorType ot)
void OBJECT_OT_shade_smooth ( wmOperatorType ot)
static void ofs_timeoffs ( Scene scene,
View3D v3d 
) [static]

Definition at line 1735 of file object_edit.c.

References BASACT, CTX_DATA_BEGIN, CTX_DATA_END, MAXFRAMEF, NULL, and Object::sf.

static int posemode_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int pupmenu ( const char *  UNUSEDmsg) [static]

Definition at line 110 of file object_edit.c.

Referenced by copy_attr_menu(), copymenu_properties(), and special_editmenu().

static void rand_timeoffs ( Scene scene,
View3D v3d 
) [static]
static int shade_poll ( bContext C) [static]
static int shade_smooth_exec ( bContext C,
wmOperator op 
) [static]
static void special_editmenu ( Scene scene,
View3D v3d 
) [static]
static int vergbaseco ( const void *  a1,
const void *  a2 
) [static]

Definition at line 1678 of file object_edit.c.

Referenced by auto_timeoffs().

static void waitcursor ( int   UNUSEDval) [static]

Variable Documentation

bContext* evil_C [static]

Definition at line 113 of file object_edit.c.

Initial value:
{
        {COPY_PROPERTIES_REPLACE, "REPLACE", 0, "Replace Properties", ""},
        {COPY_PROPERTIES_MERGE, "MERGE", 0, "Merge Properties", ""},
        {COPY_PROPERTIES_COPY, "COPY", 0, "Copy a Property", ""},
        {0, NULL, 0, NULL, NULL}}

Definition at line 2012 of file object_edit.c.

Initial value:
 {
        {0, NULL, 0, NULL, NULL}}

Definition at line 2018 of file object_edit.c.

Referenced by gameprops_itemf().