Refine inspector layout and fix header labels
This commit is contained in:
@@ -44,7 +44,7 @@ void InspectorPanel::RenderEntity(Entity* entity) {
|
||||
void InspectorPanel::RenderComponent(Component* component) {
|
||||
if (!component) return;
|
||||
|
||||
const char* name = component->GetName().c_str();
|
||||
const std::string name = component->GetName();
|
||||
|
||||
std::string headerId = name + std::string("##") + std::to_string(reinterpret_cast<uintptr_t>(component));
|
||||
|
||||
@@ -91,4 +91,4 @@ void InspectorPanel::RenderComponent(Component* component) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user