mirror of
https://github.com/godotengine/godot
synced 2024-09-16 01:20:26 +00:00
Make ParticlesMaterial included with disable_3d=yes option
This commit is contained in:
parent
f123694b4e
commit
0e7178a740
|
@ -564,6 +564,9 @@ void register_scene_types() {
|
|||
/* REGISTER RESOURCES */
|
||||
|
||||
ClassDB::register_virtual_class<Shader>();
|
||||
ClassDB::register_class<ParticlesMaterial>();
|
||||
SceneTree::add_idle_callback(ParticlesMaterial::flush_changes);
|
||||
ParticlesMaterial::init_shaders();
|
||||
|
||||
#ifndef _3D_DISABLED
|
||||
ClassDB::register_virtual_class<Mesh>();
|
||||
|
@ -581,10 +584,6 @@ void register_scene_types() {
|
|||
SceneTree::add_idle_callback(SpatialMaterial::flush_changes);
|
||||
SpatialMaterial::init_shaders();
|
||||
|
||||
ClassDB::register_class<ParticlesMaterial>();
|
||||
SceneTree::add_idle_callback(ParticlesMaterial::flush_changes);
|
||||
ParticlesMaterial::init_shaders();
|
||||
|
||||
ClassDB::register_class<MultiMesh>();
|
||||
ClassDB::register_class<MeshLibrary>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue