Now renders func brush materials correclty

This commit is contained in:
Antoine Pilote
2024-08-31 12:33:48 -04:00
parent 8aa41a1bf8
commit f59a7e931f
8 changed files with 76 additions and 25 deletions

View File

@@ -126,7 +126,7 @@ namespace Nuake {
return false;
}
switch (static_cast<ComponentTypes>(componentEnumValue))
switch (static_cast<ComponentTypes>(componentType))
{
case PARENT: return entity.HasComponent<ParentComponent>();
case NAME: return entity.HasComponent<NameComponent>();

View File

@@ -280,7 +280,7 @@ namespace Nuake
{
if (!m_IsInitialized)
{
Initialize();
return;
}
const std::string sanitizedProjectName = String::Sanitize(project->Name);
@@ -522,6 +522,11 @@ namespace Nuake
// Override with user values set in the editor.
for (auto& exposedVarUserValue : component.ExposedVar)
{
if (!exposedVarUserValue.Value.has_value())
{
continue;
}
if (exposedVarUserValue.Type == NetScriptExposedVarType::String)
{
std::string stringValue = std::any_cast<std::string>(exposedVarUserValue.Value);