refactor(spatial): rename get_*_flex to parse_

This commit is contained in:
Nova
2022-09-26 01:54:48 -04:00
parent 20f022afc2
commit faf13aef24
5 changed files with 12 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
use super::fields::Field;
use super::spatial::{get_spatial_parent_flex, get_transform_pose_flex, Spatial};
use super::spatial::{get_spatial_parent_flex, parse_pose, Spatial};
use super::{Alias, Node};
use crate::core::client::Client;
use crate::core::nodelist::LifeLinkedNodeList;
@@ -287,7 +287,7 @@ pub fn create_pulse_receiver_flex(
true,
);
let parent = get_spatial_parent_flex(&calling_client, flex_vec.idx(1).get_str()?)?;
let transform = get_transform_pose_flex(flex_vec.idx(2), flex_vec.idx(3))?;
let transform = parse_pose(flex_vec.idx(2), flex_vec.idx(3))?;
let field = calling_client
.scenegraph
.get_node(flex_vec.idx(4).as_str())