浏览代码

Fix regression #21262 in Path Gizmo

closes #21262
JFonS 7 年之前
父节点
当前提交
07d9b7af7a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      editor/plugins/path_editor_plugin.cpp
  2. 1 1
      editor/plugins/path_editor_plugin.h

+ 1 - 1
editor/plugins/path_editor_plugin.cpp

@@ -57,7 +57,7 @@ String PathSpatialGizmo::get_handle_name(int p_idx) const {
 
 	return n;
 }
-Variant PathSpatialGizmo::get_handle_value(int p_idx) const {
+Variant PathSpatialGizmo::get_handle_value(int p_idx) {
 
 	Ref<Curve3D> c = path->get_curve();
 	if (c.is_null())

+ 1 - 1
editor/plugins/path_editor_plugin.h

@@ -45,7 +45,7 @@ class PathSpatialGizmo : public EditorSpatialGizmo {
 
 public:
 	virtual String get_handle_name(int p_idx) const;
-	virtual Variant get_handle_value(int p_idx) const;
+	virtual Variant get_handle_value(int p_idx);
 	virtual void set_handle(int p_idx, Camera *p_camera, const Point2 &p_point);
 	virtual void commit_handle(int p_idx, const Variant &p_restore, bool p_cancel = false);