From 193c3dd7304f4443e947428e6511300b6dd9d4bc Mon Sep 17 00:00:00 2001 From: Garux Date: Sun, 5 Jan 2025 08:16:59 +0500 Subject: [PATCH] fix texturing clipboard shader name on light entity data copy --- radiant/surfacedialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radiant/surfacedialog.cpp b/radiant/surfacedialog.cpp index ff7a3cfa..c2108b59 100644 --- a/radiant/surfacedialog.cpp +++ b/radiant/surfacedialog.cpp @@ -1517,6 +1517,8 @@ void Light_getTexture( Entity& entity, CopiedString& shader, FaceTexture& clipbo string_parse_vector3( entity.getKeyValue( "_color" ), clipboard.m_colour ); if( !string_parse_float( entity.getKeyValue( "_light" ), clipboard.m_light ) ) string_parse_float( entity.getKeyValue( "light" ), clipboard.m_light ); + + shader = TextureBrowser_GetSelectedShader(); // preserve shader } typedef Function3 LightGetTexture;