Update leenkx/Sources/iron/object/MeshObject.hx

This commit is contained in:
2025-05-22 22:00:56 +00:00
parent 205d4ccc41
commit ac2507e0ae

View File

@ -21,6 +21,7 @@ class MeshObject extends Object {
public var particleChildren: Array<MeshObject> = null; public var particleChildren: Array<MeshObject> = null;
public var particleOwner: MeshObject = null; // Particle object public var particleOwner: MeshObject = null; // Particle object
public var particleIndex = -1; public var particleIndex = -1;
public var render_emitter = true;
#end #end
public var cameraDistance: Float; public var cameraDistance: Float;
public var screenSize = 0.0; public var screenSize = 0.0;
@ -255,11 +256,11 @@ class MeshObject extends Object {
particleSystems[i].update(particleChildren[i], this); particleSystems[i].update(particleChildren[i], this);
} }
} }
if (particleSystems != null && particleSystems.length > 0 && !raw.render_emitter) return; if (particleSystems != null && particleSystems.length > 0 && !render_emitter) return;
if (particleSystems == null && cullMaterial(context)) return;
#else
if (cullMaterial(context)) return;
#end #end
if (cullMaterial(context)) return;
// Get lod // Get lod
var mats = materials; var mats = materials;
var lod = this; var lod = this;