From a11b50aaad56aa16beb8aac3c0ce303f205243de Mon Sep 17 00:00:00 2001 From: Gustav Date: Thu, 24 Sep 2020 09:22:50 +0200 Subject: [PATCH] Stop reset of MultiMesh properties on populate ColorFormat and CustomFormat is not changed when populate is called. --- editor/plugins/multimesh_editor_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/plugins/multimesh_editor_plugin.cpp b/editor/plugins/multimesh_editor_plugin.cpp index 5dc222f84c9..2327df0cbcd 100644 --- a/editor/plugins/multimesh_editor_plugin.cpp +++ b/editor/plugins/multimesh_editor_plugin.cpp @@ -172,7 +172,8 @@ void MultiMeshEditor::_populate() { int instance_count = populate_amount->get_value(); multimesh->set_transform_format(MultiMesh::TRANSFORM_3D); - multimesh->set_color_format(MultiMesh::COLOR_NONE); + multimesh->set_color_format(node->get_multimesh()->get_color_format()); + multimesh->set_custom_data_format(node->get_multimesh()->get_custom_data_format()); multimesh->set_instance_count(instance_count); float _tilt_random = populate_tilt_random->get_value();