demo license checker
This commit is contained in:
@@ -911,6 +911,8 @@ void ui::Canvas::import_equirectangular_thread(std::string file_path)
|
||||
|
||||
void ui::Canvas::export_equirectangular(std::string file_path)
|
||||
{
|
||||
if (!App::I.check_license())
|
||||
return;
|
||||
std::thread t(&ui::Canvas::export_equirectangular_thread, this, file_path);
|
||||
t.detach();
|
||||
}
|
||||
@@ -1152,6 +1154,8 @@ void ui::Canvas::inject_xmp(std::string jpg_path)
|
||||
|
||||
void ui::Canvas::export_anim(std::string data_path)
|
||||
{
|
||||
if (!App::I.check_license())
|
||||
return;
|
||||
// save viewport and clear color states
|
||||
GLint vp[4];
|
||||
GLfloat cc[4];
|
||||
@@ -1263,6 +1267,8 @@ void ui::Canvas::export_anim(std::string data_path)
|
||||
|
||||
void ui::Canvas::export_cubes(std::string data_path)
|
||||
{
|
||||
if (!App::I.check_license())
|
||||
return;
|
||||
#ifdef __OBJC__
|
||||
NSMutableArray* files = [NSMutableArray array];
|
||||
#endif
|
||||
@@ -1343,6 +1349,8 @@ void ui::Canvas::export_cubes(std::string data_path)
|
||||
|
||||
void ui::Canvas::project_save(std::string file_path)
|
||||
{
|
||||
if (!App::I.check_license())
|
||||
return;
|
||||
std::thread t(&ui::Canvas::project_save_thread, this, file_path);
|
||||
t.detach();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user