From b78e42eb85eaf77d89244cdafcdc2a2d3e9ef953 Mon Sep 17 00:00:00 2001 From: Turanszki Janos Date: Sat, 28 Dec 2024 12:53:25 +0100 Subject: [PATCH] scripting fix --- WickedEngine/wiApplication_BindLua.cpp | 3 +++ WickedEngine/wiRenderPath3D_BindLua.h | 1 + 2 files changed, 4 insertions(+) diff --git a/WickedEngine/wiApplication_BindLua.cpp b/WickedEngine/wiApplication_BindLua.cpp index 446736210..6e7665a80 100644 --- a/WickedEngine/wiApplication_BindLua.cpp +++ b/WickedEngine/wiApplication_BindLua.cpp @@ -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 { diff --git a/WickedEngine/wiRenderPath3D_BindLua.h b/WickedEngine/wiRenderPath3D_BindLua.h index 74100d288..eb42bd09c 100644 --- a/WickedEngine/wiRenderPath3D_BindLua.h +++ b/WickedEngine/wiRenderPath3D_BindLua.h @@ -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);