Skip to content

Commit

Permalink
Fix error when no rope is assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
mphe committed Jul 22, 2024
1 parent 8e826d9 commit ec4adb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/addons/ropesim/RopeRendererLine2D.gd
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func refresh() -> void:
func set_rope_path(value: NodePath) -> void:
target_rope_path = value
if is_inside_tree():
_helper.target_rope = get_node(target_rope_path) as Rope
_helper.set_target_rope_path(target_rope_path, self)


func _force_update(_value: bool) -> void:
Expand Down

0 comments on commit ec4adb5

Please sign in to comment.