From 9ff19951e20b5d944375aed4fe60fb9239e0d7a5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 31 Aug 2017 09:43:33 -0300 Subject: [PATCH] Fixed problem with non triplanar UV2 mode as described in issue. Closes #9979 --- editor/project_manager.cpp | 2 +- scene/resources/material.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index e042e9cc962..12911393e81 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1226,7 +1226,7 @@ ProjectManager::ProjectManager() { String cp; cp.push_back(0xA9); cp.push_back(0); - OS::get_singleton()->set_window_title(_MKSTR(VERSION_NAME) + String(" - ") + TTR("Project Manager") + " - " + cp + " 2008-2017 Juan Linietsky, Ariel Manzur."); + OS::get_singleton()->set_window_title(_MKSTR(VERSION_NAME) + String(" - ") + TTR("Project Manager") + " - " + cp + " 2008-2017 Juan Linietsky, Ariel Manzur"); HBoxContainer *top_hb = memnew(HBoxContainer); vb->add_child(top_hb); diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index 5236461ad32..315351d0393 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -530,7 +530,7 @@ void SpatialMaterial::_update_shader() { } if (detail_uv == DETAIL_UV_2 && !flags[FLAG_UV2_USE_TRIPLANAR]) { - code += "\tUV2=UV2*uv2_scale+uv2_offset;\n"; + code += "\tUV2=UV2*uv2_scale.xy+uv2_offset.xy;\n"; } if (flags[FLAG_UV1_USE_TRIPLANAR] || flags[FLAG_UV2_USE_TRIPLANAR]) { //generate tangent and binormal in world space