create NodeDialogOpen and bind it to the layout template
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "log.h"
|
||||
#include "canvas.h"
|
||||
|
||||
ui::Canvas* ui::Canvas::I;
|
||||
glm::vec3 ui::Canvas::m_plane_origin[6] = {
|
||||
{ 0, 0,-1}, // front
|
||||
{ 1, 0, 0}, // right
|
||||
@@ -597,6 +598,7 @@ void ui::Canvas::project_open(std::string data_path)
|
||||
fclose(fp);
|
||||
LOG("project restore from %s", name);
|
||||
}
|
||||
|
||||
ui::Image ui::Canvas::thumbnail_generate(int w, int h)
|
||||
{
|
||||
// save viewport and clear color states
|
||||
@@ -657,6 +659,7 @@ ui::Image ui::Canvas::thumbnail_generate(int w, int h)
|
||||
|
||||
return std::move(image);
|
||||
}
|
||||
|
||||
ui::Image ui::Canvas::thumbnail_read(std::string data_path)
|
||||
{
|
||||
static char name[128];
|
||||
@@ -677,6 +680,7 @@ ui::Image ui::Canvas::thumbnail_read(std::string data_path)
|
||||
LOG("project thumbnail read from %s", name);
|
||||
return std::move(thumb);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void ui::Layer::destroy()
|
||||
|
||||
Reference in New Issue
Block a user