We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22822f7 + 1b376b3 commit 66d19abCopy full SHA for 66d19ab
scene/2d/path_2d.cpp
@@ -167,17 +167,16 @@ void Path2D::_curve_changed() {
167
return;
168
}
169
170
- if (!Engine::get_singleton()->is_editor_hint() && !get_tree()->is_debugging_paths_hint()) {
171
- return;
172
- }
173
-
174
- queue_redraw();
175
for (int i = 0; i < get_child_count(); i++) {
176
PathFollow2D *follow = Object::cast_to<PathFollow2D>(get_child(i));
177
if (follow) {
178
follow->path_changed();
179
180
+
+ if (Engine::get_singleton()->is_editor_hint() || get_tree()->is_debugging_paths_hint()) {
+ queue_redraw();
+ }
181
182
183
void Path2D::set_curve(const Ref<Curve2D> &p_curve) {
0 commit comments