ecere/gfx/3D/Object: computeLightVector flag to avoid always recomputing uselessly
[sdk] / ecere / src / gfx / 3D / Object.ec
index 80c7446..186881f 100644 (file)
@@ -21,6 +21,7 @@ public class ObjectFlags
 {
 public:
    bool root:1, viewSpace:1, ownMesh:1, translucent:1, flipWindings:1, keysLoaded:1, transform:1, mesh:1, light:1, camera:1, localMatrixSet:1;
+   bool computeLightVectors:1;
    int hierarchy:16:16;
 };
 
@@ -797,6 +798,7 @@ public:
             {
                nVertices += child.mesh.nVertices;
                flags |= child.mesh.flags;
+               this.flags.computeLightVectors |= child.flags.computeLightVectors;
             }
          }