forked from StrafesNET/asset-tool
fix compiling with no template
This commit is contained in:
parent
9808c2ac0c
commit
ee034a93ee
@ -780,7 +780,7 @@ async fn compile(config:CompileConfig)->AResult<()>{
|
|||||||
let mut dom=match config.template{
|
let mut dom=match config.template{
|
||||||
//mr dom doesn't like tokio files
|
//mr dom doesn't like tokio files
|
||||||
Some(template_path)=>load_dom(std::io::BufReader::new(std::fs::File::open(template_path)?))?,
|
Some(template_path)=>load_dom(std::io::BufReader::new(std::fs::File::open(template_path)?))?,
|
||||||
None=>rbx_dom_weak::WeakDom::default(),
|
None=>rbx_dom_weak::WeakDom::new(rbx_dom_weak::InstanceBuilder::new("DataModel")),
|
||||||
};
|
};
|
||||||
|
|
||||||
rox_compiler::compile(rox_compiler::CompileConfig{
|
rox_compiler::compile(rox_compiler::CompileConfig{
|
||||||
|
Loading…
Reference in New Issue
Block a user