Add compatibility class for FixedSpatialMaterial

Fixes loading existing 3.0-alpha projects broken by 74808ac4d9.
This commit is contained in:
Rémi Verschelde 2017-04-07 18:59:10 +02:00
parent 74808ac4d9
commit d8f011828e

View File

@ -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();