Skip to content

Commit

Permalink
editor: selecting object will not add material and mesh to selection,…
Browse files Browse the repository at this point in the history
… only binding to windows
  • Loading branch information
turanszkij committed Jun 18, 2024
1 parent b375b09 commit eb3be79
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Editor/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3734,20 +3734,6 @@ void EditorComponent::AddSelected(Entity entity)
void EditorComponent::AddSelected(const PickResult& picked)
{
wi::scene::Scene& scene = GetCurrentScene();
if (picked.subsetIndex >= 0)
{
const ObjectComponent* object = scene.objects.GetComponent(picked.entity);
if (object != nullptr) // maybe it was deleted...
{
AddSelected(object->meshID);

const MeshComponent* mesh = scene.meshes.GetComponent(object->meshID);
if (mesh != nullptr && (int)mesh->subsets.size() > picked.subsetIndex)
{
AddSelected(mesh->subsets[picked.subsetIndex].materialID);
}
}
}

bool removal = false;
for (size_t i = 0; i < translator.selected.size(); ++i)
Expand Down

0 comments on commit eb3be79

Please sign in to comment.