Add compatibility class for FixedSpatialMaterial
Fixes loading existing 3.0-alpha projects broken by 74808ac4d9
.
This commit is contained in:
parent
74808ac4d9
commit
d8f011828e
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user