scripting fix

This commit is contained in:
Turanszki Janos
2024-12-28 12:53:25 +01:00
parent b0c8979af1
commit b78e42eb85
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -148,6 +148,9 @@ namespace wi::lua
component->ActivatePath(comp->component, fadeSeconds, fadeColor);
return 0;
}
// If first param is neither, it can be nil to unset path:
component->ActivatePath(nullptr);
}
else
{
+1
View File
@@ -28,6 +28,7 @@ namespace wi::lua
renderpath.camera = wi::lua::scene::GetGlobalCamera();
this->component = &renderpath;
}
virtual ~RenderPath3D_BindLua() = default;
int SetResolutionScale(lua_State* L);
int SetAO(lua_State* L);