Fixed the uv previewer node.

This commit is contained in:
Relintai 2022-04-13 23:56:34 +02:00
parent 7abae74f96
commit dfa336c427
2 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,12 @@ void MDREdUVPreviewer::_draw() {
} }
} }
void MDREdUVPreviewer::_notification(int p_what) {
if (p_what == NOTIFICATION_DRAW) {
_draw();
}
}
MDREdUVPreviewer::MDREdUVPreviewer() { MDREdUVPreviewer::MDREdUVPreviewer() {
} }

View File

@ -44,6 +44,7 @@ public:
~MDREdUVPreviewer(); ~MDREdUVPreviewer();
protected: protected:
void _notification(int p_what);
static void _bind_methods(); static void _bind_methods();
Ref<MeshDataResource> mesh_data_resource; Ref<MeshDataResource> mesh_data_resource;