From 4d49128e4c94529bd78ba6d87e935ac6eafd230a Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 13 Apr 2022 23:31:23 +0200 Subject: [PATCH] Bind a few methods to fix undo redo support, and events for mdr ed. --- modules/mesh_data_resource/editor/mdi_gizmo.cpp | 6 ++++++ .../editor/uv_editor/mdr_ed_uv_previewer.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/modules/mesh_data_resource/editor/mdi_gizmo.cpp b/modules/mesh_data_resource/editor/mdi_gizmo.cpp index ab5ffa7f4..b3187e791 100644 --- a/modules/mesh_data_resource/editor/mdi_gizmo.cpp +++ b/modules/mesh_data_resource/editor/mdi_gizmo.cpp @@ -2209,4 +2209,10 @@ MDIGizmo::~MDIGizmo() { } void MDIGizmo::_bind_methods() { + ClassDB::bind_method(D_METHOD("on_mdr_changed"), &MDIGizmo::on_mdr_changed); + ClassDB::bind_method(D_METHOD("on_mesh_data_resource_changed"), &MDIGizmo::on_mesh_data_resource_changed); + + ClassDB::bind_method(D_METHOD("apply_mesh_change"), &MDIGizmo::apply_mesh_change); + ClassDB::bind_method(D_METHOD("set_seam"), &MDIGizmo::set_seam); + ClassDB::bind_method(D_METHOD("apply_vertex_array"), &MDIGizmo::apply_vertex_array); } 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 ca2ed8f99..77c2ac175 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 @@ -109,4 +109,5 @@ MDREdUVPreviewer::~MDREdUVPreviewer() { } void MDREdUVPreviewer::_bind_methods() { + ClassDB::bind_method(D_METHOD("on_mdr_changed"), &MDREdUVPreviewer::on_mdr_changed); }