summaryrefslogtreecommitdiff
path: root/src/layer.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2023-01-24 20:16:31 -0500
committerFox Caminiti <fox@foxcam.net>2023-01-24 20:16:31 -0500
commit4261c7342d92ab259d563fcf96180905c112ec96 (patch)
treeb30a67fc8acfb8e2229743c8816d23690b5124fd /src/layer.cpp
parente4acc91f56d9d88b75f60a23bd9662804d7c54b7 (diff)
functioning smart boxing??
Diffstat (limited to 'src/layer.cpp')
-rw-r--r--src/layer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layer.cpp b/src/layer.cpp
index c158466..591487e 100644
--- a/src/layer.cpp
+++ b/src/layer.cpp
@@ -193,6 +193,7 @@ Layer_Select(memory *Memory, project_state *State, int32 i)
block_layer *Layer = (block_layer *)Memory_Block_AddressAtIndex(Memory, F_Layers, i);
Layer->IsSelected = true;
State->MostRecentlySelectedLayer = i;
+ State->Interact_Transform = {};
State->RecentSelectionType = selection_type_layer;
}
@@ -212,6 +213,7 @@ Layer_DeselectAll(project_data *File, project_state *State, memory *Memory) {
block_layer *Layer = (block_layer *)Memory_Block_AddressAtIndex(Memory, F_Layers, i);
Layer->IsSelected = false;
}
+ State->Interact_Transform = {};
State->MostRecentlySelectedLayer = -1;
}