From 394007ebe59fb24d5ebedb2ce48e66922d995edc Mon Sep 17 00:00:00 2001 From: Indah Sylvia Date: Tue, 8 Aug 2017 22:10:18 +0700 Subject: [PATCH] trail divisor is now works properly --- scene/3d/particles.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/3d/particles.cpp b/scene/3d/particles.cpp index bab23d013b6..c0db07e309c 100644 --- a/scene/3d/particles.cpp +++ b/scene/3d/particles.cpp @@ -1264,9 +1264,8 @@ int ParticlesMaterial::get_emission_point_count() const { void ParticlesMaterial::set_trail_divisor(int p_divisor) { - VisualServer::get_singleton()->material_set_param(_get_material(), shader_names->trail_divisor, p_divisor); trail_divisor = p_divisor; - _change_notify(); + VisualServer::get_singleton()->material_set_param(_get_material(), shader_names->trail_divisor, p_divisor); } int ParticlesMaterial::get_trail_divisor() const {