|
@@ -1172,9 +1172,13 @@ void ParticleProcessMaterial::flush_changes() {
|
|
|
}
|
|
|
|
|
|
void ParticleProcessMaterial::_queue_shader_change() {
|
|
|
+ if (!_is_initialized()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
MutexLock lock(material_mutex);
|
|
|
|
|
|
- if (_is_initialized() && !element.in_list()) {
|
|
|
+ if (!element.in_list()) {
|
|
|
dirty_materials.add(&element);
|
|
|
}
|
|
|
}
|