diff options
author | Florian Jung <flo@windfisch.org> | 2018-11-25 16:14:00 +0100 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2018-11-25 18:27:02 +0100 |
commit | 0c4ffae40c19d6ebc57ea811e608e70b94073b41 (patch) | |
tree | d09ee9212fd027d59190ad3ac15670ac2ded1303 | |
parent | 95d604b9cdde554a4e3ede796791827eb33e3196 (diff) |
Update ARVR{Anchor,Controller}'s configuration warning
Updates their config warning upon change of `controller_id`
or `anchor_id`, respectively.
fixes godotengine/godot#23881
-rw-r--r-- | scene/3d/arvr_nodes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/arvr_nodes.cpp b/scene/3d/arvr_nodes.cpp index 2dc500f7ab..7ea62678da 100644 --- a/scene/3d/arvr_nodes.cpp +++ b/scene/3d/arvr_nodes.cpp @@ -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. // Note that setting this to 0 means this node is not bound to a controller yet. controller_id = p_controller_id; + update_configuration_warning(); }; 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. // Note that setting this to 0 means this node is not bound to an anchor yet. anchor_id = p_anchor_id; + update_configuration_warning(); }; int ARVRAnchor::get_anchor_id(void) const { |