From 5c15e053b9efef582798c852c53b5e0d80ab6930 Mon Sep 17 00:00:00 2001 From: RedShip Date: Wed, 26 Mar 2025 18:06:29 +0100 Subject: [PATCH] + | fix compile --- srcs/class/SceneParser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcs/class/SceneParser.cpp b/srcs/class/SceneParser.cpp index aeab35d..3a2ff77 100644 --- a/srcs/class/SceneParser.cpp +++ b/srcs/class/SceneParser.cpp @@ -6,7 +6,7 @@ /* By: ycontre +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/12/26 21:43:51 by TheRed #+# #+# */ -/* Updated: 2025/02/04 01:21:11 by tomoron ### ########.fr */ +/* Updated: 2025/03/26 18:05:52 by ycontre ### ########.fr */ /* */ /* ************************************************************************** */ @@ -166,7 +166,8 @@ bool SceneParser::parseLine(const std::string &line) Object *obj = it->second(ss); GPUMaterial mat = _scene->getMaterial(obj->getMaterialIndex()); //verify material - + (void) mat; + if (obj->getType() == Object::Type::PORTAL) _scene->addObject(static_cast(obj)->createSupportQuad());