From 1f1be5fe9b11093d3aeb955d4fbd28325f4c5e56 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Tue, 30 May 2023 10:20:11 +0200 Subject: [PATCH] Don't disable `Material` and `PlaceholderMaterial` when `disable_3d=yes` --- scene/register_scene_types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index e2046189545..a4fe24dfd95 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -696,6 +696,8 @@ void register_scene_types() { GDREGISTER_CLASS(VisualShaderNodeParticleAccelerator); GDREGISTER_CLASS(VisualShaderNodeParticleEmit); + GDREGISTER_VIRTUAL_CLASS(Material); + GDREGISTER_CLASS(PlaceholderMaterial); GDREGISTER_CLASS(ShaderMaterial); GDREGISTER_ABSTRACT_CLASS(CanvasItem); GDREGISTER_CLASS(CanvasTexture); @@ -804,11 +806,9 @@ void register_scene_types() { GDREGISTER_CLASS(TubeTrailMesh); GDREGISTER_CLASS(RibbonTrailMesh); GDREGISTER_CLASS(PointMesh); - GDREGISTER_VIRTUAL_CLASS(Material); GDREGISTER_ABSTRACT_CLASS(BaseMaterial3D); GDREGISTER_CLASS(StandardMaterial3D); GDREGISTER_CLASS(ORMMaterial3D); - GDREGISTER_CLASS(PlaceholderMaterial); GDREGISTER_CLASS(ProceduralSkyMaterial); GDREGISTER_CLASS(PanoramaSkyMaterial); GDREGISTER_CLASS(PhysicalSkyMaterial);