Merge branch 'master' of github.com:jMonkeyEngine/jmonkeyengine
This commit is contained in:
commit
ce761cd20b
@ -868,6 +868,13 @@ public class ParticleEmitter extends Geometry {
|
|||||||
* which are currently inactive will be spawned immediately.
|
* which are currently inactive will be spawned immediately.
|
||||||
*/
|
*/
|
||||||
public void emitAllParticles() {
|
public void emitAllParticles() {
|
||||||
|
emitParticles(particles.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantly emits available particles, up to num.
|
||||||
|
*/
|
||||||
|
public void emitParticles(int num) {
|
||||||
// Force world transform to update
|
// Force world transform to update
|
||||||
this.getWorldTransform();
|
this.getWorldTransform();
|
||||||
|
|
||||||
@ -888,7 +895,9 @@ public class ParticleEmitter extends Geometry {
|
|||||||
max.set(Vector3f.NEGATIVE_INFINITY);
|
max.set(Vector3f.NEGATIVE_INFINITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (emitParticle(min, max) != null);
|
for(int i=0;i<num;i++) {
|
||||||
|
if( emitParticle(min, max) == null ) break;
|
||||||
|
}
|
||||||
|
|
||||||
bbox.setMinMax(min, max);
|
bbox.setMinMax(min, max);
|
||||||
this.setBoundRefresh();
|
this.setBoundRefresh();
|
||||||
|
@ -346,7 +346,7 @@ class TextureUtil {
|
|||||||
// or upload slice
|
// or upload slice
|
||||||
if (index == -1){
|
if (index == -1){
|
||||||
GL12.glTexImage3D(target,
|
GL12.glTexImage3D(target,
|
||||||
0,
|
i,
|
||||||
glFmt.internalFormat,
|
glFmt.internalFormat,
|
||||||
mipWidth,
|
mipWidth,
|
||||||
mipHeight,
|
mipHeight,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user