fix: inspector title updates with layer name
This commit is contained in:
parent
3557d0dc31
commit
73cb82d8db
2 changed files with 16 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ class LayerEditor : public TabContainer {
|
|||
static void _bind_methods();
|
||||
|
||||
protected:
|
||||
void _selected_changed();
|
||||
|
||||
public:
|
||||
void deselect_current();
|
||||
void select(Ref<TerrainPrimitive> primitive);
|
||||
|
|
@ -18,6 +20,7 @@ public:
|
|||
TerrainMeshEditor *get_terrain() const;
|
||||
|
||||
private:
|
||||
Ref<TerrainPrimitive> selected{};
|
||||
HashMap<StringName, Ref<PackedScene>> inspectors{};
|
||||
Node *current_inspector{ nullptr };
|
||||
TerrainMeshEditor *terrain{ nullptr };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue