Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/curves.cpp
| Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | if ((b_mod.type() == b_mod.type_PARTICLE_SYSTEM) && | ||||
| BL::ParticleSystem::particles_iterator b_pa; | BL::ParticleSystem::particles_iterator b_pa; | ||||
| b_psys.particles.begin(b_pa); | b_psys.particles.begin(b_pa); | ||||
| for (; pa_no < totparts + totchild; pa_no++) { | for (; pa_no < totparts + totchild; pa_no++) { | ||||
| /* Add UVs */ | /* Add UVs */ | ||||
| BL::Mesh::uv_layers_iterator l; | BL::Mesh::uv_layers_iterator l; | ||||
| b_mesh->uv_layers.begin(l); | b_mesh->uv_layers.begin(l); | ||||
| float2 uv = zero_float2(); | float2 uv = zero_float2(); | ||||
| if (b_mesh->uv_layers.length()) | if (!b_mesh->uv_layers.empty()) | ||||
| b_psys.uv_on_emitter(psmd, *b_pa, pa_no, uv_num, &uv.x); | b_psys.uv_on_emitter(psmd, *b_pa, pa_no, uv_num, &uv.x); | ||||
| CData->curve_uv.push_back_slow(uv); | CData->curve_uv.push_back_slow(uv); | ||||
| if (pa_no < totparts && b_pa != b_psys.particles.end()) | if (pa_no < totparts && b_pa != b_psys.particles.end()) | ||||
| ++b_pa; | ++b_pa; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | if ((b_mod.type() == b_mod.type_PARTICLE_SYSTEM) && | ||||
| BL::ParticleSystem::particles_iterator b_pa; | BL::ParticleSystem::particles_iterator b_pa; | ||||
| b_psys.particles.begin(b_pa); | b_psys.particles.begin(b_pa); | ||||
| for (; pa_no < totparts + totchild; pa_no++) { | for (; pa_no < totparts + totchild; pa_no++) { | ||||
| /* Add vertex colors */ | /* Add vertex colors */ | ||||
| BL::Mesh::vertex_colors_iterator l; | BL::Mesh::vertex_colors_iterator l; | ||||
| b_mesh->vertex_colors.begin(l); | b_mesh->vertex_colors.begin(l); | ||||
| float4 vcol = make_float4(0.0f, 0.0f, 0.0f, 1.0f); | float4 vcol = make_float4(0.0f, 0.0f, 0.0f, 1.0f); | ||||
| if (b_mesh->vertex_colors.length()) | if (!b_mesh->vertex_colors.empty()) | ||||
| b_psys.mcol_on_emitter(psmd, *b_pa, pa_no, vcol_num, &vcol.x); | b_psys.mcol_on_emitter(psmd, *b_pa, pa_no, vcol_num, &vcol.x); | ||||
| CData->curve_vcol.push_back_slow(vcol); | CData->curve_vcol.push_back_slow(vcol); | ||||
| if (pa_no < totparts && b_pa != b_psys.particles.end()) | if (pa_no < totparts && b_pa != b_psys.particles.end()) | ||||
| ++b_pa; | ++b_pa; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 622 Lines • Show Last 20 Lines | |||||