Fix compile_shader task when project hasn't been configured
This commit is contained in:
@@ -12,7 +12,11 @@ task("compile-shaders")
|
|||||||
|
|
||||||
on_run(function ()
|
on_run(function ()
|
||||||
import("core.base.option")
|
import("core.base.option")
|
||||||
|
import("core.base.task")
|
||||||
import("core.project.project")
|
import("core.project.project")
|
||||||
|
|
||||||
|
task.run("config", {}, {disable_dump = true})
|
||||||
|
|
||||||
local nzsl = path.join(project.required_package("nzsl"):installdir(), "bin", "nzslc")
|
local nzsl = path.join(project.required_package("nzsl"):installdir(), "bin", "nzslc")
|
||||||
|
|
||||||
local envs
|
local envs
|
||||||
|
|||||||
Reference in New Issue
Block a user