editor: translator update

This commit is contained in:
turanszkij
2020-03-11 19:39:44 +00:00
parent 7d4d9dfa6b
commit 235450e313
5 changed files with 153 additions and 203 deletions
+3 -3
View File
@@ -466,7 +466,7 @@ ObjectWindow::ObjectWindow(EditorComponent* editor) : editor(editor)
std::unordered_set<ObjectComponent*> gen_objects;
std::unordered_map<MeshComponent*, Atlas_Dim> gen_meshes;
for (auto& x : this->editor->selected)
for (auto& x : this->editor->translator.selected)
{
ObjectComponent* objectcomponent = scene.objects.GetComponent(x.entity);
if (objectcomponent != nullptr)
@@ -535,7 +535,7 @@ ObjectWindow::ObjectWindow(EditorComponent* editor) : editor(editor)
Scene& scene = wiScene::GetScene();
for (auto& x : this->editor->selected)
for (auto& x : this->editor->translator.selected)
{
ObjectComponent* objectcomponent = scene.objects.GetComponent(x.entity);
if (objectcomponent != nullptr)
@@ -556,7 +556,7 @@ ObjectWindow::ObjectWindow(EditorComponent* editor) : editor(editor)
Scene& scene = wiScene::GetScene();
for (auto& x : this->editor->selected)
for (auto& x : this->editor->translator.selected)
{
ObjectComponent* objectcomponent = scene.objects.GetComponent(x.entity);
if (objectcomponent != nullptr)