mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-26 15:07:14 +00:00
selection and ctrl Z
This commit is contained in:
parent
33976a619e
commit
169309e17d
|
@ -61,7 +61,12 @@ class SelectPropCommand implements StageEditorCommand
|
|||
|
||||
public function undo(state:StageOffsetSubstate):Void
|
||||
{
|
||||
var funnyShader = state.char.shader;
|
||||
if (state.char != null) state.char.shader = null;
|
||||
state.char = this.prevProp;
|
||||
|
||||
// I KNOW, TWO DAMN NULL CHECKS IN A SINGLE FUNCTION! FUK U
|
||||
if (state.char != null) state.char.shader = funnyShader;
|
||||
}
|
||||
|
||||
public function toString():String
|
||||
|
|
Loading…
Reference in a new issue