1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-04 13:54:22 +00:00

selection and ctrl Z

This commit is contained in:
Cameron Taylor 2023-02-08 04:34:32 -05:00
parent 33976a619e
commit 169309e17d

View file

@ -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