Cleanup: format
This commit is contained in:
@@ -35,7 +35,8 @@ void emit_line(uint line_offset, uint quad_index, uint start_loop_index, uint co
|
||||
uint coarse_quad_index = coarse_polygon_index_from_subdiv_quad_index(quad_index,
|
||||
coarse_poly_count);
|
||||
|
||||
if (is_face_hidden(coarse_quad_index) || (input_origindex[vertex_index] == ORIGINDEX_NONE && optimal_display)) {
|
||||
if (is_face_hidden(coarse_quad_index) ||
|
||||
(input_origindex[vertex_index] == ORIGINDEX_NONE && optimal_display)) {
|
||||
output_lines[line_offset + 0] = 0xffffffff;
|
||||
output_lines[line_offset + 1] = 0xffffffff;
|
||||
}
|
||||
@@ -62,13 +63,13 @@ void main()
|
||||
uint loop_index = num_subdiv_loops + index * 2;
|
||||
|
||||
if (lines_loose_flags[index] != 0) {
|
||||
/* Line is hidden. */
|
||||
output_lines[line_offset] = 0xffffffff;
|
||||
output_lines[line_offset + 1] = 0xffffffff;
|
||||
/* Line is hidden. */
|
||||
output_lines[line_offset] = 0xffffffff;
|
||||
output_lines[line_offset + 1] = 0xffffffff;
|
||||
}
|
||||
else {
|
||||
output_lines[line_offset] = loop_index;
|
||||
output_lines[line_offset + 1] = loop_index + 1;
|
||||
output_lines[line_offset] = loop_index;
|
||||
output_lines[line_offset + 1] = loop_index + 1;
|
||||
}
|
||||
|
||||
#else
|
||||
|
@@ -46,19 +46,19 @@ void main()
|
||||
#endif
|
||||
|
||||
if (is_face_hidden(coarse_quad_index)) {
|
||||
output_tris[triangle_loop_index + 0] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 1] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 2] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 3] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 4] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 5] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 0] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 1] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 2] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 3] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 4] = 0xffffffff;
|
||||
output_tris[triangle_loop_index + 5] = 0xffffffff;
|
||||
}
|
||||
else {
|
||||
output_tris[triangle_loop_index + 0] = loop_index + 0;
|
||||
output_tris[triangle_loop_index + 1] = loop_index + 1;
|
||||
output_tris[triangle_loop_index + 2] = loop_index + 2;
|
||||
output_tris[triangle_loop_index + 3] = loop_index + 0;
|
||||
output_tris[triangle_loop_index + 4] = loop_index + 2;
|
||||
output_tris[triangle_loop_index + 5] = loop_index + 3;
|
||||
}
|
||||
output_tris[triangle_loop_index + 0] = loop_index + 0;
|
||||
output_tris[triangle_loop_index + 1] = loop_index + 1;
|
||||
output_tris[triangle_loop_index + 2] = loop_index + 2;
|
||||
output_tris[triangle_loop_index + 3] = loop_index + 0;
|
||||
output_tris[triangle_loop_index + 4] = loop_index + 2;
|
||||
output_tris[triangle_loop_index + 5] = loop_index + 3;
|
||||
}
|
||||
}
|
||||
|
@@ -424,10 +424,10 @@ void main()
|
||||
output_nors[coarse_quad_index] = fnor;
|
||||
|
||||
if (is_face_hidden(coarse_quad_index)) {
|
||||
output_indices[coarse_quad_index] = 0xffffffff;
|
||||
output_indices[coarse_quad_index] = 0xffffffff;
|
||||
}
|
||||
else {
|
||||
output_indices[coarse_quad_index] = coarse_quad_index;
|
||||
output_indices[coarse_quad_index] = coarse_quad_index;
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
@@ -413,7 +413,8 @@ int RNA_property_collection_lookup_string(PointerRNA *ptr,
|
||||
PropertyRNA *prop,
|
||||
const char *key,
|
||||
PointerRNA *r_ptr);
|
||||
int RNA_property_collection_lookup_string_index(PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr, int *r_index);
|
||||
int RNA_property_collection_lookup_string_index(
|
||||
PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr, int *r_index);
|
||||
/**
|
||||
* Zero return is an assignment error.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user