Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_particles.cpp
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | if (first_use) { | ||||
| psys->tag_update(scene); | psys->tag_update(scene); | ||||
| } | } | ||||
| /* add particle */ | /* add particle */ | ||||
| BL::Particle b_pa = b_psys.particles[persistent_id[0]]; | BL::Particle b_pa = b_psys.particles[persistent_id[0]]; | ||||
| Particle pa; | Particle pa; | ||||
| pa.index = persistent_id[0]; | pa.index = persistent_id[0]; | ||||
| pa.age = b_scene.frame_current() - b_pa.birth_time(); | pa.age = b_scene.frame_current_final() - b_pa.birth_time(); | ||||
| pa.lifetime = b_pa.lifetime(); | pa.lifetime = b_pa.lifetime(); | ||||
| pa.location = get_float3(b_pa.location()); | pa.location = get_float3(b_pa.location()); | ||||
| pa.rotation = get_float4(b_pa.rotation()); | pa.rotation = get_float4(b_pa.rotation()); | ||||
| pa.size = b_pa.size(); | pa.size = b_pa.size(); | ||||
| pa.velocity = get_float3(b_pa.velocity()); | pa.velocity = get_float3(b_pa.velocity()); | ||||
| pa.angular_velocity = get_float3(b_pa.angular_velocity()); | pa.angular_velocity = get_float3(b_pa.angular_velocity()); | ||||
| psys->particles.push_back_slow(pa); | psys->particles.push_back_slow(pa); | ||||
| Show All 12 Lines | |||||