Skip to content

Commit

Permalink
Make ParticlesMaterial included with disable_3d=yes option
Browse files Browse the repository at this point in the history
  • Loading branch information
volzhs committed Aug 24, 2018
1 parent f123694 commit 0e7178a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scene/register_scene_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand All @@ -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>();

Expand Down

0 comments on commit 0e7178a

Please sign in to comment.