Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/scene/alembic_read.cpp
| Context not available. | |||||
| add_positions(data.positions.getValue(iss), time, cached_data); | add_positions(data.positions.getValue(iss), time, cached_data); | ||||
| if (data.topology_variance != kHomogenousTopology || cached_data.shader.size() == 0) { | if (data.topology_variance != kHomogeneousTopology || cached_data.shader.size() == 0) { | ||||
| add_subd_polygons(cached_data, data, time); | add_subd_polygons(cached_data, data, time); | ||||
| add_subd_edge_creases(cached_data, data, time); | add_subd_edge_creases(cached_data, data, time); | ||||
| add_subd_vertex_creases(cached_data, data, time); | add_subd_vertex_creases(cached_data, data, time); | ||||
| Context not available. | |||||
| array<int> curve_first_key; | array<int> curve_first_key; | ||||
| array<int> curve_shader; | array<int> curve_shader; | ||||
| const bool is_homogenous = data.topology_variance == kHomogenousTopology; | const bool is_homogeneous = data.topology_variance == kHomogeneousTopology; | ||||
| curve_keys.reserve(position->size()); | curve_keys.reserve(position->size()); | ||||
| curve_radius.reserve(position->size()); | curve_radius.reserve(position->size()); | ||||
| Context not available. | |||||
| curve_radius.push_back_slow(radius * data.radius_scale); | curve_radius.push_back_slow(radius * data.radius_scale); | ||||
| } | } | ||||
| if (!is_homogenous || cached_data.curve_first_key.size() == 0) { | if (!is_homogeneous || cached_data.curve_first_key.size() == 0) { | ||||
| curve_first_key.push_back_reserved(offset); | curve_first_key.push_back_reserved(offset); | ||||
| curve_shader.push_back_reserved(0); | curve_shader.push_back_reserved(0); | ||||
| } | } | ||||
| Context not available. | |||||
| cached_data.curve_keys.add_data(curve_keys, time); | cached_data.curve_keys.add_data(curve_keys, time); | ||||
| cached_data.curve_radius.add_data(curve_radius, time); | cached_data.curve_radius.add_data(curve_radius, time); | ||||
| if (!is_homogenous || cached_data.curve_first_key.size() == 0) { | if (!is_homogeneous || cached_data.curve_first_key.size() == 0) { | ||||
| cached_data.curve_first_key.add_data(curve_first_key, time); | cached_data.curve_first_key.add_data(curve_first_key, time); | ||||
| cached_data.curve_shader.add_data(curve_shader, time); | cached_data.curve_shader.add_data(curve_shader, time); | ||||
| } | } | ||||
| Context not available. | |||||