|
Blender V4.5
|
#include <cfloat>#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DNA_mesh_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "DNA_screen_types.h"#include "BKE_customdata.hh"#include "BKE_data_transfer.h"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_mesh.hh"#include "BKE_mesh_remap.hh"#include "BKE_modifier.hh"#include "BKE_report.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "MEM_guardedalloc.h"#include "MOD_ui_common.hh"Go to the source code of this file.
Macros | |
| #define | DT_TYPES_AFFECT_MESH |
Variables | |
| ModifierTypeInfo | modifierType_DataTransfer |
| #define DT_TYPES_AFFECT_MESH |
Definition at line 398 of file MOD_datatransfer.cc.
References IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_boolean_get(), uiLayout::row(), UI_ITEM_NONE, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register(), and panel_register().
Definition at line 284 of file MOD_datatransfer.cc.
References IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_boolean_get(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
Definition at line 275 of file MOD_datatransfer.cc.
References Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, and UI_ITEM_NONE.
Referenced by panel_register().
Definition at line 308 of file MOD_datatransfer.cc.
References IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_boolean_get(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
Definition at line 299 of file MOD_datatransfer.cc.
References Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, and UI_ITEM_NONE.
Referenced by panel_register().
Definition at line 359 of file MOD_datatransfer.cc.
References DT_TYPE_UV, IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_enum_get(), UI_ITEM_NONE, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
Definition at line 341 of file MOD_datatransfer.cc.
References DT_TYPE_MLOOPCOL_LOOP, DT_TYPE_MPROPCOL_LOOP, IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_enum_get(), UI_ITEM_NONE, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
Definition at line 383 of file MOD_datatransfer.cc.
References IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_boolean_get(), UI_ITEM_NONE, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
Definition at line 374 of file MOD_datatransfer.cc.
References Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, and UI_ITEM_NONE.
Referenced by panel_register().
|
static |
Definition at line 82 of file MOD_datatransfer.cc.
References IDWALK_CB_NOP, and DataTransferModifierData::ob_source.
|
static |
Definition at line 42 of file MOD_datatransfer.cc.
References CDT_MIX_TRANSFER, DataTransferModifierData::data_types, DataTransferModifierData::defgrp_name, DT_LAYERS_ALL_SRC, DT_LAYERS_NAME_DST, DT_MULTILAYER_INDEX_MAX, DataTransferModifierData::emap_mode, DataTransferModifierData::flags, i, DataTransferModifierData::layers_select_dst, DataTransferModifierData::layers_select_src, DataTransferModifierData::lmap_mode, DataTransferModifierData::map_max_distance, DataTransferModifierData::map_ray_radius, DataTransferModifierData::mix_factor, DataTransferModifierData::mix_mode, MOD_DATATRANSFER_OBSRC_TRANSFORM, MREMAP_MODE_EDGE_NEAREST, MREMAP_MODE_LOOP_NEAREST_POLYNOR, MREMAP_MODE_POLY_NEAREST, MREMAP_MODE_VERT_NEAREST, DataTransferModifierData::ob_source, DataTransferModifierData::pmap_mode, and DataTransferModifierData::vmap_mode.
|
static |
Definition at line 107 of file MOD_datatransfer.cc.
References OB_MESH, DataTransferModifierData::ob_source, and Object::type.
|
static |
Definition at line 123 of file MOD_datatransfer.cc.
References BKE_id_copy_ex(), BKE_modifier_set_error(), BKE_object_data_transfer_ex(), BKE_reports_contain(), BKE_reports_free(), BKE_reports_init(), BKE_reports_string(), BLI_SPACE_TRANSFORM_SETUP, blender::Span< T >::data(), Object::data, DataTransferModifierData::data_types, DataTransferModifierData::defgrp_name, ModifierEvalContext::depsgraph, DT_TYPES_AFFECT_MESH, DataTransferModifierData::emap_mode, DataTransferModifierData::flags, FLT_MAX, Mesh::id, DataTransferModifierData::layers_select_dst, DataTransferModifierData::layers_select_src, LIB_ID_COPY_LOCALIZE, DataTransferModifierData::lmap_mode, DataTransferModifierData::map_max_distance, DataTransferModifierData::map_ray_radius, MEM_freeN(), DataTransferModifierData::mix_factor, DataTransferModifierData::mix_mode, MOD_DATATRANSFER_INVERT_VGROUP, MOD_DATATRANSFER_MAP_MAXDIST, MOD_DATATRANSFER_OBSRC_TRANSFORM, DataTransferModifierData::ob_source, ModifierEvalContext::object, DataTransferModifierData::pmap_mode, reports, result, RPT_ERROR, RPT_STORE, and DataTransferModifierData::vmap_mode.
Definition at line 203 of file MOD_datatransfer.cc.
References CDT_MIX_NOMIX, CDT_MIX_REPLACE_ABOVE_THRESHOLD, CDT_MIX_REPLACE_BELOW_THRESHOLD, ELEM, IFACE_, Panel::layout, modifier_error_message_draw(), modifier_panel_get_property_pointers(), modifier_vgroup_ui(), uiLayout::op(), uiLayout::prop(), ptr, RNA_enum_get(), uiLayout::row(), UI_ITEM_NONE, uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
|
static |
Definition at line 416 of file MOD_datatransfer.cc.
References advanced_panel_draw(), edge_panel_draw(), edge_panel_draw_header(), eModifierType_DataTransfer, face_corner_panel_draw(), face_corner_panel_draw_header(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_panel_draw(), face_panel_draw_header(), modifier_panel_register(), modifier_subpanel_register(), panel_draw(), vert_vcol_panel_draw(), vertex_panel_draw(), vertex_panel_draw_header(), and vertex_vgroup_panel_draw().
|
static |
Definition at line 70 of file MOD_datatransfer.cc.
References BKE_object_data_transfer_dttypes_to_cdmask(), CD_MASK_MDEFORMVERT, DataTransferModifierData::data_types, DataTransferModifierData::defgrp_name, and CustomData_MeshMasks::vmask.
|
static |
Definition at line 88 of file MOD_datatransfer.cc.
References BKE_object_data_transfer_dttypes_to_cdmask(), DataTransferModifierData::data_types, DEG_add_customdata_mask(), DEG_add_depends_on_transform_relation(), DEG_add_object_relation(), DEG_OB_COMP_GEOMETRY, DEG_OB_COMP_TRANSFORM, DataTransferModifierData::flags, MOD_DATATRANSFER_OBSRC_TRANSFORM, ModifierUpdateDepsgraphContext::node, and DataTransferModifierData::ob_source.
Definition at line 323 of file MOD_datatransfer.cc.
References DT_TYPE_MLOOPCOL_VERT, DT_TYPE_MPROPCOL_VERT, IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_enum_get(), UI_ITEM_NONE, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
Definition at line 244 of file MOD_datatransfer.cc.
References IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_boolean_get(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
Definition at line 236 of file MOD_datatransfer.cc.
References Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, and UI_ITEM_NONE.
Referenced by panel_register().
Definition at line 260 of file MOD_datatransfer.cc.
References DT_TYPE_MDEFORMVERT, IFACE_, Panel::layout, modifier_panel_get_property_pointers(), uiLayout::prop(), ptr, RNA_enum_get(), UI_ITEM_NONE, uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
| ModifierTypeInfo modifierType_DataTransfer |
Definition at line 458 of file MOD_datatransfer.cc.