|
Blender V4.3
|
Functions | |
| void | alembic_file_handler_add () |
| void | collada_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 () |
| int | 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 blender::ed::io::alembic_file_handler_add | ( | ) |
| void blender::ed::io::collada_file_handler_add | ( | ) |
| int 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 25 of file io_utils.cc.
References 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 | ( | ) |
| void blender::ed::io::obj_file_handler_add | ( | ) |
| 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 74 of file io_utils.cc.
References BKE_main_blendfile_path_from_global(), BLI_assert, BLI_path_is_rel(), BLI_path_join, BLI_path_rel(), FILE_MAX, 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_file_exec(), wm_drop_import_file_exec(), and wm_drop_import_file_invoke().
| void blender::ed::io::ply_file_handler_add | ( | ) |
| bool blender::ed::io::poll_file_object_drop | ( | const bContext * | C, |
| blender::bke::FileHandlerType * | ) |
Definition at line 57 of file io_utils.cc.
References CTX_wm_region(), CTX_wm_space_outliner(), CTX_wm_view3d(), SpaceOutliner::outlinevis, RGN_TYPE_WINDOW, and SO_VIEW_LAYER.
| void blender::ed::io::stl_file_handler_add | ( | ) |
| void blender::ed::io::usd_file_handler_add | ( | ) |