# FIX: Game Engine module needs to be active to build the Blender Player
if ! use game-engine && use player; then
elog "Forcing Game Engine [+game-engine] as required by Blender Player [+player]"
echo "WITH_BF_GAMEENGINE=1" >> "${S}"/user-config.py
else
blend_with game-engine gameengine
fi

# stop this script if the local blender path is a symlink
if [ -L \${HOME}/.blender ]; then
echo "Detected a symbolic link for \${HOME}/.blender"
echo "Sorry, to avoid dangerous situations, the Blender binary can"
echo "not be started until you have removed the symbolic link:"
echo " # rm -i \${HOME}/.blender"
exit 1
fi