mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix incorrect route being assigned to init.lua and init.model.json files
This commit is contained in:
parent
82ba583fa0
commit
a089d82023
2 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ impl Plugin for JsonModelPlugin {
|
||||||
|
|
||||||
rbx_item.name.clear();
|
rbx_item.name.clear();
|
||||||
rbx_item.name.push_str(vfs_item.name());
|
rbx_item.name.push_str(vfs_item.name());
|
||||||
|
rbx_item.route = Some(vfs_item.route().to_vec());
|
||||||
|
|
||||||
for (child_name, child_item) in children {
|
for (child_name, child_item) in children {
|
||||||
if child_name == init_item.name() {
|
if child_name == init_item.name() {
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ impl Plugin for ScriptPlugin {
|
||||||
|
|
||||||
rbx_item.name.clear();
|
rbx_item.name.clear();
|
||||||
rbx_item.name.push_str(vfs_item.name());
|
rbx_item.name.push_str(vfs_item.name());
|
||||||
|
rbx_item.route = Some(vfs_item.route().to_vec());
|
||||||
|
|
||||||
for (child_name, child_item) in children {
|
for (child_name, child_item) in children {
|
||||||
if child_name == init_item.name() {
|
if child_name == init_item.name() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue