void EditorBodyControl::SetModificationMode(ResourceEditor::eModificationActions mode)
{
	modificationMode = mode;

	ArrowsNode* arrowsNode = GetArrowsNode(false);
	if (arrowsNode)
	{
		arrowsNode->SetActive(InModificationMode());
	}
}
void EditorBodyControl::UpdateArrowsNode(Entity* node)
{
	ArrowsNode* arrowsNode = GetArrowsNode(false);
	if (node && arrowsNode)
	{
		if (node == arrowsNode)
		{
			arrowsNode->SetVisible(false);
			return;
		}

		Matrix4 nodeWT = node->GetWorldTransform();
		Matrix4 arrowsNodeTransform;
		arrowsNodeTransform.CreateTranslation(nodeWT.GetTranslationVector());
		arrowsNode->SetLocalTransform(arrowsNodeTransform);
		arrowsNode->SetVisible(true);
		arrowsNode->SetActive(InModificationMode());
	}
}