mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix JsonModelPlugin setting the name of the resulting RbxInstance
This commit is contained in:
parent
27cf2c8740
commit
1a1b6d923f
1 changed files with 2 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ use serde_json;
|
|||
|
||||
use core::Route;
|
||||
use plugin::{Plugin, PluginChain, TransformFileResult, RbxChangeResult, FileChangeResult};
|
||||
use rbx::{RbxInstance, RbxValue};
|
||||
use rbx::RbxInstance;
|
||||
use vfs::VfsItem;
|
||||
|
||||
lazy_static! {
|
||||
|
|
@ -37,10 +37,7 @@ impl Plugin for JsonModelPlugin {
|
|||
};
|
||||
|
||||
rbx_item.route = Some(vfs_item.route().to_vec());
|
||||
|
||||
rbx_item.properties.insert("Name".to_string(), RbxValue::String {
|
||||
value: rbx_name,
|
||||
});
|
||||
rbx_item.name = rbx_name;
|
||||
|
||||
TransformFileResult::Value(Some(rbx_item))
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue