Skip to content

Commit

Permalink
Fix JsonModelPlugin setting the name of the resulting RbxInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Jan 10, 2018
1 parent 27cf2c8 commit 1a1b6d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/plugins/json_model_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down Expand Up @@ -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))
},
Expand Down

0 comments on commit 1a1b6d9

Please sign in to comment.