Adds file handlers for the C++ import operators. This will allow these operators to be invoked with drag-and-drop filepath data in the 3D Viewport or the Outliner. When the operators are called with drag-and-drop data a dialog popup will be used instead of invoking the file select window. Previously OPTYPE_REGISTER tag had no effect, now since these operators can run as popup dialogs this flag is removed to prevent heavy io operations in the redo panel. Also includes drawing functions for ply and stl and a missing event notifications to collada import. Important: Presets can override file path properties, so if a preset is used, file paths provided by drag and drop will be lost. This will be addressed in follow up changes. Pull Request: https://projects.blender.org/blender/blender/pulls/116873
18 lines
320 B
C++
18 lines
320 B
C++
/* SPDX-FileCopyrightText: 2019 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup editor/io
|
|
*/
|
|
|
|
struct wmOperatorType;
|
|
|
|
void WM_OT_usd_export(wmOperatorType *ot);
|
|
void WM_OT_usd_import(wmOperatorType *ot);
|
|
namespace blender::ed::io {
|
|
void usd_file_handler_add();
|
|
}
|