]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/selectionwrap.h
Allow objects to override the shape specified in their type
[r2c2.git] / source / designer / selectionwrap.h
index 743280985675ca3c1699780a55824e01b9f47532..ee23d800d74eb19c24d4f6ac2079229405144f65 100644 (file)
@@ -15,11 +15,12 @@ private:
        struct Wrap
        {
                R2C2::Object *object;
-               Msp::GL::Mesh *mesh;
+               const Msp::GL::Mesh *mesh;
        };
 
        Selection &selection;
        std::map<const R2C2::ObjectType *, Msp::GL::Mesh *> meshes;
+       std::map<const R2C2::Object *, Msp::GL::Mesh *> transient_meshes;
        std::list<Wrap> wraps;
 
 public:
@@ -30,7 +31,7 @@ public:
 
 private:
        void selection_changed();
-       Msp::GL::Mesh &get_mesh(const R2C2::ObjectType &);
+       const Msp::GL::Mesh &get_mesh(const R2C2::Object &);
 };
 
 #endif