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 public function undo(state:StageOffsetSubstate):Void
{ {
var funnyShader = state.char.shader;
if (state.char != null) state.char.shader = null;
state.char = this.prevProp; 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 public function toString():String