浏览代码

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) {
 	public function new( ?texture, ?parent) {
 		super(null, null, parent);
 		super(null, null, parent);
+		material.props = material.getDefaultProps("particles3D");
 		sortMode = Back;
 		sortMode = Back;
 		pshader = new h3d.shader.ParticleShader();
 		pshader = new h3d.shader.ParticleShader();
 		pshader.isAbsolute = true;
 		pshader.isAbsolute = true;