game->getViewpoint() now sets the TwigSceneRenderer.

This commit is contained in:
Vassyli
2021-04-12 18:24:56 +02:00
committed by Basilius Sauter
parent 1e900d8ec7
commit a9dae2e958
+1
View File
@@ -249,6 +249,7 @@ class Game
public function getViewpoint(): Viewpoint
{
$v = $this->getCharacter()->getViewpoint();
$v->setTwigSceneRenderer($this->getSceneRenderer());
if ($v === null) {
// No viewpoint set up for this user. Run the hook to find the default