From 4261c7342d92ab259d563fcf96180905c112ec96 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Tue, 24 Jan 2023 20:16:31 -0500 Subject: functioning smart boxing?? --- src/layer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/layer.cpp') 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; } -- cgit v1.2.3