We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f78d7e7 commit 5a34bd0Copy full SHA for 5a34bd0
1 file changed
src/game/editor.rs
@@ -178,14 +178,17 @@ pub fn object_ped(
178
selected_obj: &mut u16
179
) {
180
if current_tab == 1 {
181
+ for object in &mut *object_grid {
182
+ object.selected = false;
183
+ }
184
object_grid.push(ObjectStruct {
185
x: snapped_x,
186
y: snapped_y,
187
rotation: 0,
188
no_touch: 0,
189
hide: 0,
190
id: current_obj,
- selected: false,
191
+ selected: true,
192
properties: if current_obj == 23 {
193
Some(vec![
194
"0".to_string(),
0 commit comments