diff --git a/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.cpp b/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.cpp index 77c2ac175..c7be9407c 100644 --- a/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.cpp +++ b/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.cpp @@ -102,6 +102,12 @@ void MDREdUVPreviewer::_draw() { } } +void MDREdUVPreviewer::_notification(int p_what) { + if (p_what == NOTIFICATION_DRAW) { + _draw(); + } +} + MDREdUVPreviewer::MDREdUVPreviewer() { } diff --git a/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.h b/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.h index fc99da834..1337f0d06 100644 --- a/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.h +++ b/modules/mesh_data_resource/editor/uv_editor/mdr_ed_uv_previewer.h @@ -44,6 +44,7 @@ public: ~MDREdUVPreviewer(); protected: + void _notification(int p_what); static void _bind_methods(); Ref mesh_data_resource;