File tree 5 files changed +7
-7
lines changed
src/mmscenegraph/rust/src
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl AnimDenseAttr {
52
52
self . values [ f] = value;
53
53
}
54
54
55
- pub fn get_values ( & self ) -> & Vec < Real > {
55
+ pub fn get_values ( & self ) -> & [ Real ] {
56
56
& self . values
57
57
}
58
58
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ pub fn compute_world_matrices_with_attrs(
204
204
tfm_attr_list : & Vec < AttrTransformIds > ,
205
205
rotate_order_list : & Vec < RotateOrder > ,
206
206
transform_parents : & Vec < Option < usize > > ,
207
- frame_list : & Vec < FrameValue > ,
207
+ frame_list : & [ FrameValue ] ,
208
208
out_matrix_list : & mut Vec < Matrix44 > ,
209
209
) {
210
210
// println!("Compute World Matrices!");
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ use crate::scene::graphiter::UpstreamDepthFirstSearch;
44
44
/// returned indices.
45
45
fn upstream_node_indices_set (
46
46
sg : & SceneGraph ,
47
- node_ids : & Vec < NodeId > ,
47
+ node_ids : & [ NodeId ] ,
48
48
) -> HashSet < PGNodeIndex > {
49
49
let graph = & sg. get_graph ( ) ;
50
50
let mut node_indices_set = HashSet :: new ( ) ;
@@ -108,7 +108,7 @@ fn flatten_filter_and_sort_graph_nodes(
108
108
/// Get the parent index for each node index given.
109
109
fn get_parent_index_list (
110
110
sg : & SceneGraph ,
111
- node_indices : & Vec < PGNodeIndex > ,
111
+ node_indices : & [ PGNodeIndex ] ,
112
112
) -> Vec < Option < usize > > {
113
113
let mut list = Vec :: < Option < usize > > :: new ( ) ;
114
114
let dir = PGDirection :: Incoming ;
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl FlatScene {
118
118
pub fn evaluate (
119
119
& mut self ,
120
120
attrdb : & AttrDataBlock ,
121
- frame_list : & Vec < FrameValue > ,
121
+ frame_list : & [ FrameValue ] ,
122
122
) {
123
123
// println!("EVALUATE! =================================================");
124
124
let num_frames = frame_list. len ( ) ;
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl SceneGraph {
336
336
337
337
pub fn get_transformable_nodes (
338
338
& self ,
339
- node_ids : & Vec < NodeId > ,
339
+ node_ids : & [ NodeId ] ,
340
340
) -> Option < Vec < Box < dyn NodeCanTransform3D > > > {
341
341
let mut nodes = Vec :: < Box < dyn NodeCanTransform3D > > :: new ( ) ;
342
342
for node_id in node_ids {
@@ -400,7 +400,7 @@ impl SceneGraph {
400
400
/// Set all the child_node_ids to have the same parent_node_id
401
401
pub fn set_nodes_parent (
402
402
& mut self ,
403
- child_node_ids : Vec < NodeId > ,
403
+ child_node_ids : & [ NodeId ] ,
404
404
parent_node_id : NodeId ,
405
405
) -> bool {
406
406
let node_indices: Vec < PGNodeIndex > = child_node_ids
You can’t perform that action at this time.
0 commit comments