Преглед на файлове

fix default parts material

ncannasse преди 7 години
родител
ревизия
ff5c3ed171
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      h3d/parts/Particles.hx

+ 1 - 0
h3d/parts/Particles.hx

@@ -35,6 +35,7 @@ class Particles extends h3d.scene.Mesh {
 
 	public function new( ?texture, ?parent) {
 		super(null, null, parent);
+		material.props = material.getDefaultProps("particles3D");
 		sortMode = Back;
 		pshader = new h3d.shader.ParticleShader();
 		pshader.isAbsolute = true;