disable marker editing for polylines (#6596)

This commit is contained in:
Timi007 2018-10-17 01:08:10 +02:00 committed by PabstMirror
parent 52abed1d07
commit 95fbdbce65

View File

@ -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;