Description:
Clear tool selections.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -106,6 +106,14 | |||
|
106 | 106 | var tool_type = GetComponent<ToolComponent>(entity).Tool; |
|
107 | 107 | if (tool_type == toolMessage.Tool) |
|
108 | 108 | { |
|
109 | ||
|
110 | //Clear selections | |
|
111 | foreach (ref readonly var inner_entity in ReadEntities<ToolComponent>()) | |
|
112 | { | |
|
113 | var inner_selected_component = GetComponent<SelectedComponent>(inner_entity); | |
|
114 | inner_selected_component.selected = false; | |
|
115 | SetComponent(inner_entity, inner_selected_component); | |
|
116 | } | |
|
109 | 117 | var selectedComponent = GetComponent<SelectedComponent>(entity); |
|
110 | 118 | selectedComponent.selected = !selectedComponent.selected; |
|
111 | 119 | SetComponent(entity, selectedComponent); |
You need to be logged in to leave comments.
Login now