feat: name of inspector tab matches name of layer
This commit is contained in:
parent
cb43179770
commit
656917f6fc
|
|
@ -18,6 +18,7 @@ void LayerEditor::select(Ref<TerrainPrimitive> primitive) {
|
||||||
deselect_current();
|
deselect_current();
|
||||||
if (primitive.is_valid() && this->inspectors.has(primitive->get_class())) {
|
if (primitive.is_valid() && this->inspectors.has(primitive->get_class())) {
|
||||||
this->current_inspector = this->inspectors.get(primitive->get_class())->instantiate();
|
this->current_inspector = this->inspectors.get(primitive->get_class())->instantiate();
|
||||||
|
this->current_inspector->set_name(primitive->get_name());
|
||||||
add_child(this->current_inspector);
|
add_child(this->current_inspector);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue