mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
selection and ctrl Z
This commit is contained in:
parent
33976a619e
commit
169309e17d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue