add web sync files and key events

This commit is contained in:
2019-10-11 00:44:11 +02:00
parent e6e3488291
commit babbfb36a7
9 changed files with 211 additions and 23 deletions

View File

@@ -9,6 +9,8 @@
#ifdef __APPLE__
#include <Foundation/Foundation.h>
#import "objc_utils.h"
#elif __WEB__
void webgl_sync();
#endif
@@ -2180,6 +2182,9 @@ bool Canvas::project_save_thread(std::string file_path, bool show_progress)
{
m_unsaved = false;
m_newdoc = false;
#if __WEB__
webgl_sync();
#endif
}
if (show_progress)