feat: implemented point primitive gizmo
This commit is contained in:
parent
60865b74c7
commit
dfbe37a2e7
15 changed files with 330 additions and 60 deletions
20
modules/terrain_editor/terrain_mesh_editor.h
Normal file
20
modules/terrain_editor/terrain_mesh_editor.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include "terrain_editor/terrain_mesh_generator.h"
|
||||
|
||||
class TerrainMeshEditor : public TerrainMeshGenerator {
|
||||
GDCLASS(TerrainMeshEditor, TerrainMeshGenerator);
|
||||
static void _bind_methods();
|
||||
void ready();
|
||||
void on_primitive_list_changed(Array primitives);
|
||||
void on_primitive_node_removed();
|
||||
|
||||
protected:
|
||||
void _notification(int what);
|
||||
void set_point_primitive_object(Ref<PackedScene> scene);
|
||||
Ref<PackedScene> get_point_primitive_object() const;
|
||||
|
||||
private:
|
||||
Vector<Node3D *> primitive_nodes{};
|
||||
Ref<PackedScene> point_primitive_object{};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue