cleanup
This commit is contained in:
parent
056ad553f6
commit
36659c70e4
4 changed files with 0 additions and 11 deletions
|
@ -333,7 +333,6 @@ bool AssetBrowser::resourceInput(const char* label, const char* str_id, char* bu
|
|||
ImGui::EndGroup();
|
||||
if (ImGui::IsItemHoveredRect())
|
||||
{
|
||||
m_app.enableDrop();
|
||||
if (ImGui::IsMouseReleased(0) && m_app.getDragData().type == StudioApp::DragData::PATH)
|
||||
{
|
||||
char ext[10];
|
||||
|
|
|
@ -113,7 +113,6 @@ public:
|
|||
|
||||
ImGui::NewFrame();
|
||||
|
||||
m_drag_data.can_drop = false;
|
||||
if (m_drag_data.type == DragData::PATH)
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
|
@ -975,12 +974,6 @@ public:
|
|||
}
|
||||
|
||||
|
||||
void enableDrop() override
|
||||
{
|
||||
m_drag_data.can_drop = true;
|
||||
}
|
||||
|
||||
|
||||
void startDrag(DragData::Type type, const void* data, int size) override
|
||||
{
|
||||
m_allocator.deallocate(m_drag_data.data);
|
||||
|
|
|
@ -50,7 +50,6 @@ public:
|
|||
Type type;
|
||||
void* data;
|
||||
int size;
|
||||
bool can_drop;
|
||||
};
|
||||
|
||||
struct LUMIX_EDITOR_API StaticPluginRegister
|
||||
|
@ -82,7 +81,6 @@ public:
|
|||
virtual SDL_Window* getWindow() = 0;
|
||||
virtual void startDrag(DragData::Type type, const void* data, int size) = 0;
|
||||
virtual DragData getDragData() = 0;
|
||||
virtual void enableDrop() = 0;
|
||||
|
||||
virtual ~StudioApp() {}
|
||||
virtual void run() = 0;
|
||||
|
|
|
@ -372,7 +372,6 @@ void SceneView::onGUI()
|
|||
}
|
||||
if (ImGui::IsItemHoveredRect())
|
||||
{
|
||||
m_app.enableDrop();
|
||||
if (ImGui::IsMouseReleased(0) && m_app.getDragData().type == StudioApp::DragData::PATH)
|
||||
{
|
||||
float x = (ImGui::GetMousePos().x - content_min.x) / size.x;
|
||||
|
|
Loading…
Reference in a new issue