Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Enable Curve2D in `disable_2d` builds

Aaron Frankee977fc249b39
diff --git a/editor/settings/editor_build_profile.cpp b/editor/settings/editor_build_profile.cpp
index 991c1b3a924..ff88e31eb76 100644
--- a/editor/settings/editor_build_profile.cpp
+++ b/editor/settings/editor_build_profile.cpp
@@ -270,7 +270,6 @@ const HashMap<EditorBuildProfile::BuildOption, LocalVector<EditorBuildProfile::B
// Should also contain classes not derived from either `Resource` or `Node`.
const HashMap<EditorBuildProfile::BuildOption, LocalVector<String>> EditorBuildProfile::build_option_classes = {
{ BUILD_OPTION_2D, {
- "Curve2D",
"Node2D",
"OccluderPolygon2D",
"SkeletonModificationStack2D",
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp
index 3014792dde5..a53910c36ec 100644
--- a/scene/register_scene_types.cpp
+++ b/scene/register_scene_types.cpp
@@ -956,6 +956,7 @@ void register_scene_types() {
GDREGISTER_VIRTUAL_CLASS(CameraAttributes);
GDREGISTER_CLASS(CameraAttributesPhysical);
GDREGISTER_CLASS(CameraAttributesPractical);
+ GDREGISTER_CLASS(Curve2D);
GDREGISTER_CLASS(World2D);
GDREGISTER_CLASS(Sky);
GDREGISTER_CLASS(CompressedTexture2D);
@@ -1052,7 +1053,6 @@ void register_scene_types() {
#ifndef _2D_DISABLED
GDREGISTER_CLASS(AudioStreamPlayer2D);
- GDREGISTER_CLASS(Curve2D);
GDREGISTER_CLASS(Path2D);
GDREGISTER_CLASS(PathFollow2D);