|
Blender V5.0
|
Functions | |
| void | alembic_file_handler_add () |
| void | fbx_file_handler_add () |
| void | grease_pencil_file_handler_add () |
| void | obj_file_handler_add () |
| void | ply_file_handler_add () |
| void | stl_file_handler_add () |
| void | usd_file_handler_add () |
| wmOperatorStatus | filesel_drop_import_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| bool | poll_file_object_drop (const bContext *C, blender::bke::FileHandlerType *) |
| Vector< std::string > | paths_from_operator_properties (PointerRNA *ptr) |
| void | paths_to_operator_properties (PointerRNA *ptr, const Span< std::string > paths) |
| void blender::ed::io::alembic_file_handler_add | ( | ) |
Referenced by ED_operatortypes_io().
| void blender::ed::io::fbx_file_handler_add | ( | ) |
Referenced by ED_operatortypes_io().
| wmOperatorStatus blender::ed::io::filesel_drop_import_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Shows a import dialog if the operator was invoked with filepath properties set, otherwise invokes the file-select window.
Definition at line 26 of file io_utils.cc.
References C, FILE_MAX, OPERATOR_RUNNING_MODAL, paths_from_operator_properties(), wmOperator::ptr, RNA_property_is_set(), RNA_string_get(), RNA_struct_find_property(), TIP_, wmOperator::type, WM_event_add_fileselect(), WM_operator_props_dialog_popup(), and WM_operatortype_name().
| void blender::ed::io::grease_pencil_file_handler_add | ( | ) |
Referenced by ED_operatortypes_io().
| void blender::ed::io::obj_file_handler_add | ( | ) |
Referenced by ED_operatortypes_io().
| Vector< std::string > blender::ed::io::paths_from_operator_properties | ( | PointerRNA * | ptr | ) |
Return all paths stored in the pointer. Properties in pointer should include a directory #PropertySubType::PROP_FILEPATH property and a files #RNA_OperatorFileListElement collection property. If the pointer has a filepath property is also returned as fallback.
Definition at line 75 of file io_utils.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), BKE_main_blendfile_path_from_global(), BLI_assert, BLI_path_is_rel(), BLI_path_join, BLI_path_normalize(), BLI_path_rel(), FILE_MAX, name, ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_boolean_get(), RNA_property_is_set(), RNA_string_get(), RNA_struct_find_collection_property_check(), and RNA_struct_find_property().
Referenced by filesel_drop_import_invoke(), blender::ed::space_node::node_add_image_exec(), blender::ed::space_node::node_add_import_node_exec(), wm_drop_import_file_exec(), and wm_drop_import_file_invoke().
| void blender::ed::io::paths_to_operator_properties | ( | PointerRNA * | ptr, |
| const Span< std::string > | paths ) |
Definition at line 117 of file io_utils.cc.
References BLI_assert_msg, BLI_path_is_rel(), BLI_path_rel(), BLI_path_split_dir_part(), FILE_MAX, ptr, RNA_collection_add(), RNA_collection_clear(), RNA_string_set(), and STRNCPY_UTF8.
Referenced by drop_import_file_copy(), and blender::ed::space_node::node_import_file_drop_copy().
| void blender::ed::io::ply_file_handler_add | ( | ) |
Referenced by ED_operatortypes_io().
| bool blender::ed::io::poll_file_object_drop | ( | const bContext * | C, |
| blender::bke::FileHandlerType * | ) |
Definition at line 58 of file io_utils.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), CTX_wm_view3d(), SpaceOutliner::outlinevis, ARegion::regiontype, RGN_TYPE_WINDOW, and SO_VIEW_LAYER.
| void blender::ed::io::stl_file_handler_add | ( | ) |
Referenced by ED_operatortypes_io().
| void blender::ed::io::usd_file_handler_add | ( | ) |
Referenced by ED_operatortypes_io().