|
Blender
V2.93
|
#include <ctype.h>#include <stdlib.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_anim_types.h"#include "DNA_camera_types.h"#include "DNA_collection_types.h"#include "DNA_curve_types.h"#include "DNA_gpencil_modifier_types.h"#include "DNA_gpencil_types.h"#include "DNA_key_types.h"#include "DNA_light_types.h"#include "DNA_lightprobe_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_meta_types.h"#include "DNA_object_fluidsim_types.h"#include "DNA_object_force_types.h"#include "DNA_object_types.h"#include "DNA_pointcloud_types.h"#include "DNA_scene_types.h"#include "DNA_vfont_types.h"#include "BLI_ghash.h"#include "BLI_listbase.h"#include "BLI_math.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_action.h"#include "BKE_anim_data.h"#include "BKE_armature.h"#include "BKE_camera.h"#include "BKE_collection.h"#include "BKE_constraint.h"#include "BKE_context.h"#include "BKE_curve.h"#include "BKE_displist.h"#include "BKE_duplilist.h"#include "BKE_effect.h"#include "BKE_font.h"#include "BKE_geometry_set.h"#include "BKE_gpencil_curve.h"#include "BKE_gpencil_geom.h"#include "BKE_gpencil_modifier.h"#include "BKE_hair.h"#include "BKE_key.h"#include "BKE_lattice.h"#include "BKE_layer.h"#include "BKE_lib_id.h"#include "BKE_lib_query.h"#include "BKE_lib_remap.h"#include "BKE_light.h"#include "BKE_lightprobe.h"#include "BKE_main.h"#include "BKE_material.h"#include "BKE_mball.h"#include "BKE_mesh.h"#include "BKE_mesh_runtime.h"#include "BKE_nla.h"#include "BKE_object.h"#include "BKE_particle.h"#include "BKE_pointcloud.h"#include "BKE_report.h"#include "BKE_scene.h"#include "BKE_speaker.h"#include "BKE_volume.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_build.h"#include "DEG_depsgraph_query.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 "ED_armature.h"#include "ED_curve.h"#include "ED_gpencil.h"#include "ED_mball.h"#include "ED_mesh.h"#include "ED_node.h"#include "ED_object.h"#include "ED_outliner.h"#include "ED_physics.h"#include "ED_render.h"#include "ED_screen.h"#include "ED_transform.h"#include "ED_view3d.h"#include "UI_resources.h"#include "object_intern.h"Go to the source code of this file.
Local Enum Declarations | |
| enum | { ALIGN_WORLD = 0 , ALIGN_VIEW , ALIGN_CURSOR } |
| const EnumPropertyItem | rna_enum_light_type_items [] |
| static const EnumPropertyItem | field_type_items [] |
| static EnumPropertyItem | lightprobe_type_items [] |
| static const EnumPropertyItem | align_options [] |
Add Gpencil Operator | |
| static EnumPropertyItem | rna_enum_gpencil_add_stroke_depth_order_items [] |
| static bool | object_gpencil_add_poll (bContext *C) |
| static int | object_gpencil_add_exec (bContext *C, wmOperator *op) |
| static void | object_add_ui (bContext *UNUSED(C), wmOperator *op) |
| void | OBJECT_OT_gpencil_add (wmOperatorType *ot) |
Data Convert Operator | |
| static const EnumPropertyItem | convert_target_items [] |
| static void | object_data_convert_ensure_curve_cache (Depsgraph *depsgraph, Scene *scene, Object *ob) |
| static void | object_data_convert_curve_to_mesh (Main *bmain, Depsgraph *depsgraph, Object *ob) |
| static bool | object_convert_poll (bContext *C) |
| static Base * | duplibase_for_convert (Main *bmain, Depsgraph *depsgraph, Scene *scene, ViewLayer *view_layer, Base *base, Object *ob) |
| static int | object_convert_exec (bContext *C, wmOperator *op) |
| static void | object_convert_ui (bContext *C, wmOperator *op) |
| void | OBJECT_OT_convert (wmOperatorType *ot) |
| anonymous enum |
| Enumerator | |
|---|---|
| ALIGN_WORLD | |
| ALIGN_VIEW | |
| ALIGN_CURSOR | |
Definition at line 179 of file object_add.c.
|
static |
Definition at line 1616 of file object_add.c.
References BKE_collection_cycle_find(), BKE_layer_collection_activate_parent(), BKE_layer_collection_get_active(), BKE_libblock_find_name(), BLI_findlink(), C, LayerCollection::collection, Main::collections, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_location_from_view(), ED_view3d_cursor3d_position(), Object::empty_drawsize, Collection::id, Scene::id, ID_GR, ID_RECALC_SELECT, id_us_plus(), Object::instance_collection, MAX_ID_NAME, ID::name, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, NULL, OB_DUPLICOLLECTION, OB_EMPTY, object_add_drop_xy_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_property_float_set_array(), RNA_property_is_set(), RNA_property_string_get(), RNA_struct_find_property(), rot, scene, Object::transflag, and WM_event_add_notifier().
Referenced by OBJECT_OT_collection_instance_add().
|
static |
Definition at line 2111 of file object_add.c.
References BKE_libblock_relink_to_newid(), BKE_main_id_clear_newpoins(), BKE_main_id_tag_all(), BLI_assert, C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, GS, ID_OB, LIB_TAG_NEW, ID::name, and ID::tag.
Referenced by duplicate_exec(), and object_add_named_exec().
|
static |
Definition at line 2613 of file object_add.c.
References BA_DESELECT, BA_SELECT, BKE_collection_object_add_from(), BKE_id_copy(), BKE_scene_graph_update_tagged(), BKE_view_layer_base_find(), CD_MASK_MESH, Scene::customdata_mask, CustomData_MeshMasks_update(), Object::data, DEG_graph_tag_relations_update(), DEG_id_tag_update(), depsgraph, ED_object_base_select(), Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, id_us_min(), NULL, OB_EMPTY, OB_MBALL, Base::object, scene, and Object::type.
Referenced by object_convert_exec().
|
static |
Definition at line 3347 of file object_add.c.
References BA_DESELECT, BA_SELECT, BASACT, BKE_main_id_clear_newpoins(), BKE_main_id_tag_all(), C, copy_object_set_idnew(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_base_activate(), ED_object_base_select(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, LIB_TAG_NEW, NC_SCENE, ND_LAYER_CONTENT, ND_OB_SELECT, NULL, Base::object, object_add_duplicate_internal(), OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_duplicate().
|
static |
Definition at line 2196 of file object_add.c.
References Freestyle::a, MAX_DUPLI_RECUR, DupliObject::ob, OB_DUPLICOLLECTION, DupliObject::persistent_id, and DupliObject::type.
Referenced by make_object_duplilist_real().
|
static |
Definition at line 2163 of file object_add.c.
References BLI_ghashutil_ptrhash(), hash, MAX_DUPLI_RECUR, DupliObject::ob, OB_DUPLICOLLECTION, DupliObject::persistent_id, ptr, and DupliObject::type.
Referenced by make_object_duplilist_real().
|
static |
Definition at line 2230 of file object_add.c.
References Freestyle::a, MAX_DUPLI_RECUR, and DupliObject::persistent_id.
Referenced by make_object_duplilist_real().
|
static |
Definition at line 2185 of file object_add.c.
References BLI_ghashutil_inthash, hash, MAX_DUPLI_RECUR, DupliObject::persistent_id, and ptr.
Referenced by make_object_duplilist_real().
| Base* ED_object_add_duplicate | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| Base * | base, | ||
| const eDupli_ID_Flags | dupflag | ||
| ) |
Definition at line 3313 of file object_add.c.
References BKE_libblock_relink_to_newid(), BKE_main_id_clear_newpoins(), Object::data, DEG_id_tag_update_ex(), Object::id, ID_RECALC_EDITORS, LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, NULL, Base::object, object_add_duplicate_internal(), and scene.
Referenced by gpencil_stroke_separate_exec(), mesh_separate_arrays(), mesh_separate_tagged(), separate_armature_exec(), and separate_exec().
| bool ED_object_add_generic_get_opts | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char | view_align_axis, | ||
| float | loc[3], | ||
| float | rot[3], | ||
| float | scale[3], | ||
| bool * | enter_editmode, | ||
| ushort * | local_view_bits, | ||
| bool * | is_view_aligned | ||
| ) |
Definition at line 455 of file object_add.c.
References ALIGN_CURSOR, ALIGN_VIEW, ALIGN_WORLD, BKE_scene_cursor_rot_to_mat3(), C, copy_v3_fl(), CTX_data_scene(), CTX_wm_view3d(), Scene::cursor, ED_object_location_from_view(), ED_object_rotation_from_view(), View3D::local_view_uuid, View3D::localvd, mat3_normalized_to_eul(), wmOperator::ptr, RNA_float_get_array(), RNA_float_set_array(), RNA_property_boolean_get(), RNA_property_boolean_set(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_float_get_array(), RNA_property_float_set_array(), RNA_property_is_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), rot, scene, USER_ADD_CURSORALIGNED, USER_ADD_EDITMODE, and USER_ADD_VIEWALIGNED.
Referenced by add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cube_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_monkey_exec(), add_primitive_plane_exec(), add_primitive_uvsphere_exec(), collection_instance_add_exec(), curvesurf_prim_add(), effector_add_exec(), empty_drop_named_image_invoke(), lightprobe_add_exec(), object_add_exec(), object_add_text_exec(), object_armature_add_exec(), object_camera_add_exec(), object_data_instance_add_exec(), object_empty_add_exec(), object_gpencil_add_exec(), object_hair_add_exec(), object_light_add_exec(), object_metaball_add_exec(), object_pointcloud_add_exec(), object_speaker_add_exec(), and object_volume_add().
| void ED_object_add_generic_props | ( | wmOperatorType * | ot, |
| bool | do_editmode | ||
| ) |
Definition at line 397 of file object_add.c.
References align_options, ALIGN_WORLD, DEG2RADF, NULL, OBJECT_ADD_SIZE_MAXF, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_rotation(), RNA_def_float_vector_xyz(), RNA_def_property_flag(), RNA_def_property_update_runtime(), wmOperatorType::srna, and view_align_update().
Referenced by CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cube_add_gizmo(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), MESH_OT_primitive_uv_sphere_add(), OBJECT_OT_add(), OBJECT_OT_armature_add(), OBJECT_OT_camera_add(), OBJECT_OT_collection_instance_add(), OBJECT_OT_data_instance_add(), OBJECT_OT_drop_named_image(), OBJECT_OT_effector_add(), OBJECT_OT_empty_add(), OBJECT_OT_gpencil_add(), OBJECT_OT_hair_add(), OBJECT_OT_light_add(), OBJECT_OT_lightprobe_add(), OBJECT_OT_metaball_add(), OBJECT_OT_pointcloud_add(), OBJECT_OT_speaker_add(), OBJECT_OT_text_add(), OBJECT_OT_volume_add(), OBJECT_OT_volume_import(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), and SURFACE_OT_primitive_nurbs_surface_torus_add().
| void ED_object_add_mesh_props | ( | wmOperatorType * | ot | ) |
Definition at line 450 of file object_add.c.
References ot, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cube_add_gizmo(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), and MESH_OT_primitive_uv_sphere_add().
| Object* ED_object_add_type | ( | bContext * | C, |
| const int | type, | ||
| const char * | name, | ||
| const float | loc[3], | ||
| const float | rot[3], | ||
| const bool | enter_editmode, | ||
| const ushort | local_view_bits | ||
| ) |
Definition at line 659 of file object_add.c.
References C, ED_object_add_type_with_obdata(), NULL, rot, and type.
Referenced by collection_instance_add_exec(), collection_instance_exec(), curvesurf_prim_add(), ED_gpencil_add_object(), effector_add_exec(), empty_drop_named_image_invoke(), geometry_extract_apply(), lightprobe_add_exec(), make_prim_init(), object_add_exec(), object_add_text_exec(), object_armature_add_exec(), object_camera_add_exec(), object_empty_add_exec(), object_gpencil_add_exec(), object_hair_add_exec(), object_light_add_exec(), object_metaball_add_exec(), object_pointcloud_add_exec(), object_speaker_add_exec(), object_volume_add(), and paint_mask_slice_exec().
| Object* ED_object_add_type_with_obdata | ( | bContext * | C, |
| const int | type, | ||
| const char * | name, | ||
| const float | loc[3], | ||
| const float | rot[3], | ||
| const bool | enter_editmode, | ||
| const ushort | local_view_bits, | ||
| ID * | obdata | ||
| ) |
For object add primitive operators, or for object creation when obdata != NULL.
| obdata | Assigned to Object.data, with increased user count. |
Definition at line 596 of file object_add.c.
References ViewLayer::basact, BASACT, BKE_id_material_len_p(), BKE_object_add(), BKE_object_add_for_data(), BKE_object_materials_test(), BKE_object_obdata_to_type(), BLI_assert, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), Object::data, DEG_id_tag_update(), DEG_id_tag_update_ex(), DEG_id_type_tag(), DEG_relations_tag_update(), ED_object_base_activate(), ED_object_base_init_transform_on_add(), ED_object_editmode_enter_ex(), ED_object_editmode_exit_ex(), ED_outliner_select_sync_from_object_tag(), EM_FREEDATA, Scene::id, ID_OB, ID_RECALC_EDITORS, NC_SCENE, ND_LAYER_CONTENT, NULL, OBEDIT_FROM_VIEW_LAYER, rot, scene, type, and WM_event_add_notifier().
Referenced by ED_object_add_type(), and object_data_instance_add_exec().
| void ED_object_add_unit_props_radius | ( | wmOperatorType * | ot | ) |
Definition at line 392 of file object_add.c.
References ED_object_add_unit_props_radius_ex(), and ot.
Referenced by CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_uv_sphere_add(), OBJECT_OT_add(), OBJECT_OT_armature_add(), OBJECT_OT_effector_add(), OBJECT_OT_empty_add(), OBJECT_OT_gpencil_add(), OBJECT_OT_light_add(), OBJECT_OT_lightprobe_add(), OBJECT_OT_text_add(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), and SURFACE_OT_primitive_nurbs_surface_torus_add().
| void ED_object_add_unit_props_radius_ex | ( | wmOperatorType * | ot, |
| float | default_value | ||
| ) |
Definition at line 386 of file object_add.c.
References OBJECT_ADD_SIZE_MAXF, ot, RNA_def_float_distance(), and wmOperatorType::srna.
Referenced by ED_object_add_unit_props_radius(), and OBJECT_OT_metaball_add().
| void ED_object_add_unit_props_size | ( | wmOperatorType * | ot | ) |
Definition at line 380 of file object_add.c.
References OBJECT_ADD_SIZE_MAXF, ot, RNA_def_float_distance(), and wmOperatorType::srna.
Referenced by MESH_OT_primitive_cube_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_monkey_add(), and MESH_OT_primitive_plane_add().
Definition at line 1958 of file object_add.c.
References BKE_library_ID_is_indirectly_used(), BKE_scene_collections_object_remove(), DEG_id_tag_update_ex(), Object::id, ID_EXTRA_USERS, ID_REAL_USERS, ID_RECALC_BASE_FLAGS, ID::name, and scene.
Referenced by convert_proxy_to_override_exec(), ED_armature_join_objects_exec(), ED_curve_join_objects_exec(), ED_gpencil_join_objects_exec(), ED_mesh_join_objects_exec(), id_override_library_create_fn(), make_override_library_exec(), and object_convert_exec().
Remove base from a specific scene. ob must not be indirectly used.
Definition at line 1979 of file object_add.c.
References BKE_library_ID_is_indirectly_used(), BKE_scene_collections_object_remove(), BLI_assert, DEG_id_tag_update_ex(), Object::id, ID_RECALC_BASE_FLAGS, and scene.
Referenced by object_delete_exec().
| void ED_object_base_init_transform_on_add | ( | Object * | object, |
| const float | loc[3], | ||
| const float | rot[3] | ||
| ) |
Definition at line 319 of file object_add.c.
References BKE_object_to_mat4(), copy_v3_v3(), Object::loc, Object::obmat, rot, and Object::rot.
Referenced by ED_object_add_type_with_obdata(), and txt_add_object().
Definition at line 272 of file object_add.c.
References C, copy_v3_v3(), CTX_data_scene(), Scene::cursor, View3DCursor::location, and scene.
Referenced by collection_instance_add_exec(), ED_object_add_generic_get_opts(), empty_drop_named_image_invoke(), object_add_named_exec(), and object_data_instance_add_exec().
| float ED_object_new_primitive_matrix | ( | bContext * | C, |
| Object * | obedit, | ||
| const float | loc[3], | ||
| const float | rot[3], | ||
| float | r_primmat[4][4] | ||
| ) |
Definition at line 334 of file object_add.c.
References C, copy_m3_m4(), copy_m4_m3(), copy_v3_v3(), CTX_data_scene(), CTX_wm_view3d(), ED_scene_grid_scale(), ED_view3d_grid_scale(), eul_to_mat3(), invert_m3(), invert_m3_m3(), mul_m3_m3m3(), mul_m3_v3(), NULL, Object::obmat, rot, scene, sub_v3_v3v3(), and unit_m4().
Referenced by curvesurf_prim_add(), effector_add_exec(), make_prim_init(), object_gpencil_add_exec(), and object_metaball_add_exec().
Definition at line 278 of file object_add.c.
References axis_angle_to_quat(), BLI_assert, float(), M_PI_2, mul_qt_qtqt(), quat_to_eul(), and rot.
Referenced by ED_object_rotation_from_view().
Definition at line 304 of file object_add.c.
References BLI_assert, C, copy_qt_qt(), CTX_wm_region_view3d(), ED_object_rotation_from_quat(), rot, RegionView3D::viewquat, and zero_v3().
Referenced by ED_object_add_generic_get_opts(), and empty_drop_named_image_invoke().
|
static |
Definition at line 835 of file object_add.c.
References BKE_object_obdata_size_init(), BKE_partdeflect_new(), BLI_addtail(), C, CTX_data_main(), CTX_data_scene(), CU_3D, CU_NURBS, CU_PATH, CU_PRIM_PATH, Object::data, DEG_relations_tag_update(), ED_curve_add_nurbs_primitive(), ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_editmode_enter_ex(), ED_object_editmode_exit_ex(), ED_object_new_primitive_matrix(), Curve::editnurb, ELEM, EM_FREEDATA, Object::empty_drawtype, Curve::flag, get_effector_defname(), mul_mat3_m4_fl(), NULL, EditNurb::nurbs, OB_CURVE, OB_EMPTY, OB_SINGLE_ARROW, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pd, PFIELD_GUIDE, PFIELD_VORTEX, PFIELD_WIND, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), rot, scene, type, and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_effector_add().
|
static |
Definition at line 1205 of file object_add.c.
References BKE_object_empty_draw_type_set(), C, CTX_data_scene(), Object::data, DEG_id_tag_update(), ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_location_from_view(), ED_object_rotation_from_view(), ED_view3d_cursor3d_position(), ED_view3d_give_object_under_cursor(), Object::empty_drawsize, Image::id, ID_IM, ID_RECALC_TRANSFORM, id_us_min(), id_us_plus(), Object::loc, wmEvent::mval, NC_SCENE, ND_OB_ACTIVE, NULL, OB_EMPTY, OB_EMPTY_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, rot, Object::rot, scene, Object::type, WM_event_add_notifier(), and WM_operator_drop_load_path().
Referenced by OBJECT_OT_drop_named_image().
|
static |
Definition at line 796 of file object_add.c.
References BLI_assert, BLT_I18NCONTEXT_ID_OBJECT, CTX_DATA_, NUM_PFIELD_TYPES, PFIELD_BOID, PFIELD_CHARGE, PFIELD_DRAG, PFIELD_FLUIDFLOW, PFIELD_FORCE, PFIELD_GUIDE, PFIELD_HARMONIC, PFIELD_LENNARDJ, PFIELD_MAGNET, PFIELD_NULL, PFIELD_TEXTURE, PFIELD_TURBULENCE, PFIELD_VORTEX, PFIELD_WIND, and type.
Referenced by effector_add_exec().
|
static |
Definition at line 1532 of file object_add.c.
References BLT_I18NCONTEXT_ID_LIGHT, CTX_DATA_, LA_AREA, LA_LOCAL, LA_SPOT, LA_SUN, and type.
Referenced by object_light_add_exec().
|
static |
Definition at line 727 of file object_add.c.
References BLT_I18NCONTEXT_ID_LIGHT, CTX_DATA_, LIGHTPROBE_TYPE_CUBE, LIGHTPROBE_TYPE_GRID, LIGHTPROBE_TYPE_PLANAR, and type.
Referenced by lightprobe_add_exec().
|
static |
Definition at line 3650 of file object_add.c.
References BKE_object_obdata_is_libdata(), BKE_report(), C, CTX_data_active_object(), ED_mesh_shapes_join_objects_exec(), Object::mode, OB_MESH, OB_MODE_EDIT, OPERATOR_CANCELLED, wmOperator::reports, RPT_ERROR, and Object::type.
Referenced by OBJECT_OT_join_shapes().
|
static |
Definition at line 3634 of file object_add.c.
References C, CTX_data_active_object(), Object::data, ED_operator_screenactive(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, NULL, OB_MESH, and Object::type.
Referenced by OBJECT_OT_join_shapes().
|
static |
Definition at line 741 of file object_add.c.
References BKE_lightprobe_type_set(), C, copy_v3_fl(), CTX_data_main(), Object::data, DEG_relations_tag_update(), ED_object_add_generic_get_opts(), ED_object_add_type(), get_lightprobe_defname(), NULL, OB_LIGHTPROBE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), rot, Object::scale, type, and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_lightprobe_add().
|
static |
Definition at line 2255 of file object_add.c.
References Object::adt, BA_DESELECT, BA_SELECT, BKE_animdata_free(), BKE_collection_object_add_from(), BKE_constraints_free(), BKE_id_copy(), BKE_libblock_relink_to_newid(), BKE_main_id_clear_newpoins(), BKE_object_apply_mat4(), BKE_scene_object_base_flag_sync_from_base(), BKE_view_layer_base_find(), BLI_assert, BLI_ghash_ensure_p(), BLI_ghash_free(), BLI_ghash_insert(), BLI_ghash_lookup(), BLI_ghash_new(), BLI_ghash_ptr_new(), BLI_listbase_is_empty(), BLI_strncpy(), C, Object::constraints, copy_m4_m4(), CTX_data_main(), CTX_data_view_layer(), Object_Runtime::curve_cache, DEG_get_evaluated_object(), DEG_get_original_object(), DEG_id_tag_update(), depsgraph, dupliobject_cmp(), dupliobject_hash(), dupliobject_instancer_cmp(), dupliobject_instancer_hash(), ED_object_base_select(), free_object_duplilist(), Object::id, ID_NEW_SET, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, id_us_min(), Object::instance_collection, LISTBASE_FOREACH, Object::mat, MAX_DUPLI_RECUR, NULL, DupliObject::ob, OB_DUPLI, OB_DUPLICOLLECTION, Base::object, object_duplilist(), object_has_geometry_set_instances(), Main::objects, Object::obmat, Object::par1, Object::par2, Object::par3, Object::parent, Object::parentinv, PAROBJECT, Object::parsubstr, Object::partype, DupliObject::persistent_id, Object::proxy, Object::proxy_from, Object::proxy_group, Object::runtime, scene, Object::totcol, Object::transflag, and DupliObject::type.
Referenced by object_duplicates_make_real_exec().
|
static |
Set the drop coordinate to the mouse position (if not already set) and call the operator's exec() callback.
Definition at line 257 of file object_add.c.
References C, wmOperatorType::exec, object_add_drop_xy_is_set(), wmOperator::ptr, RNA_int_set(), wmOperator::type, wmEvent::x, and wmEvent::y.
Referenced by OBJECT_OT_add_named(), and OBJECT_OT_data_instance_add().
|
static |
Query the currently set X- and Y-coordinate to position the new object under.
| r_mval | Returned pointer to the coordinate in region-space. |
Definition at line 238 of file object_add.c.
References C, CTX_wm_region(), object_add_drop_xy_is_set(), wmOperator::ptr, RNA_int_get(), ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by collection_instance_add_exec(), object_add_named_exec(), and object_data_instance_add_exec().
|
static |
Definition at line 228 of file object_add.c.
References wmOperator::ptr, and RNA_struct_property_is_set().
Referenced by object_add_drop_xy_generic_invoke(), object_add_drop_xy_get(), and object_instance_add_invoke().
|
static |
Operator properties for creating an object under a screen space (2D) coordinate. Used for object dropping like behavior (drag object and drop into 3D View).
Definition at line 202 of file object_add.c.
References ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by OBJECT_OT_add_named(), OBJECT_OT_collection_instance_add(), and OBJECT_OT_data_instance_add().
|
static |
Definition at line 3261 of file object_add.c.
References BASE_VISIBLE_DEPSGRAPH, BKE_collection_has_object(), BKE_collection_object_add(), BKE_collection_object_add_from(), BKE_layer_collection_get_active(), BKE_object_duplicate(), BKE_view_layer_base_find(), LayerCollection::collection, Main::collections, DEG_id_tag_update(), ListBase::first, Base::flag, Collection::id, Object::id, ID_NEW_SET, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, Base::local_view_bits, Object::mode, ID::next, NULL, OB_MODE_POSE, Object::rigidbody_constraint, Object::rigidbody_object, and scene.
Referenced by duplicate_exec(), ED_object_add_duplicate(), and object_add_named_exec().
|
static |
Definition at line 672 of file object_add.c.
References BKE_object_obdata_size_init(), C, copy_v3_fl(), ED_object_add_generic_get_opts(), ED_object_add_type(), NULL, OB_LATTICE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), rot, Object::scale, Object::type, and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_add().
|
static |
Definition at line 3440 of file object_add.c.
References BA_DESELECT, BA_SELECT, BKE_libblock_find_name(), BKE_report(), C, copy_object_set_idnew(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_base_activate(), ED_object_base_deselect_all(), ED_object_base_select(), ED_object_location_from_view(), ED_outliner_select_sync_from_object_tag(), ED_view3d_cursor3d_position(), Scene::id, ID_OB, ID_RECALC_SELECT, LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, Object::loc, MAX_ID_NAME, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, ND_OB_SELECT, NULL, OB_RESTRICT_VIEWPORT, Base::object, object_add_drop_xy_get(), object_add_duplicate_internal(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, Object::restrictflag, RNA_boolean_get(), RNA_string_get(), RPT_ERROR, scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_add_named().
|
static |
Definition at line 1044 of file object_add.c.
References BKE_object_obdata_size_init(), C, CTX_data_edit_object(), ED_object_add_generic_get_opts(), ED_object_add_type(), NC_OBJECT, ND_DRAW, NULL, OB_FONT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), rot, Object::type, WM_event_add_notifier(), and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_text_add().
|
static |
Definition at line 1457 of file object_add.c.
References GP_LRT_COLLECTION, GP_LRT_OBJECT, GP_LRT_SCENE, wmOperator::layout, NULL, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), type, uiItemR(), uiLayoutRow(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by OBJECT_OT_gpencil_add().
|
static |
Definition at line 1093 of file object_add.c.
References BKE_report(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region_view3d(), DEG_id_tag_update(), ED_armature_ebone_add_primitive(), ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_editmode_enter_ex(), ED_object_editmode_exit_ex(), EM_FREEDATA, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, NULL, OB_ARMATURE, OBEDIT_FROM_VIEW_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_float_get(), rot, RPT_ERROR, scene, Object::type, USER_ADD_VIEWALIGNED, WM_event_add_notifier(), and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_armature_add().
|
static |
Definition at line 912 of file object_add.c.
References ALIGN_VIEW, C, Scene::camera, View3D::camera, CTX_data_scene(), CTX_wm_view3d(), Object::data, Camera::drawsize, ED_object_add_generic_get_opts(), ED_object_add_type(), ED_scene_grid_scale(), ED_view3d_grid_scale(), NULL, OB_CAMERA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_set(), rot, scene, and View3D::scenelock.
Referenced by OBJECT_OT_camera_add().
|
static |
Definition at line 2663 of file object_add.c.
References Freestyle::a, Object::actcol, angle(), BASACT, Object::base_flag, BASE_SELECTED, BKE_curve_dimension_update(), BKE_gpencil_convert_curve(), BKE_gpencil_convert_mesh(), BKE_id_copy(), BKE_mball_basis_find(), BKE_mball_is_basis(), BKE_mesh_add(), BKE_mesh_copy_for_eval(), BKE_mesh_edges_set_draw_render(), BKE_mesh_from_metaball(), BKE_mesh_nomain_to_mesh(), BKE_mesh_to_curve(), BKE_mesh_to_pointcloud(), BKE_object_free_curve_cache(), BKE_object_free_modifiers(), BKE_object_free_shaderfx(), BKE_object_material_slot_remove(), BKE_object_material_slot_used(), BKE_object_materials_test(), BKE_pointcloud_to_mesh(), BKE_report(), BKE_scene_graph_update_tagged(), BKE_vfont_to_curve_ex(), BLI_freelistN(), C, CD_MASK_MESH, copy_v3_v3(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_selected_editable_bases(), CTX_data_view_layer(), CTX_wm_view3d(), CU_3D, Object_Runtime::curve_cache, Scene::customdata_mask, CustomData_MeshMasks_update(), Object::data, DEG_get_evaluated_id(), DEG_get_evaluated_object(), DEG_id_tag_update(), DEG_relations_tag_update(), depsgraph, CurveCache::disp, bGPdata::draw_mode, duplibase_for_convert(), ED_gpencil_add_object(), ED_object_base_activate(), ED_object_base_free_and_unlink(), ED_rigidbody_object_remove(), ELEM, ListBase::first, Curve::flag, Base::flag, Object::flag, FO_EDIT, FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, GP_DRAWMODE_3D, Curve::id, Mesh::id, MetaBall::id, Object::id, PointCloud::id, Scene::id, VFont::id, ID_IS_LINKED, ID_REAL_USERS, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, id_us_min(), id_us_plus(), IS_TAGGED, LIB_TAG_DOIT, LISTBASE_FOREACH, Object::loc, View3D::local_view_uuid, View3D::localvd, Mesh::mat, MetaBall::mat, mat3_to_eul(), mat4_to_loc_rot_size(), MEM_dupallocN, mesh_get_eval_final(), NC_OBJECT, NC_SCENE, ND_DATA, ND_DRAW, ND_LAYER_CONTENT, ND_MODIFIER, ND_OB_SELECT, ID::next, NULL, Curve::nurb, OB_CURVE, OB_DONE, OB_FONT, OB_GPENCIL, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, Base::object, object_data_convert_curve_to_mesh(), object_data_convert_ensure_curve_cache(), Main::objects, Object::obmat, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, Object::rigidbody_object, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RNA_int_get(), rot, Object::rot, RPT_ERROR, RPT_INFO, Object::runtime, Object::scale, scene, SELECT, size(), Mesh::totcol, MetaBall::totcol, Object::totcol, Curve::type, Object::type, unit_m4(), Curve::vfont, Curve::vfontb, Curve::vfontbi, Curve::vfonti, and WM_event_add_notifier().
Referenced by OBJECT_OT_convert().
|
static |
Definition at line 2597 of file object_add.c.
References BASE_SELECTED, BKE_object_is_in_editmode(), C, CTX_data_active_base(), CTX_data_scene(), Object::data, Base::flag, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, NULL, Base::object, and scene.
Referenced by OBJECT_OT_convert().
|
static |
Definition at line 3171 of file object_add.c.
References C, CTX_wm_manager(), wmWindowManager::id, wmOperator::layout, NULL, OB_GPENCIL, wmOperator::properties, ptr, RNA_enum_get(), RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, uiItemR(), and uiLayoutSetPropSep().
Referenced by OBJECT_OT_convert().
|
static |
Definition at line 2564 of file object_add.c.
References BKE_mesh_new_from_object_to_bmain(), BKE_object_free_modifiers(), curve, Object::data, DEG_get_evaluated_object(), depsgraph, Curve::id, Mesh::id, id_us_min(), id_us_plus(), LISTBASE_FOREACH, mesh, NULL, OB_MESH, Main::objects, and Object::type.
Referenced by object_convert_exec().
|
static |
Definition at line 2545 of file object_add.c.
References BKE_displist_make_curveTypes(), BKE_displist_make_mball(), Object_Runtime::curve_cache, depsgraph, ELEM, NULL, OB_CURVE, OB_FONT, OB_MBALL, OB_SURF, Object::runtime, scene, and Object::type.
Referenced by object_convert_exec().
|
static |
Definition at line 1726 of file object_add.c.
References BKE_libblock_find_name(), BKE_object_obdata_to_type(), C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_add_generic_get_opts(), ED_object_add_type_with_obdata(), ED_object_location_from_view(), ED_view3d_cursor3d_position(), id, Scene::id, ID_RECALC_SELECT, MAX_ID_NAME, ID::name, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, NULL, object_add_drop_xy_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_property_enum_get(), RNA_property_float_set_array(), RNA_property_is_set(), RNA_property_string_get(), RNA_struct_find_property(), rot, scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_data_instance_add().
|
static |
Definition at line 1986 of file object_add.c.
References BKE_id_multi_tagged_delete(), BKE_library_ID_is_indirectly_used(), BKE_main_id_tag_all(), BKE_main_id_tag_listbase(), BKE_reportf(), C, CTX_DATA_BEGIN, CTX_data_edit_object(), CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CTX_wm_manager(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_base_free_and_unlink_no_indirect_check(), ListBase::first, Main::gpencils, bGPdata::id, Scene::id, ID_EXTRA_USERS, ID_REAL_USERS, ID_RECALC_GEOMETRY, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, LIB_TAG_DOIT, LIB_TAG_INDIRECT, LISTBASE_FOREACH, ID::name, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, NULL, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, RPT_WARNING, scene, Main::scenes, ID::tag, wmWindowManager::windows, WM_event_add_notifier(), and WM_window_get_active_scene().
Referenced by OBJECT_OT_delete().
|
static |
Definition at line 2462 of file object_add.c.
References BKE_main_id_clear_newpoins(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), DEG_relations_tag_update(), depsgraph, ED_outliner_select_sync_from_object_tag(), make_object_duplilist_real(), NC_OBJECT, NC_SCENE, ND_DRAW, ND_PARENT, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), scene, WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by OBJECT_OT_duplicates_make_real().
|
static |
Definition at line 1164 of file object_add.c.
References BKE_object_empty_draw_type_set(), BKE_object_obdata_size_init(), C, ED_object_add_generic_get_opts(), ED_object_add_type(), NULL, OB_EMPTY, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), rot, type, and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_empty_add().
|
static |
Definition at line 1307 of file object_add.c.
References BKE_gpencil_material(), BKE_gpencil_modifier_new(), BKE_gpencil_modifier_unique_name(), BKE_report(), BLI_addtail(), C, Object::color, copy_v3_fl(), CTX_data_active_object(), CTX_data_collection(), Object::data, DEG_id_tag_update(), bGPdata::draw_mode, Object::dtx, ED_gpencil_add_defaults(), ED_gpencil_create_lineart(), ED_gpencil_create_monkey(), ED_gpencil_create_stroke(), ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_new_primitive_matrix(), eGpencilModifierType_Lineart, ListBase::first, GP_DRAWMODE_3D, GP_EMPTY, GP_LRT_COLLECTION, GP_LRT_OBJECT, GP_LRT_SCENE, GP_MONKEY, GP_STROKE, GPENCIL_ANY_MODE, Object::greasepencil_modifiers, Material::id, Object::id, ID_RECALC_GEOMETRY, id_us_plus(), bGPdata::layers, LRT_SOURCE_COLLECTION, LRT_SOURCE_OBJECT, LRT_SOURCE_SCENE, mul_v3_fl(), NA_ADDED, NC_GPENCIL, ND_DATA, NULL, OB_DRAW_IN_FRONT, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), rot, RPT_WARNING, LineartGpencilModifierData::source_collection, LineartGpencilModifierData::source_object, LineartGpencilModifierData::source_type, LineartGpencilModifierData::target_layer, LineartGpencilModifierData::target_material, type, Object::type, WM_event_add_notifier(), and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_gpencil_add().
|
static |
Definition at line 1289 of file object_add.c.
References C, CTX_data_active_object(), CTX_data_scene(), ID_IS_LINKED, Object::mode, NULL, OB_GPENCIL, OB_MODE_OBJECT, scene, and Object::type.
Referenced by OBJECT_OT_gpencil_add().
|
static |
Definition at line 1875 of file object_add.c.
References C, ED_object_add_generic_get_opts(), ED_object_add_type(), NULL, OB_DRAWBOUNDOX, OB_HAIR, OPERATOR_CANCELLED, OPERATOR_FINISHED, and rot.
Referenced by OBJECT_OT_hair_add().
|
static |
Definition at line 1867 of file object_add.c.
References C, and ED_operator_objectmode().
Referenced by OBJECT_OT_hair_add().
|
static |
Definition at line 2248 of file object_add.c.
References BKE_geometry_set_has_instances(), Object_Runtime::geometry_set_eval, NULL, and Object::runtime.
Referenced by make_object_duplilist_real().
|
static |
Definition at line 1675 of file object_add.c.
References C, wmOperatorType::exec, object_add_drop_xy_is_set(), wmOperator::ptr, RNA_int_set(), RNA_struct_property_is_set(), wmOperator::type, WM_enum_search_invoke(), wmEvent::x, and wmEvent::y.
Referenced by OBJECT_OT_collection_instance_add().
|
static |
Definition at line 3552 of file object_add.c.
References BKE_object_obdata_is_libdata(), BKE_report(), C, CTX_data_active_object(), Object::data, ED_armature_join_objects_exec(), ED_curve_join_objects_exec(), ED_gpencil_join_objects_exec(), ED_mesh_join_objects_exec(), ELEM, GPENCIL_ANY_MODE, if(), invert_m4_m4(), Object::mode, OB_ARMATURE, OB_CURVE, OB_GPENCIL, OB_MESH, OB_MODE_EDIT, OB_SURF, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, ret, RPT_ERROR, RPT_WARNING, and Object::type.
Referenced by OBJECT_OT_join().
|
static |
Definition at line 3537 of file object_add.c.
References C, CTX_data_active_object(), Object::data, ED_operator_screenactive(), ELEM, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, NULL, OB_ARMATURE, OB_CURVE, OB_GPENCIL, OB_MESH, OB_SURF, and Object::type.
Referenced by OBJECT_OT_join().
|
static |
Definition at line 1548 of file object_add.c.
References BKE_object_obdata_size_init(), C, Object::data, ED_object_add_generic_get_opts(), ED_object_add_type(), Light::energy, get_light_defname(), if(), LA_AREA, LA_LOCAL, LA_SPOT, LA_SUN, NULL, OB_LAMP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), rot, size(), type, Light::type, and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_light_add().
|
static |
Definition at line 973 of file object_add.c.
References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ED_mball_add_primitive(), ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_editmode_exit_ex(), ED_object_new_primitive_matrix(), EM_FREEDATA, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, NULL, OB_MBALL, OBEDIT_FROM_VIEW_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), rot, scene, Object::type, WM_event_add_notifier(), and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_metaball_add().
| void OBJECT_OT_add | ( | wmOperatorType * | ot | ) |
Definition at line 698 of file object_add.c.
References BLT_I18NCONTEXT_ID_ID, wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_object_type_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_add_named | ( | wmOperatorType * | ot | ) |
Definition at line 3506 of file object_add.c.
References wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, object_add_drop_xy_generic_invoke(), object_add_drop_xy_props(), object_add_named_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_armature_add | ( | wmOperatorType * | ot | ) |
Definition at line 1139 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_armature_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_camera_add | ( | wmOperatorType * | ot | ) |
Definition at line 944 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_camera_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_property_flag(), RNA_struct_type_find_property(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_collection_instance_add | ( | wmOperatorType * | ot | ) |
Definition at line 1689 of file object_add.c.
References collection_instance_add_exec(), wmOperatorType::description, DummyRNA_NULL_items, ED_object_add_generic_props(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, object_add_drop_xy_props(), object_instance_add_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_collection_itemf(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_convert | ( | wmOperatorType * | ot | ) |
Definition at line 3192 of file object_add.c.
References convert_target_items, DEG2RADF, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OB_MESH, OBJECT_ADD_SIZE_MAXF, object_convert_exec(), object_convert_poll(), object_convert_ui(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_distance(), RNA_def_float_rotation(), RNA_def_int(), RNA_def_property_float_default(), wmOperatorType::srna, wmOperatorType::ui, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
| void OBJECT_OT_data_instance_add | ( | wmOperatorType * | ot | ) |
Definition at line 1778 of file object_add.c.
References BLT_I18NCONTEXT_ID_ID, wmOperatorType::description, ED_object_add_generic_props(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, object_add_drop_xy_generic_invoke(), object_add_drop_xy_props(), object_data_instance_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_property_translation_context(), RNA_def_string(), rna_enum_id_type_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2082 of file object_add.c.
References wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_delete_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_operator_confirm_or_exec(), and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_object().
| void OBJECT_OT_drop_named_image | ( | wmOperatorType * | ot | ) |
Definition at line 1253 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_operator_objectmode(), empty_drop_named_image_invoke(), FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 3403 of file object_add.c.
References wmOperatorType::description, duplicate_exec(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), rna_enum_transform_mode_types, wmOperatorType::srna, and TFM_TRANSLATION.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_duplicates_make_real | ( | wmOperatorType * | ot | ) |
Definition at line 2489 of file object_add.c.
References wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_duplicates_make_real_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_effector_add | ( | wmOperatorType * | ot | ) |
Definition at line 885 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_objectmode(), effector_add_exec(), wmOperatorType::exec, field_type_items, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_empty_add | ( | wmOperatorType * | ot | ) |
Definition at line 1183 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_empty_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), rna_enum_object_empty_drawtype_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
| void OBJECT_OT_gpencil_add | ( | wmOperatorType * | ot | ) |
Definition at line 1489 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), wmOperatorType::exec, wmOperatorType::flag, GP_DRAWMODE_3D, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_add_ui(), object_gpencil_add_exec(), object_gpencil_add_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), rna_enum_gpencil_add_stroke_depth_order_items, rna_enum_object_gpencil_type_items, wmOperatorType::srna, wmOperatorType::ui, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
| void OBJECT_OT_hair_add | ( | wmOperatorType * | ot | ) |
Definition at line 1889 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_hair_add_exec(), object_hair_add_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_join | ( | wmOperatorType * | ot | ) |
Definition at line 3613 of file object_add.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_join_exec(), object_join_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_join_shapes | ( | wmOperatorType * | ot | ) |
Definition at line 3670 of file object_add.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, join_shapes_exec(), join_shapes_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_light_add | ( | wmOperatorType * | ot | ) |
Definition at line 1587 of file object_add.c.
References BLT_I18NCONTEXT_ID_LIGHT, wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_light_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_light_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
| void OBJECT_OT_lightprobe_add | ( | wmOperatorType * | ot | ) |
Definition at line 767 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lightprobe_add_exec(), lightprobe_type_items, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_metaball_add | ( | wmOperatorType * | ot | ) |
Definition at line 1017 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius_ex(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_metaball_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), rna_enum_metaelem_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
| void OBJECT_OT_pointcloud_add | ( | wmOperatorType * | ot | ) |
Definition at line 1934 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_pointcloud_add_exec(), object_pointcloud_add_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_speaker_add | ( | wmOperatorType * | ot | ) |
Definition at line 1844 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_speaker_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_text_add | ( | wmOperatorType * | ot | ) |
Definition at line 1068 of file object_add.c.
References wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_add_text_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
|
static |
Definition at line 1920 of file object_add.c.
References C, ED_object_add_generic_get_opts(), ED_object_add_type(), NULL, OB_DRAWBOUNDOX, OB_POINTCLOUD, OPERATOR_CANCELLED, OPERATOR_FINISHED, and rot.
Referenced by OBJECT_OT_pointcloud_add().
|
static |
Definition at line 1912 of file object_add.c.
References C, and ED_operator_objectmode().
Referenced by OBJECT_OT_pointcloud_add().
|
static |
Definition at line 1808 of file object_add.c.
References BKE_animdata_add_id(), BKE_nla_add_soundstrip(), BKE_nlastrip_validate_name(), BKE_nlatrack_add(), BKE_nlatrack_add_strip(), BLI_strncpy(), C, CFRA, CTX_data_main(), CTX_data_scene(), Object::data, DATA_, ED_object_add_generic_get_opts(), ED_object_add_type(), NlaStrip::end, Object::id, ID_IS_OVERRIDE_LIBRARY, NA_ADDED, NlaTrack::name, NC_ANIMATION, ND_NLA, NULL, OB_SPEAKER, OPERATOR_CANCELLED, OPERATOR_FINISHED, rot, scene, NlaStrip::start, and WM_event_add_notifier().
Referenced by OBJECT_OT_speaker_add().
|
static |
Definition at line 373 of file object_add.c.
References ptr, and RNA_struct_idprops_unset().
Referenced by ED_object_add_generic_props().
|
static |
Definition at line 185 of file object_add.c.
Referenced by ED_object_add_generic_props().
|
static |
Definition at line 2519 of file object_add.c.
Referenced by OBJECT_OT_convert().
|
static |
Definition at line 143 of file object_add.c.
Referenced by OBJECT_OT_effector_add(), and rna_def_field().
|
static |
Definition at line 160 of file object_add.c.
Referenced by OBJECT_OT_lightprobe_add().
|
static |
Definition at line 1479 of file object_add.c.
Referenced by OBJECT_OT_gpencil_add().
| const EnumPropertyItem rna_enum_light_type_items[] |
Definition at line 134 of file object_add.c.
Referenced by OBJECT_OT_light_add(), and RNA_def_main_lights().