Blender
V3.3
|
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <optional>
#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_modifier_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 "BLI_vector.hh"
#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_curves.h"
#include "BKE_displist.h"
#include "BKE_duplilist.h"
#include "BKE_effect.h"
#include "BKE_geometry_set.h"
#include "BKE_geometry_set.hh"
#include "BKE_gpencil_curve.h"
#include "BKE_gpencil_geom.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_key.h"
#include "BKE_lattice.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_lib_override.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_node.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_vfont.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_curves.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_select_utils.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.
Classes | |
struct | CollectionAddInfo |
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 *UNUSED(C), wmOperator *op) |
void | OBJECT_OT_convert (wmOperatorType *ot) |
anonymous enum |
Enumerator | |
---|---|
ALIGN_WORLD | |
ALIGN_VIEW | |
ALIGN_CURSOR |
Definition at line 175 of file object_add.cc.
|
static |
Definition at line 1660 of file object_add.cc.
References BKE_collection_cycle_find(), BKE_layer_collection_activate_parent(), BKE_layer_collection_get_active(), BLI_findlink(), C, LayerCollection::collection, Main::collections, CTX_data_main(), CTX_data_view_layer(), ED_object_add_generic_get_opts(), ED_object_location_from_view(), ED_view3d_cursor3d_position(), ID_GR, object_add_drop_xy_get(), wmOperator::ptr, RNA_enum_get(), RNA_property_float_set_array(), RNA_property_is_set(), RNA_struct_find_property(), and WM_operator_properties_id_lookup_from_name_or_session_uuid().
Referenced by collection_drop_exec(), and collection_instance_add_exec().
|
static |
Definition at line 1804 of file object_add.cc.
References BKE_collection_child_remove(), BKE_view_layer_array_selected_objects_params(), C, LayerCollection::collection, collection_add_info_get_from_op(), CTX_data_layer_collection(), CTX_data_main(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_add_type(), ED_object_xform_array_m4(), Object::empty_drawsize, Collection::id, ID_RECALC_COPY_ON_WRITE, id_us_plus(), Object::instance_collection, loc_eul_size_to_mat4(), MEM_freeN, negate_v3_v3(), OB_DUPLICOLLECTION, OB_EMPTY, offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, params, wmOperator::ptr, RNA_boolean_get(), Object::transflag, translate_m4(), unit_m4(), and UNPACK3.
Referenced by OBJECT_OT_collection_external_asset_drop().
|
static |
Definition at line 1717 of file object_add.cc.
References C, collection_add_info_get_from_op(), ED_object_add_type(), Object::empty_drawsize, id_us_plus(), Object::instance_collection, OB_DUPLICOLLECTION, OB_EMPTY, OPERATOR_CANCELLED, OPERATOR_FINISHED, and Object::transflag.
Referenced by OBJECT_OT_collection_instance_add().
Definition at line 2354 of file object_add.cc.
References BKE_libblock_relink_to_newid(), BKE_main_id_newptr_and_tag_clear(), 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 2842 of file object_add.cc.
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(), OB_EMPTY, OB_MBALL, Base::object, scene, and Object::type.
Referenced by object_convert_exec().
|
static |
Definition at line 3671 of file object_add.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BA_DESELECT, BA_SELECT, BASACT, BKE_layer_collection_resync_allow(), BKE_layer_collection_resync_forbid(), BKE_main_collection_sync(), BKE_main_id_newptr_and_tag_clear(), BKE_view_layer_base_find(), 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, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, Base::local_view_bits, NC_SCENE, ND_LAYER_CONTENT, ND_OB_SELECT, NULL, Base::object, object_add_duplicate_internal(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_duplicate().
Definition at line 2438 of file object_add.cc.
References Freestyle::a, usdtokens::b(), MAX_DUPLI_RECUR, and OB_DUPLICOLLECTION.
Referenced by make_object_duplilist_real().
Definition at line 2405 of file object_add.cc.
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().
Definition at line 2472 of file object_add.cc.
References Freestyle::a, usdtokens::b(), and MAX_DUPLI_RECUR.
Referenced by make_object_duplilist_real().
Definition at line 2427 of file object_add.cc.
References BLI_ghashutil_inthash, hash, MAX_DUPLI_RECUR, DupliObject::persistent_id, and ptr.
Referenced by make_object_duplilist_real().
Base* ED_object_add_duplicate | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct ViewLayer * | view_layer, | ||
struct Base * | base, | ||
eDupli_ID_Flags | dupflag | ||
) |
Single object duplicate, if dupflag == 0
, fully linked, else it uses the flags given. Leaves selection of base/object unaltered.
DAG_relations_tag_update(bmain);
this is not done automatic since we may duplicate many objects in a batch. Definition at line 3632 of file object_add.cc.
References BKE_libblock_relink_to_newid(), BKE_main_id_newptr_and_tag_clear(), BKE_object_is_in_editmode(), Object::data, DEG_id_tag_update_ex(), Object::id, ID_RECALC_EDITORS, ID_REMAP_FORCE_OBDATA_IN_EDITMODE, LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, 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 | r_loc[3], | ||
float | r_rot[3], | ||
float | r_scale[3], | ||
bool * | r_enter_editmode, | ||
ushort * | r_local_view_bits, | ||
bool * | r_is_view_aligned | ||
) |
Definition at line 457 of file object_add.cc.
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(), 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_add_info_get_from_op(), 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_curves_empty_hair_add_exec(), object_curves_random_add_exec(), object_data_instance_add_exec(), object_empty_add_exec(), object_gpencil_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 399 of file object_add.cc.
References align_options, ALIGN_WORLD, DEG2RADF, 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_external_asset_drop(), OBJECT_OT_collection_instance_add(), OBJECT_OT_curves_empty_hair_add(), OBJECT_OT_curves_random_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_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 452 of file object_add.cc.
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 668 of file object_add.cc.
References C, ED_object_add_type_with_obdata(), rot, and type.
Referenced by collection_drop_exec(), collection_instance_add_exec(), collection_instance_exec(), blender::io::gpencil::GpencilImporter::create_object(), 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_curves_empty_hair_add_exec(), object_curves_random_add_exec(), object_empty_add_exec(), object_gpencil_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 | ( | struct bContext * | C, |
int | type, | ||
const char * | name, | ||
const float | loc[3], | ||
const float | rot[3], | ||
bool | enter_editmode, | ||
ushort | local_view_bits, | ||
struct 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 598 of file object_add.cc.
References 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, Base::local_view_bits, NC_SCENE, ND_LAYER_CONTENT, 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 394 of file object_add.cc.
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 388 of file object_add.cc.
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 382 of file object_add.cc.
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().
void ED_object_base_free_and_unlink | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Remove base from a specific scene.
Definition at line 2190 of file object_add.cc.
References BKE_lib_override_library_id_is_user_deletable(), 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 ED_armature_join_objects_exec(), ED_curve_join_objects_exec(), ED_gpencil_join_objects_exec(), ED_mesh_join_objects_exec(), id_override_library_create_hierarchy(), make_override_library_exec(), and object_convert_exec().
void ED_object_base_free_and_unlink_no_indirect_check | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Remove base from a specific scene. ob
must not be indirectly used.
Definition at line 2211 of file object_add.cc.
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 315 of file object_add.cc.
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 268 of file object_add.cc.
References C, copy_v3_v3(), CTX_data_scene(), Scene::cursor, View3DCursor::location, and scene.
Referenced by collection_add_info_get_from_op(), ED_object_add_generic_get_opts(), empty_drop_named_image_invoke(), object_add_named_exec(), object_data_instance_add_exec(), and object_transform_to_mouse_exec().
float ED_object_new_primitive_matrix | ( | struct bContext * | C, |
struct Object * | obedit, | ||
const float | loc[3], | ||
const float | rot[3], | ||
const float | scale[3], | ||
float | primmat[4][4] | ||
) |
Uses context to figure out transform for primitive. Returns standard diameter.
Definition at line 328 of file object_add.cc.
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(), Object::obmat, rescale_m4(), 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 274 of file object_add.cc.
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 300 of file object_add.cc.
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 842 of file object_add.cc.
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, 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(), EditNurb::nurbs, OB_CURVES_LEGACY, 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 1209 of file object_add.cc.
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, 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 803 of file object_add.cc.
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 1563 of file object_add.cc.
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 736 of file object_add.cc.
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 4158 of file object_add.cc.
References BKE_lib_override_library_id_is_user_deletable(), BKE_object_obdata_is_libdata(), BKE_report(), BKE_reportf(), C, CTX_data_active_object(), CTX_data_main(), ED_mesh_shapes_join_objects_exec(), Object::id, Object::mode, ID::name, OB_MESH, OB_MODE_EDIT, OPERATOR_CANCELLED, wmOperator::reports, RPT_ERROR, RPT_WARNING, and Object::type.
Referenced by OBJECT_OT_join_shapes().
Definition at line 4142 of file object_add.cc.
References C, CTX_data_active_object(), Object::data, ED_operator_screenactive(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, OB_MESH, and Object::type.
Referenced by OBJECT_OT_join_shapes().
|
static |
Definition at line 750 of file object_add.cc.
References BKE_lightprobe_type_set(), C, copy_v3_fl(), Object::data, ED_object_add_generic_get_opts(), ED_object_add_type(), get_lightprobe_defname(), 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 2490 of file object_add.cc.
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_newptr_and_tag_clear(), BKE_object_apply_mat4(), BKE_object_has_geometry_set_instances(), 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, DupliObject::ob, OB_DUPLI, OB_DUPLICOLLECTION, Base::object, object_duplilist(), Object::obmat, Object::par1, Object::par2, Object::par3, Object::parent, Object::parentinv, PAROBJECT, Object::parsubstr, Object::partype, DupliObject::persistent_id, 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 253 of file object_add.cc.
References C, wmOperatorType::exec, object_add_drop_xy_is_set(), wmOperator::ptr, RNA_int_set(), wmOperator::type, and wmEvent::xy.
Referenced by OBJECT_OT_add_named(), OBJECT_OT_data_instance_add(), and OBJECT_OT_transform_to_mouse().
|
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 234 of file object_add.cc.
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_add_info_get_from_op(), object_add_named_exec(), object_data_instance_add_exec(), and object_transform_to_mouse_exec().
|
static |
Definition at line 224 of file object_add.cc.
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 198 of file object_add.cc.
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_external_asset_drop(), OBJECT_OT_collection_instance_add(), OBJECT_OT_data_instance_add(), and OBJECT_OT_transform_to_mouse().
|
static |
id.new
is correct.Definition at line 3581 of file object_add.cc.
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(), Base::flag, Object::id, ID_NEW_SET, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, Base::local_view_bits, Object::mode, 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 681 of file object_add.cc.
References BKE_object_obdata_size_init(), C, copy_v3_fl(), ED_object_add_generic_get_opts(), ED_object_add_type(), 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 3798 of file object_add.cc.
References BA_SELECT, BKE_base_eval_flags(), BKE_object_apply_mat4(), 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(), Object::id, Scene::id, ID_OB, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, Object::loc, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, ND_OB_SELECT, OB_HIDE_VIEWPORT, Base::object, object_add_drop_xy_get(), object_add_duplicate_internal(), Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_property_float_get_array(), RNA_property_is_set(), RNA_struct_find_property(), RPT_ERROR, scene, SEL_DESELECT, Object::visibility_flag, WM_event_add_notifier(), and WM_operator_properties_id_lookup_from_name_or_session_uuid().
Referenced by OBJECT_OT_add_named().
|
static |
Definition at line 1051 of file object_add.cc.
References BKE_object_obdata_size_init(), C, CTX_data_edit_object(), ED_object_add_generic_get_opts(), ED_object_add_type(), OB_FONT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), rot, Object::type, and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_text_add().
|
static |
Definition at line 1475 of file object_add.cc.
References col, ELEM, GP_LRT_COLLECTION, GP_LRT_OBJECT, GP_LRT_SCENE, wmOperator::layout, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), type, uiItemR(), uiLayoutColumn(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by OBJECT_OT_gpencil_add().
|
static |
Definition at line 1098 of file object_add.cc.
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, 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, and WM_operator_view3d_unit_defaults().
Referenced by OBJECT_OT_armature_add().
|
static |
Definition at line 916 of file object_add.cc.
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(), 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 2892 of file object_add.cc.
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_id_is_editable(), BKE_id_new(), 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_merge_customdata_for_apply_modifier(), BKE_mesh_nomain_to_mesh(), BKE_mesh_to_curve(), BKE_mesh_to_pointcloud(), BKE_object_free_curve_cache(), BKE_object_free_derived_caches(), BKE_object_free_modifiers(), BKE_object_free_shaderfx(), BKE_object_material_from_eval_data(), BKE_object_material_slot_remove(), BKE_object_material_slot_used(), BKE_object_materials_test(), BKE_pointcloud_to_mesh(), BKE_report(), BKE_reportf(), 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, Curves::geometry, Object_Runtime::geometry_set_eval, GeometrySet::get_component_for_read(), CurveComponent::get_for_read(), GP_DRAWMODE_3D, GeometrySet::has_curves(), Curve::id, Mesh::id, MetaBall::id, Object::id, PointCloud::id, Scene::id, VFont::id, ID_CV, 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, blender::bke::mesh_attributes_for_write(), mesh_get_eval_final(), ID::name, NC_OBJECT, NC_SCENE, ND_DATA, ND_DRAW, ND_LAYER_CONTENT, ND_MODIFIER, ND_OB_SELECT, ID::next, Curve::nurb, OB_CURVES, OB_CURVES_LEGACY, 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, offset, OPERATOR_FINISHED, wmOperator::ptr, blender::bke::MutableAttributeAccessor::remove_anonymous(), wmOperator::reports, Object::rigidbody_object, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RNA_int_get(), rot, Object::rot, RPT_ERROR, RPT_INFO, RPT_WARNING, 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, WM_event_add_notifier(), and blender::bke::CurvesGeometry::wrap().
Referenced by OBJECT_OT_convert().
Definition at line 2826 of file object_add.cc.
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, Base::object, and scene.
Referenced by OBJECT_OT_convert().
|
static |
Definition at line 3488 of file object_add.cc.
References wmOperator::layout, OB_GPENCIL, OB_MESH, wmOperator::ptr, RNA_enum_get(), uiItemR(), and uiLayoutSetPropSep().
Referenced by OBJECT_OT_convert().
|
static |
Definition at line 2069 of file object_add.cc.
References BKE_object_apply_mat4(), BLI_assert, BLI_strdup(), C, CD_MLOOPUV, CTX_data_active_object(), CTX_data_scene(), CustomData_get_active_layer_name(), Object::data, ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_parent_set(), blender::ed::curves::ensure_surface_deformation_node_exists(), Mesh::ldata, Object::modifier_flag, OB_CURVES, OB_MODIFIER_FLAG_ADD_REST_POSITION, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, PAR_OBJECT, wmOperator::reports, scene, Curves::surface, and Curves::surface_uv_map.
Referenced by OBJECT_OT_curves_empty_hair_add().
Definition at line 2111 of file object_add.cc.
References C, CTX_data_active_object(), CTX_wm_operator_poll_msg_set(), ED_operator_objectmode(), OB_MESH, and Object::type.
Referenced by OBJECT_OT_curves_empty_hair_add().
|
static |
Definition at line 2033 of file object_add.cc.
References C, ED_object_add_generic_get_opts(), ED_object_add_type(), Curves::geometry, OB_CURVES, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::ed::curves::primitive_random_sphere(), rot, and blender::bke::CurvesGeometry::wrap().
Referenced by OBJECT_OT_curves_random_add().
|
static |
Definition at line 2793 of file object_add.cc.
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, OB_MESH, Main::objects, and Object::type.
Referenced by object_convert_exec().
|
static |
Definition at line 2774 of file object_add.cc.
References BKE_displist_make_curveTypes(), BKE_displist_make_mball(), Object_Runtime::curve_cache, depsgraph, ELEM, OB_CURVES_LEGACY, OB_FONT, OB_MBALL, OB_SURF, Object::runtime, scene, and Object::type.
Referenced by object_convert_exec().
|
static |
Definition at line 1904 of file object_add.cc.
References BKE_object_obdata_to_type(), C, CTX_data_main(), ED_object_add_generic_get_opts(), ED_object_add_type_with_obdata(), ED_object_location_from_view(), ED_view3d_cursor3d_position(), id, ID::name, 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_struct_find_property(), rot, and WM_operator_properties_id_lookup_from_name_or_session_uuid().
Referenced by OBJECT_OT_data_instance_add().
|
static |
Definition at line 2218 of file object_add.cc.
References BKE_id_multi_tagged_delete(), BKE_lib_override_library_id_is_user_deletable(), 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(), wmOperator::flag, 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, OB_GPENCIL, OP_IS_INVOKE, 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 2686 of file object_add.cc.
References BKE_main_id_newptr_and_tag_clear(), 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, 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 1167 of file object_add.cc.
References BKE_object_empty_draw_type_set(), BKE_object_obdata_size_init(), C, ED_object_add_generic_get_opts(), ED_object_add_type(), 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 1312 of file object_add.cc.
References BKE_gpencil_material(), BKE_gpencil_modifier_new(), BKE_gpencil_modifier_unique_name(), BKE_report(), BLI_addtail(), BLT_I18NCONTEXT_ID_GPENCIL, C, Object::color, copy_v3_fl(), CTX_DATA_, 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_blank(), 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, NA_ADDED, NC_GPENCIL, ND_DATA, OB_DRAW_IN_FRONT, OB_GPENCIL, OB_USE_GPENCIL_LIGHTS, 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::stroke_depth_offset, 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().
Definition at line 1294 of file object_add.cc.
References C, CTX_data_active_object(), CTX_data_scene(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, Object::mode, OB_GPENCIL, OB_MODE_OBJECT, scene, and Object::type.
Referenced by OBJECT_OT_gpencil_add().
|
static |
Definition at line 1739 of file object_add.cc.
References C, wmOperatorType::exec, object_add_drop_xy_is_set(), wmOperator::ptr, RNA_int_set(), wmOperator::type, WM_enum_search_invoke(), WM_operator_properties_id_lookup_is_set(), and wmEvent::xy.
Referenced by OBJECT_OT_collection_external_asset_drop(), and OBJECT_OT_collection_instance_add().
|
static |
Definition at line 4051 of file object_add.cc.
References BKE_lib_override_library_id_is_user_deletable(), BKE_object_obdata_is_libdata(), BKE_report(), BKE_reportf(), C, CTX_data_active_object(), CTX_data_main(), 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, Object::id, if(), invert_m4_m4(), Object::mode, ID::name, OB_ARMATURE, OB_CURVES_LEGACY, 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().
Definition at line 4036 of file object_add.cc.
References C, CTX_data_active_object(), Object::data, ED_operator_screenactive(), ELEM, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, OB_ARMATURE, OB_CURVES_LEGACY, OB_GPENCIL, OB_MESH, OB_SURF, and Object::type.
Referenced by OBJECT_OT_join().
|
static |
Definition at line 1579 of file object_add.cc.
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, 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 978 of file object_add.cc.
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, 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 707 of file object_add.cc.
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 3876 of file object_add.cc.
References wmOperatorType::description, ED_operator_objectmode_poll_msg(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_add_drop_xy_generic_invoke(), object_add_drop_xy_props(), object_add_named_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float_matrix(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_object().
void OBJECT_OT_armature_add | ( | wmOperatorType * | ot | ) |
Definition at line 1142 of file object_add.cc.
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 949 of file object_add.cc.
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_external_asset_drop | ( | wmOperatorType * | ot | ) |
Definition at line 1856 of file object_add.cc.
References collection_drop_exec(), wmOperatorType::description, DummyRNA_NULL_items, ED_object_add_generic_props(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_add_drop_xy_props(), object_instance_add_invoke(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_collection_itemf(), RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_object().
void OBJECT_OT_collection_instance_add | ( | struct wmOperatorType * | ot | ) |
Only used as menu.
Definition at line 1752 of file object_add.cc.
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(), wmOperatorType::srna, and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_object().
void OBJECT_OT_convert | ( | wmOperatorType * | ot | ) |
Definition at line 3510 of file object_add.cc.
References convert_target_items, DEG2RADF, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, 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_curves_empty_hair_add | ( | wmOperatorType * | ot | ) |
Definition at line 2124 of file object_add.cc.
References wmOperatorType::description, ED_object_add_generic_props(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_curves_empty_hair_add_exec(), object_curves_empty_hair_add_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_curves_random_add | ( | wmOperatorType * | ot | ) |
Definition at line 2052 of file object_add.cc.
References wmOperatorType::description, ED_object_add_generic_props(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_curves_random_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_data_instance_add | ( | wmOperatorType * | ot | ) |
Definition at line 1943 of file object_add.cc.
References BLT_I18NCONTEXT_ID_ID, wmOperatorType::description, ED_object_add_generic_props(), ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, 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_enum_id_type_items, wmOperatorType::srna, and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_object().
void OBJECT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2325 of file object_add.cc.
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 1257 of file object_add.cc.
References wmOperatorType::description, ED_object_add_generic_props(), ED_operator_objectmode(), empty_drop_named_image_invoke(), FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_string(), wmOperatorType::srna, and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_object().
void OBJECT_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 3761 of file object_add.cc.
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 2713 of file object_add.cc.
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 889 of file object_add.cc.
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 1187 of file object_add.cc.
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 1509 of file object_add.cc.
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_def_float(), 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_join | ( | wmOperatorType * | ot | ) |
Definition at line 4121 of file object_add.cc.
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 4186 of file object_add.cc.
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 1619 of file object_add.cc.
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 774 of file object_add.cc.
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 1024 of file object_add.cc.
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 2167 of file object_add.cc.
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 2010 of file object_add.cc.
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 1073 of file object_add.cc.
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().
void OBJECT_OT_transform_to_mouse | ( | wmOperatorType * | ot | ) |
Definition at line 3987 of file object_add.cc.
References wmOperatorType::description, ED_operator_objectmode_poll_msg(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, INT32_MAX, INT32_MIN, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, object_add_drop_xy_generic_invoke(), object_add_drop_xy_props(), object_transform_to_mouse_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_float_matrix(), RNA_def_int(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
|
static |
Definition at line 2152 of file object_add.cc.
References C, ED_object_add_generic_get_opts(), ED_object_add_type(), OB_DRAWBOUNDOX, OB_POINTCLOUD, OPERATOR_CANCELLED, OPERATOR_FINISHED, and rot.
Referenced by OBJECT_OT_pointcloud_add().
Definition at line 2144 of file object_add.cc.
References C, and ED_operator_objectmode().
Referenced by OBJECT_OT_pointcloud_add().
|
static |
Definition at line 1973 of file object_add.cc.
References BKE_animdata_ensure_id(), BKE_nla_add_soundstrip(), BKE_nlastrip_validate_name(), BKE_nlatrack_add(), BKE_nlatrack_add_strip(), BLI_strncpy(), C, RenderData::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, OB_SPEAKER, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, rot, scene, NlaStrip::start, and WM_event_add_notifier().
Referenced by OBJECT_OT_speaker_add().
|
static |
Alternate behavior for dropping an asset that positions the appended object(s).
Definition at line 3916 of file object_add.cc.
References BKE_id_is_editable(), BKE_report(), BKE_view_layer_array_selected_objects_params(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_view_layer(), ED_object_location_from_view(), ED_object_xform_array_m4(), ED_view3d_cursor3d_position(), ED_view3d_snap_selected_to_location(), Object::id, ID_OB, invert_m4(), MEM_freeN, mul_m4_m4m4(), normalize_m4_m4(), OBACT, object_add_drop_xy_get(), Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, params, wmOperator::ptr, wmOperator::reports, RNA_property_float_get_array(), RNA_property_is_set(), RNA_struct_find_property(), RPT_ERROR, V3D_AROUND_ACTIVE, and WM_operator_properties_id_lookup_from_name_or_session_uuid().
Referenced by OBJECT_OT_transform_to_mouse().
|
static |
Definition at line 375 of file object_add.cc.
References ptr, and RNA_struct_idprops_unset().
Referenced by ED_object_add_generic_props().
|
static |
Definition at line 181 of file object_add.cc.
Referenced by ED_object_add_generic_props().
|
static |
Definition at line 2743 of file object_add.cc.
Referenced by OBJECT_OT_convert().
|
static |
Definition at line 139 of file object_add.cc.
Referenced by OBJECT_OT_effector_add(), and rna_def_field().
|
static |
Definition at line 156 of file object_add.cc.
Referenced by OBJECT_OT_lightprobe_add().
|
static |
Definition at line 1499 of file object_add.cc.
Referenced by OBJECT_OT_gpencil_add().
const EnumPropertyItem rna_enum_light_type_items[] |
Definition at line 130 of file object_add.cc.
Referenced by OBJECT_OT_light_add(), and RNA_def_main_lights().