Update ARVR{Anchor,Controller}'s configuration warning
Updates their config warning upon change of `controller_id` or `anchor_id`, respectively. fixes godotengine/godot#23881
This commit is contained in:
parent
95d604b9cd
commit
0c4ffae40c
@ -266,6 +266,7 @@ void ARVRController::set_controller_id(int p_controller_id) {
|
|||||||
// We don't check any bounds here, this controller may not yet be active and just be a place holder until it is.
|
// We don't check any bounds here, this controller may not yet be active and just be a place holder until it is.
|
||||||
// Note that setting this to 0 means this node is not bound to a controller yet.
|
// Note that setting this to 0 means this node is not bound to a controller yet.
|
||||||
controller_id = p_controller_id;
|
controller_id = p_controller_id;
|
||||||
|
update_configuration_warning();
|
||||||
};
|
};
|
||||||
|
|
||||||
int ARVRController::get_controller_id(void) const {
|
int ARVRController::get_controller_id(void) const {
|
||||||
@ -446,6 +447,7 @@ void ARVRAnchor::set_anchor_id(int p_anchor_id) {
|
|||||||
// We don't check any bounds here, this anchor may not yet be active and just be a place holder until it is.
|
// We don't check any bounds here, this anchor may not yet be active and just be a place holder until it is.
|
||||||
// Note that setting this to 0 means this node is not bound to an anchor yet.
|
// Note that setting this to 0 means this node is not bound to an anchor yet.
|
||||||
anchor_id = p_anchor_id;
|
anchor_id = p_anchor_id;
|
||||||
|
update_configuration_warning();
|
||||||
};
|
};
|
||||||
|
|
||||||
int ARVRAnchor::get_anchor_id(void) const {
|
int ARVRAnchor::get_anchor_id(void) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user