diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-15 10:08:07 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-15 10:08:07 -0400 |
commit | 67898c6505c9180b5a5a31457f11d29b41fa91ba (patch) | |
tree | 16a472797ce22ec8645a04bbbe9167990e6081da /layer.cpp | |
parent | 7cfb7ce652d1c13ab72392d95dc93d967bf505fb (diff) |
fixes
Diffstat (limited to 'layer.cpp')
-rw-r--r-- | layer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -71,15 +71,15 @@ TransformsInteract(project_data *File, project_state *State, ui *UI, transforms_ for (int i = 0; i < State->NumberOfSelectedLayers; i++) { uint16 Index = List.LayerIndex[i]; if (Mode == sliding_position) { - SwitchBool(File->Layer[Index]->x.IsToggled) - SwitchBool(File->Layer[Index]->y.IsToggled) + File->Layer[Index]->x.IsToggled ^= 1; + File->Layer[Index]->y.IsToggled ^= 1; } else if (Mode == sliding_anchorpoint) { - SwitchBool(File->Layer[Index]->ax.IsToggled) - SwitchBool(File->Layer[Index]->ay.IsToggled) + File->Layer[Index]->ax.IsToggled ^= 1; + File->Layer[Index]->ay.IsToggled ^= 1; } else if (Mode == sliding_rotation) { - SwitchBool(File->Layer[Index]->rotation.IsToggled) + File->Layer[Index]->rotation.IsToggled ^= 1; } else if (Mode == sliding_scale) { - SwitchBool(File->Layer[Index]->scale.IsToggled) + File->Layer[Index]->scale.IsToggled ^= 1; } } } else if (UI->FocusedWindow == focus_viewport) { @@ -150,7 +150,7 @@ MoveLayersByIncrement(project_data *File, project_state *State, int16 Increment) while (c > 0) { if (Index+c == State->MostRecentlySelectedLayer) State->MostRecentlySelectedLayer += Increment; - project_layer Temp = *File->Layer[Index+c]; + // project_layer Temp = *File->Layer[Index+c]; *File->Layer[Index+c] = *File->Layer[Index + c - 1]; c--; } |