Skip to content

Commit 2840583

Browse files
authored
Fix placement preview activating modules in recent tree (#727)
1 parent 9def352 commit 2840583

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addons/placement/XEH_postInit.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
private _objectType = _ctrlTreeRecent tvData _selectedPath;
2525

26-
if (!isClass (configFile >> "CfgVehicles" >> _objectType)) then {
26+
if (!isClass (configFile >> "CfgVehicles" >> _objectType) || {_objectType isKindOf "Logic"}) then {
2727
_objectType = "";
2828
};
2929

addons/placement/functions/fnc_handleTreeChange.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private _objectType = if (_mode in [0, 4] && {call EFUNC(common,isPlacementActiv
2626
private _ctrlTree = call EFUNC(common,getActiveTree);
2727
private _data = _ctrlTree tvData tvCurSel _ctrlTree;
2828

29-
if (_mode == 4 && {!isClass (configFile >> "CfgVehicles" >> _data)}) then {
29+
if (_mode == 4 && {!isClass (configFile >> "CfgVehicles" >> _data) || {_data isKindOf "Logic"}}) then {
3030
_data = "";
3131
};
3232

0 commit comments

Comments
 (0)