From ab2e35579fa0be495cfae0a946add59cec63eb59 Mon Sep 17 00:00:00 2001 From: jean Date: Sun, 7 Feb 2021 20:33:29 +0100 Subject: [PATCH] Remove old unused properties --- src/graphics/material.cpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index 75aba1447..c46752d4f 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -195,30 +195,28 @@ Material::Material(const XMLNode *node, bool deprecated) if (!node->get("shader", &s)) { // BACKWARS COMPATIBILITY, EVENTUALLY REMOVE - bool b = false; - node->get("additive", &b); - if (b) + if (node->get("additive", &b)) { - m_shader_name = "alphablend"; + Log::warn("material", "'additive=' property is deprecated and removed. Please use shaders now"); } - b = false; - node->get("alpha", &b); - if (b) + if (node->get("alpha", &b)) { - m_shader_name = "alphablend"; + Log::warn("material", "'alpha=' property is deprecated and removed. Please use shaders now"); } - b = true; - node->get("light", &b); - if (!b) + if (node->get("light", &b)) { - m_shader_name = "unlit"; + Log::warn("material", "'light=' property is deprecated and removed. Please use shaders now"); } if (node->get("compositing", &s)) { - Log::warn("material", "compositing property is deprecated and removed. Please use shaders now"); + Log::warn("material", "'compositing=' property is deprecated and removed. Please use shaders now"); + } + if (node->get("transparency", &s)) + { + Log::warn("material", "'transparency=' property is deprecated and removed. Please use shaders now"); } s = "";