From 95fbdbce65db37bee3aa79ce1d49a1477164cf20 Mon Sep 17 00:00:00 2001 From: Timi007 Date: Wed, 17 Oct 2018 01:08:10 +0200 Subject: [PATCH] disable marker editing for polylines (#6596) --- addons/markers/functions/fnc_initInsertMarker.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/markers/functions/fnc_initInsertMarker.sqf b/addons/markers/functions/fnc_initInsertMarker.sqf index fa7cec19ee..8a7a5f21fb 100644 --- a/addons/markers/functions/fnc_initInsertMarker.sqf +++ b/addons/markers/functions/fnc_initInsertMarker.sqf @@ -55,7 +55,7 @@ //check if entity under mouse is a user marker if (_mouseOverType isEqualTo "marker") then { - if !((_marker find "_USER_DEFINED") isEqualTo -1) then { + if (!((_marker find "_USER_DEFINED") isEqualTo -1) && ((markerShape _marker) isEqualTo "ICON")) then { GVAR(editingMarker) = _marker; //hide marker which is being edited because if the user cancels editing, it will still exist unchanged GVAR(editingMarker) setMarkerAlphaLocal 0;