summaryrefslogtreecommitdiff
path: root/scene/2d/polygon_2d.h
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2020-02-13 23:34:59 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2021-03-02 09:25:09 -0300
commit70304f8633c8cf8faa530dadf648ecfcabf80655 (patch)
tree1e306ddea59b2b81d9db3637b7fb3efa999e5d6f /scene/2d/polygon_2d.h
parent8fbe644b6e6548dc2c9f9d675bc17f13b74e747b (diff)
Hide extra options from various nodes if they're not enabled
Diffstat (limited to 'scene/2d/polygon_2d.h')
-rw-r--r--scene/2d/polygon_2d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/polygon_2d.h b/scene/2d/polygon_2d.h
index ab01a4ffd0..43a66aad13 100644
--- a/scene/2d/polygon_2d.h
+++ b/scene/2d/polygon_2d.h
@@ -72,6 +72,10 @@ class Polygon2D : public Node2D {
void _skeleton_bone_setup_changed();
+#ifdef TOOLS_ENABLED
+ void _validate_property(PropertyInfo &property) const override;
+#endif
+
protected:
void _notification(int p_what);
static void _bind_methods();