From eae02c133dbf1a361ffaa7b92082c0f92e3b5c89 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 6 Dec 2018 20:39:18 -0500 Subject: [PATCH] Fix traceback introduced by 742baf3 when exporting to PotS --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index c81d037..e85ec51 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -547,7 +547,7 @@ class MaterialConverter: if viewpt.type == "CAMERA": warn = self._report.port if bl_env.mapping == "PLANE" else self._report.warn warn("Environment Map '{}' is exporting as a cube map. The viewpoint '{}' is a camera, but only its position will be used.", - bl_env.name, viewpt.name) + bl_env.id_data.name, viewpt.name, indent=5) # DEMs can do just a position vector. We actually prefer this because the WaveSet exporter # will probably want to steal it for diabolical purposes...