Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/MeshImporter.cpp
| Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | : unitconverter(unitconv), | ||||
| scene(sce), | scene(sce), | ||||
| view_layer(view_layer), | view_layer(view_layer), | ||||
| armature_importer(arm) | armature_importer(arm) | ||||
| { | { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| bool MeshImporter::set_poly_indices( | bool MeshImporter::set_poly_indices( | ||||
| MPoly *mpoly, MLoop *mloop, int loop_index, unsigned int *indices, int loop_count) | MPoly *mpoly, MLoop *mloop, int loop_index, const unsigned int *indices, int loop_count) | ||||
| { | { | ||||
| mpoly->loopstart = loop_index; | mpoly->loopstart = loop_index; | ||||
| mpoly->totloop = loop_count; | mpoly->totloop = loop_count; | ||||
| bool broken_loop = false; | bool broken_loop = false; | ||||
| for (int index = 0; index < loop_count; index++) { | for (int index = 0; index < loop_count; index++) { | ||||
| /* Test if loop defines a hole */ | /* Test if loop defines a hole */ | ||||
| if (!broken_loop) { | if (!broken_loop) { | ||||
| ▲ Show 20 Lines • Show All 990 Lines • Show Last 20 Lines | |||||