소스 검색

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
Kyle Luce 9 년 전
부모
커밋
4e69bc3bff
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scene/resources/material.cpp

+ 1 - 1
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();