[Bf-blender-cvs] [27a7174546d] blender2.8: GWN: Fix style and line of code that does nothing!

Clément Foucault noreply at git.blender.org
Wed Feb 14 19:02:29 CET 2018


Commit: 27a7174546d1f007eb4a1fd084ce5b6d470aae25
Author: Clément Foucault
Date:   Sun Feb 11 05:15:26 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB27a7174546d1f007eb4a1fd084ce5b6d470aae25

GWN: Fix style and line of code that does nothing!

===================================================================

M	intern/gawain/src/gwn_vertex_format.c

===================================================================

diff --git a/intern/gawain/src/gwn_vertex_format.c b/intern/gawain/src/gwn_vertex_format.c
index 36d53f9ee20..ff534673294 100644
--- a/intern/gawain/src/gwn_vertex_format.c
+++ b/intern/gawain/src/gwn_vertex_format.c
@@ -31,9 +31,7 @@ void GWN_vertformat_clear(Gwn_VertFormat* format)
 	format->name_ct = 0;
 
 	for (unsigned i = 0; i < GWN_VERT_ATTR_MAX_LEN; i++)
-		{
 		format->attribs[i].name_ct = 0;
-		}
 #endif
 	}
 
@@ -43,13 +41,8 @@ void GWN_vertformat_copy(Gwn_VertFormat* dest, const Gwn_VertFormat* src)
 	memcpy(dest, src, sizeof(Gwn_VertFormat));
 
 	for (unsigned i = 0; i < dest->attrib_ct; i++)
-		{
-		dest->attribs[i].name_ct = dest->attribs[i].name_ct;
 		for (unsigned j = 0; j < dest->attribs[i].name_ct; j++)
-			{
 			dest->attribs[i].name[j] = (char *)dest + (src->attribs[i].name[j] - ((char *)src));
-			}
-		}
 	}
 
 static GLenum convert_comp_type_to_gl(Gwn_VertCompType type)



More information about the Bf-blender-cvs mailing list