Skip to content

armgit / godot

Public Imported from GitHub
0

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

[Buildsystem] Fix building with 2D and 3D disabled

A Thousand Shipsb0cf4d8a1129
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp
index 4aae975ea3d..5da45cc1791 100644
--- a/scene/register_scene_types.cpp
+++ b/scene/register_scene_types.cpp
@@ -809,7 +809,9 @@ void register_scene_types() {
GDREGISTER_CLASS(BlitMaterial);
// SpriteFrames is needed by both AnimatedSprite2D and AnimatedSprite3D.
+#if !defined(_2D_DISABLED) || !defined(_3D_DISABLED)
GDREGISTER_CLASS(SpriteFrames);
+#endif // !defined(_2D_DISABLED) || !defined(_3D_DISABLED)
/* REGISTER 2D */