added material editing in mesh panel. Renamed mesh component to model component.

This commit is contained in:
a.pilote
2022-07-17 14:15:11 -04:00
parent dbec248d8a
commit 5fb1e376c2
13 changed files with 298 additions and 28 deletions

View File

@@ -23,7 +23,7 @@ extern "C" {
#include "src/Resource/FGD/FGDClass.h"
#include "src/Scene/Components/WrenScriptComponent.h"
#include "src/Scene/Components/PrefabComponent.h"
#include "src/Scene/Components/MeshComponent.h"
#include "src/Scene/Components/ModelComponent.h"
#include <vector>
#include <map>
@@ -609,7 +609,7 @@ namespace Nuake {
//bsp.Meshes.push_back(mesh);
}
MeshComponent& modelComponent = brushEntity.AddComponent<MeshComponent>();
ModelComponent& modelComponent = brushEntity.AddComponent<ModelComponent>();
modelComponent.ModelResource = model;
}