BUGFIX: Script clones were also cloning map assignments.

This commit is contained in:
Brendan Robert 2016-06-14 22:52:33 -04:00
parent a4eaeb5cf1
commit 0c832fd6ea

View File

@ -190,6 +190,8 @@ public class MapEditorTabControllerImpl extends MapEditorTabController {
} else {
try {
Script script = TransferHelper.cloneObject(source, Script.class, "script");
script.getLocationTrigger().clear();
script.getIntervalTrigger().clear();
script.setName(source.getName() + " CLONE");
getCurrentEditor().addScript(script);
editScript(script, getCurrentMap());