Fix JsonModelPlugin setting the name of the resulting RbxInstance

This commit is contained in:
Lucien Greathouse
2018-01-09 16:40:39 -08:00
parent 27cf2c8740
commit 1a1b6d923f

View File

@@ -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))
},