diff --git a/radiantcore/brush/Brush.cpp b/radiantcore/brush/Brush.cpp index 9e152eab02..5d00f89ea8 100644 --- a/radiantcore/brush/Brush.cpp +++ b/radiantcore/brush/Brush.cpp @@ -1134,7 +1134,7 @@ bool Brush::buildWindings() { } // update texture coordinates - f.EmitTextureCoordinates(); + f.emitTextureCoordinates(); } // greebo: Update the winding, now that it's constructed diff --git a/radiantcore/brush/Face.cpp b/radiantcore/brush/Face.cpp index e96cd87ac3..b7bd4dfb3f 100644 --- a/radiantcore/brush/Face.cpp +++ b/radiantcore/brush/Face.cpp @@ -298,6 +298,7 @@ void Face::revertTransform() planepts_assign(m_move_planeptsTransformed, m_move_planepts); m_texdefTransformed = _texdef; updateWinding(); + emitTextureCoordinates(); } void Face::freezeTransform() { @@ -351,7 +352,7 @@ void Face::testSelect_centroid(SelectionTest& test, SelectionIntersection& best) void Face::shaderChanged() { - EmitTextureCoordinates(); + emitTextureCoordinates(); _owner.onFaceShaderChanged(); // Update the visibility flag, but leave out the contributes() check @@ -390,7 +391,7 @@ void Face::revertTexdef() void Face::texdefChanged() { revertTexdef(); - EmitTextureCoordinates(); + emitTextureCoordinates(); // Fire the signal to update the Texture Tools signal_texdefChanged().emit(); @@ -607,7 +608,7 @@ void Face::setTexDefFromPoints(const Vector3 points[3], const Vector2 uvs[3]) m_texdefTransformed.setTransform(textureMatrix); - EmitTextureCoordinates(); + emitTextureCoordinates(); // Fire the signal to update the Texture Tools signal_texdefChanged().emit(); @@ -654,8 +655,9 @@ void Face::alignTexture(AlignEdge align) texdefChanged(); } -void Face::EmitTextureCoordinates() { - m_texdefTransformed.emitTextureCoordinates(m_winding, plane3().normal(), Matrix4::getIdentity()); +void Face::emitTextureCoordinates() +{ + m_texdefTransformed.emitTextureCoordinates(m_winding, m_planeTransformed.getPlane().normal(), Matrix4::getIdentity()); } void Face::applyDefaultTextureScale() diff --git a/radiantcore/brush/Face.h b/radiantcore/brush/Face.h index 984fcaca28..1cf745a72f 100644 --- a/radiantcore/brush/Face.h +++ b/radiantcore/brush/Face.h @@ -177,7 +177,7 @@ class Face : */ void normaliseTexture(); - void EmitTextureCoordinates(); + void emitTextureCoordinates(); // When constructing faces with a default-constructed TextureProjection the scale is very small // fix that by calling this method.