17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-06 11:38:38 +01:00

feat(editor): array of the selected model in the toolset, after the array modifier of Blender: fixed count or fit length, relative and constant offset along the axes of the model, turn per copy, copies following the ground; the array follows its settings until something else is selected or changed, and is a single step of the undo history

This commit is contained in:
2026-10-06 22:52:42 +02:00
parent c4a22eabd5
commit 8dd666d4d8
4 changed files with 455 additions and 2 deletions

View File

@@ -66,6 +66,11 @@ class editor_ui : public ui_layer
{
m_gizmooptions = std::move(Renderer);
}
// draws the array settings in the toolset window (the array state lives in the editor mode)
void set_array_options(std::function<void()> Renderer)
{
m_arrayoptions = std::move(Renderer);
}
// actions of the file menu, performed by the editor mode
void set_file_actions(std::function<void()> Save, std::function<void()> Export);
// shows outcome of an operation in the layers window
@@ -90,6 +95,7 @@ class editor_ui : public ui_layer
std::function<void()> m_filloptions;
std::function<void()> m_menuoptions;
std::function<void()> m_gizmooptions;
std::function<void()> m_arrayoptions;
scene::basic_node *m_node{nullptr}; // currently bound scene node, if any
bool m_track{false};
};