code refactoring
This commit is contained in:
@@ -52,17 +52,17 @@ namespace OpenVulkano::Scene
|
||||
}
|
||||
}
|
||||
}
|
||||
if (res)
|
||||
{
|
||||
if (SimpleDrawable* sd = dynamic_cast<SimpleDrawable*>(res->drawable))
|
||||
{
|
||||
Logger::APP->info("Ray intersects object {}", sd->GetMesh()->name);
|
||||
}
|
||||
else if (LabelDrawable* sd = dynamic_cast<LabelDrawable*>(res->drawable))
|
||||
{
|
||||
Logger::APP->info("Ray intersects label {}", sd->GetTexts().front().GetText());
|
||||
}
|
||||
}
|
||||
//if (res)
|
||||
//{
|
||||
// if (SimpleDrawable* sd = dynamic_cast<SimpleDrawable*>(res->drawable))
|
||||
// {
|
||||
// Logger::APP->info("Ray intersects object {}", sd->GetMesh()->name);
|
||||
// }
|
||||
// else if (LabelDrawable* sd = dynamic_cast<LabelDrawable*>(res->drawable))
|
||||
// {
|
||||
// Logger::APP->info("Ray intersects label {}", sd->GetTexts().front().GetText());
|
||||
// }
|
||||
//}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user