summaryrefslogtreecommitdiffstats
path: root/scene/resources/canvas_item_material.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/canvas_item_material.cpp')
-rw-r--r--scene/resources/canvas_item_material.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/canvas_item_material.cpp b/scene/resources/canvas_item_material.cpp
index 76e99aca92..6f43106ea9 100644
--- a/scene/resources/canvas_item_material.cpp
+++ b/scene/resources/canvas_item_material.cpp
@@ -274,6 +274,8 @@ void CanvasItemMaterial::_bind_methods() {
CanvasItemMaterial::CanvasItemMaterial() :
element(this) {
+ _set_material(RS::get_singleton()->material_create());
+
set_particles_anim_h_frames(1);
set_particles_anim_v_frames(1);
set_particles_anim_loop(false);