Skip to content

Commit

Permalink
Merge pull request #140 from Malcolmnixon/enabled-movement-fix
Browse files Browse the repository at this point in the history
Fixed enable/disable rules for movement providers
  • Loading branch information
BastiaanOlij authored Jun 5, 2022
2 parents 36b7962 + 3b06b90 commit c165568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/godot-xr-tools/assets/PlayerBody.gd
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func _physics_process(delta):
ground_control_velocity = Vector2.ZERO
var exclusive := false
for p in _movement_providers:
if p.enabled or p.is_active or !exclusive:
if p.is_active or (p.enabled and not exclusive):
if p.physics_movement(delta, self, exclusive):
exclusive = true

Expand Down

0 comments on commit c165568

Please sign in to comment.