diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-21 00:26:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 00:26:44 +0100 |
commit | bccbd4be90baa8ad104f05310e7bbc3dbde33060 (patch) | |
tree | c67c8a6788fdf97b93be569f384eb90c8da27bb6 /servers/xr/xr_positional_tracker.cpp | |
parent | f7ddcbf446e88b155f1172d94d30a7974e67e8a8 (diff) | |
parent | e40ab065996b08382bc74f314b8a49c970cbc056 (diff) |
Merge pull request #44261 from madmiraal/rename-trackerhand-enums
Rename TrackerHand enums
Diffstat (limited to 'servers/xr/xr_positional_tracker.cpp')
-rw-r--r-- | servers/xr/xr_positional_tracker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/servers/xr/xr_positional_tracker.cpp b/servers/xr/xr_positional_tracker.cpp index a59565fe0d..4455ca3db1 100644 --- a/servers/xr/xr_positional_tracker.cpp +++ b/servers/xr/xr_positional_tracker.cpp @@ -34,8 +34,8 @@ void XRPositionalTracker::_bind_methods() { BIND_ENUM_CONSTANT(TRACKER_HAND_UNKNOWN); - BIND_ENUM_CONSTANT(TRACKER_LEFT_HAND); - BIND_ENUM_CONSTANT(TRACKER_RIGHT_HAND); + BIND_ENUM_CONSTANT(TRACKER_HAND_LEFT); + BIND_ENUM_CONSTANT(TRACKER_HAND_RIGHT); // this class is read only from GDScript, so we only have access to getters.. ClassDB::bind_method(D_METHOD("get_tracker_type"), &XRPositionalTracker::get_tracker_type); @@ -182,11 +182,11 @@ void XRPositionalTracker::set_hand(const XRPositionalTracker::TrackerHand p_hand ERR_FAIL_COND((type != XRServer::TRACKER_CONTROLLER) && (p_hand != XRPositionalTracker::TRACKER_HAND_UNKNOWN)); hand = p_hand; - if (hand == XRPositionalTracker::TRACKER_LEFT_HAND) { + if (hand == XRPositionalTracker::TRACKER_HAND_LEFT) { if (!xr_server->is_tracker_id_in_use_for_type(type, 1)) { tracker_id = 1; }; - } else if (hand == XRPositionalTracker::TRACKER_RIGHT_HAND) { + } else if (hand == XRPositionalTracker::TRACKER_HAND_RIGHT) { if (!xr_server->is_tracker_id_in_use_for_type(type, 2)) { tracker_id = 2; }; |