Simplify legacy NPC targeting check by removing sequence dependency
This commit is contained in:
@@ -5231,14 +5231,8 @@ function readProjectSequenceLibrary(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function hasLegacyNpcTargetingInteractionLink(
|
function hasLegacyNpcTargetingInteractionLink(link: InteractionLink): boolean {
|
||||||
link: InteractionLink,
|
return link.trigger === "click";
|
||||||
sequences: ProjectSequenceLibrary
|
|
||||||
): boolean {
|
|
||||||
return (
|
|
||||||
link.trigger === "click" &&
|
|
||||||
getInteractionLinkImpulseSteps(link, sequences).length > 0
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function migrateLegacySceneNpcTargetability(
|
function migrateLegacySceneNpcTargetability(
|
||||||
|
|||||||
Reference in New Issue
Block a user