Only select the original target after a drag.

This allows you to still drag clones around, but when you stop dragging,
the original sprite gets selected.
This commit is contained in:
Paul Kaplan 2018-04-10 14:31:49 -04:00
parent d177f4cd0c
commit da539ea6cd

View file

@ -900,7 +900,7 @@ class VirtualMachine extends EventEmitter {
if (target) { if (target) {
this._dragTarget = null; this._dragTarget = null;
target.stopDrag(); target.stopDrag();
this.setEditingTarget(target.id); this.setEditingTarget(target.sprite.clones[0].id);
} }
} }