Skip to content

Commit 0c21be4

Browse files
authored
Area Markers - Cancel placement when an icon is clicked (#766)
1 parent 131eeb3 commit 0c21be4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

addons/area_markers/functions/fnc_onMouseButtonDown.sqf

+5
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ params ["_ctrlMouse", "_button"];
2020

2121
if (_button == 0) then {
2222
_ctrlMouse setVariable [QGVAR(moving), true];
23+
24+
// Cancel currently active placement
25+
if (call EFUNC(common,isPlacementActive)) then {
26+
call EFUNC(common,getActiveTree) tvSetCurSel [-1];
27+
};
2328
};

0 commit comments

Comments
 (0)