/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Assets/EditorPluginAssets/MeshAsset/MeshEditorContext.h
21 строка
910 B
Jan Krassnigg
Mesh asset improvements (camera mode, material picking, colmeshes with many materials (#1852)
08 мар 2026, 16:32
Не верифицирован
08 мар 2026, 16:32
b0c0266
Код
Авторство
О чём код?
#pragma once #include <EditorPluginAssets/EditorPluginAssetsDLL.h> #include <EditorFramework/InputContexts/EditorInputContext.h> /// \brief Input context for the mesh asset editor that handles Ctrl+Middle click to open the material at the cursor. /// /// Ctrl+Middle click fires a picking query to determine the material slot under the cursor, /// then opens the corresponding material document. Used only in the mesh asset preview. class EZ_EDITORPLUGINASSETS_DLL ezMeshEditorInputContext : public ezEditorInputContext { EZ_ADD_DYNAMIC_REFLECTION(ezMeshEditorInputContext, ezEditorInputContext); public: ezMeshEditorInputContext(ezQtEngineDocumentWindow* pOwnerWindow, ezQtEngineViewWidget* pOwnerView); protected: virtual void OnSetOwner(ezQtEngineDocumentWindow* pOwnerWindow, ezQtEngineViewWidget* pOwnerView) override {} virtual ezEditorInput DoMouseReleaseEvent(QMouseEvent* e) override; };