add web sync files and key events
This commit is contained in:
@@ -6,7 +6,10 @@
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <Foundation/Foundation.h>
|
||||
#elif __WEB__
|
||||
void webgl_sync();
|
||||
#endif
|
||||
|
||||
#include "canvas.h"
|
||||
#include "app.h"
|
||||
#include "abr.h"
|
||||
@@ -266,6 +269,10 @@ bool NodePanelBrush::save()
|
||||
sw << *b;
|
||||
}
|
||||
f.write((char*)sw.m_data.data(), sw.m_data.size());
|
||||
f.close();
|
||||
#if __WEB__
|
||||
webgl_sync();
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user