summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-02-23 20:20:54 -0300
committerJuan Linietsky <juan@godotengine.org>2019-02-23 20:20:54 -0300
commitbfa9be85d38ad935bd4b8198767db3fe1ab1dcda (patch)
treedb2eda8b61fc836ea98002bfdd24343511f906fa /scene
parent6cd4006fb3f20ac756517aa0f70720a870f9617a (diff)
Remove copy and use instance material override in gizmos, fixes #23783
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/path.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/3d/path.cpp b/scene/3d/path.cpp
index 9005b6b566..190967d76c 100644
--- a/scene/3d/path.cpp
+++ b/scene/3d/path.cpp
@@ -107,6 +107,9 @@ void PathFollow::_update_transform() {
}
float bl = c->get_baked_length();
+ if (bl == 0.0) {
+ return;
+ }
float bi = c->get_bake_interval();
float o = offset;
float o_next = offset + bi;