]> git.tdb.fi Git - libs/gl.git/blobdiff - source/object.h
Do not attempt to unwatch a mesh that was already removed
[libs/gl.git] / source / object.h
index a11bfd9b654d0ffa98887fefcb2c886a360e1d98..3d0415c66daa64b3c8ebb3436b0da037897912e9 100644 (file)
@@ -72,6 +72,7 @@ private:
 
        std::vector<LevelOfDetail> lods;
        Geometry::BoundingSphere<float, 3> bounding_sphere;
+       bool lod0_watched;
 
 public:
        Object();
@@ -122,6 +123,7 @@ private:
        const RenderPass *get_pass(const Tag &, unsigned) const;
 
        virtual void resource_loaded(Resource &);
+       virtual void resource_removed(Resource &);
 };
 
 } // namespace GL