summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-04-07 18:59:10 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-04-07 18:59:10 +0200
commitd8f011828e9282f6f931c5fe838399c062e7fa2d (patch)
tree0e82fa691b3a788eb0327ab8acf0c8407e946347
parent74808ac4d9176180dc7ecace99723edab8a73e0e (diff)
Add compatibility class for FixedSpatialMaterial
Fixes loading existing 3.0-alpha projects broken by 74808ac4d9176180dc7ecace99723edab8a73e0e.
-rw-r--r--scene/register_scene_types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp
index ddbb1a1afd..de00033a3b 100644
--- a/scene/register_scene_types.cpp
+++ b/scene/register_scene_types.cpp
@@ -526,6 +526,7 @@ void register_scene_types() {
ClassDB::register_class<QuadMesh>();
ClassDB::register_virtual_class<Material>();
ClassDB::register_class<SpatialMaterial>();
+ ClassDB::add_compatibility_class("FixedSpatialMaterial", "SpatialMaterial");
SceneTree::add_idle_callback(SpatialMaterial::flush_changes);
SpatialMaterial::init_shaders();