Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/space_view3d.c
| Show First 20 Lines • Show All 778 Lines • ▼ Show 20 Lines | if (snap_state) { | ||||
| RNA_float_set_array(drop->ptr, "matrix", &obmat_final[0][0]); | RNA_float_set_array(drop->ptr, "matrix", &obmat_final[0][0]); | ||||
| } | } | ||||
| } | } | ||||
| static void view3d_collection_drop_copy(wmDrag *drag, wmDropBox *drop) | static void view3d_collection_drop_copy(wmDrag *drag, wmDropBox *drop) | ||||
| { | { | ||||
| ID *id = WM_drag_get_local_ID_or_import_from_asset(drag, ID_GR); | ID *id = WM_drag_get_local_ID_or_import_from_asset(drag, ID_GR); | ||||
| RNA_string_set(drop->ptr, "name", id->name + 2); | RNA_int_set(drop->ptr, "session_uuid", (int)id->session_uuid); | ||||
| } | } | ||||
| static void view3d_id_drop_copy(wmDrag *drag, wmDropBox *drop) | static void view3d_id_drop_copy(wmDrag *drag, wmDropBox *drop) | ||||
| { | { | ||||
| ID *id = WM_drag_get_local_ID_or_import_from_asset(drag, 0); | ID *id = WM_drag_get_local_ID_or_import_from_asset(drag, 0); | ||||
| RNA_string_set(drop->ptr, "name", id->name + 2); | RNA_string_set(drop->ptr, "name", id->name + 2); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,183 Lines • Show Last 20 Lines | |||||