From b3bc5aafc5dbe6559534bb1e19093e719afbf52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 12 Jun 2020 13:16:14 +0200 Subject: Object: Add usage hint to instantiate Object properties in editor Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve instance as default value, but instead it gets a (unique) default Curve instance when created through the editor (CreateDialog). ClassDB gets a sanity check to ensure that we don't do the same mistake for other properties in the future, but instead use the dedicated property usage hint. Fixes #36372. Fixes #36650. Supersedes #36644 and #36656. Co-authored-by: Thakee Nathees Co-authored-by: simpuid --- scene/2d/path_2d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/2d/path_2d.h') diff --git a/scene/2d/path_2d.h b/scene/2d/path_2d.h index 288ef698e7..38fcca0323 100644 --- a/scene/2d/path_2d.h +++ b/scene/2d/path_2d.h @@ -55,7 +55,7 @@ public: void set_curve(const Ref &p_curve); Ref get_curve() const; - Path2D(); + Path2D() {} }; class PathFollow2D : public Node2D { -- cgit v1.2.3