aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/path.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-04-27 21:52:15 -0300
committerJuan Linietsky2018-04-27 21:55:10 -0300
commit8d199a9b2c71de3c5218a636249171b60a832092 (patch)
treef8efd94ee92acec6b92491a2f0d4683eb1b3f0f7 /scene/3d/path.cpp
parentb22f048700105dec26154cc90f10b0ef34b3f5ed (diff)
downloadgodot-8d199a9b2c71de3c5218a636249171b60a832092.tar.gz
godot-8d199a9b2c71de3c5218a636249171b60a832092.tar.zst
godot-8d199a9b2c71de3c5218a636249171b60a832092.zip
Diffstat (limited to 'scene/3d/path.cpp')
-rw-r--r--scene/3d/path.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/path.cpp b/scene/3d/path.cpp
index 7ac7f74bb..57d79c960 100644
--- a/scene/3d/path.cpp
+++ b/scene/3d/path.cpp
@@ -40,6 +40,9 @@ void Path::_curve_changed() {
if (is_inside_tree() && Engine::get_singleton()->is_editor_hint())
update_gizmo();
+ if (is_inside_tree()) {
+ emit_signal("curve_changed");
+ }
}
void Path::set_curve(const Ref<Curve3D> &p_curve) {
@@ -68,6 +71,8 @@ void Path::_bind_methods() {
ClassDB::bind_method(D_METHOD("_curve_changed"), &Path::_curve_changed);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve3D"), "set_curve", "get_curve");
+
+ ADD_SIGNAL(MethodInfo("curve_changed"));
}
Path::Path() {