From 4e69bc3bff38db3e22f0171e55355205277f8bde Mon Sep 17 00:00:00 2001 From: Kyle Luce Date: Sun, 17 Jul 2016 11:09:47 -0700 Subject: Could not use pre multiply alpha for material in editor - 3 was hard coded, I just changed to 4. Unfortunately this will break every time a blend mode is added --- scene/resources/material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/resources') diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index f6213f74e8..9dc54ef0e4 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -68,7 +68,7 @@ void Material::set_flag(Flag p_flag,bool p_enabled) { void Material::set_blend_mode(BlendMode p_blend_mode) { - ERR_FAIL_INDEX(p_blend_mode,3); + ERR_FAIL_INDEX(p_blend_mode,4); blend_mode=p_blend_mode; VisualServer::get_singleton()->material_set_blend_mode(material,(VS::MaterialBlendMode)p_blend_mode); _change_notify(); -- cgit v1.2.3