mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-10 20:12:10 +01:00
Small cleanups.
This commit is contained in:
parent
79aac5f505
commit
bc8638d4d0
@ -539,13 +539,6 @@ void register_scene_types() {
|
||||
ClassDB::register_class<SceneTree>();
|
||||
ClassDB::register_virtual_class<SceneTreeTimer>(); //sorry, you can't create it
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
ClassDB::add_compatibility_class("ImageSkyBox", "PanoramaSky");
|
||||
ClassDB::add_compatibility_class("FixedSpatialMaterial", "SpatialMaterial");
|
||||
ClassDB::add_compatibility_class("Mesh", "ArrayMesh");
|
||||
|
||||
#endif
|
||||
|
||||
OS::get_singleton()->yield(); //may take time to init
|
||||
|
||||
for (int i = 0; i < 20; i++) {
|
||||
|
@ -213,7 +213,7 @@ void PrimitiveMesh::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_flip_faces", "flip_faces"), &PrimitiveMesh::set_flip_faces);
|
||||
ClassDB::bind_method(D_METHOD("get_flip_faces"), &PrimitiveMesh::get_flip_faces);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "material", PROPERTY_HINT_RESOURCE_TYPE, "SpatialMaterial,ShaderMaterial"), "set_material", "get_material");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "material", PROPERTY_HINT_RESOURCE_TYPE, "ShaderMaterial"), "set_material", "get_material");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::AABB, "custom_aabb", PROPERTY_HINT_NONE, ""), "set_custom_aabb", "get_custom_aabb");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "flip_faces"), "set_flip_faces", "get_flip_faces");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user