Skip to content

Commit 1a1b6d9

Browse files
committed
Fix JsonModelPlugin setting the name of the resulting RbxInstance
1 parent 27cf2c8 commit 1a1b6d9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/plugins/json_model_plugin.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde_json;
33

44
use core::Route;
55
use plugin::{Plugin, PluginChain, TransformFileResult, RbxChangeResult, FileChangeResult};
6-
use rbx::{RbxInstance, RbxValue};
6+
use rbx::RbxInstance;
77
use vfs::VfsItem;
88

99
lazy_static! {
@@ -37,10 +37,7 @@ impl Plugin for JsonModelPlugin {
3737
};
3838

3939
rbx_item.route = Some(vfs_item.route().to_vec());
40-
41-
rbx_item.properties.insert("Name".to_string(), RbxValue::String {
42-
value: rbx_name,
43-
});
40+
rbx_item.name = rbx_name;
4441

4542
TransformFileResult::Value(Some(rbx_item))
4643
},

0 commit comments

Comments
 (0)