src/linetypes/modelobject.h

changeset 1270
6af79c9eb274
parent 1269
ec691d9472b3
child 1271
c022fb3855b1
--- a/src/linetypes/modelobject.h	Mon Mar 05 22:40:34 2018 +0200
+++ b/src/linetypes/modelobject.h	Mon Mar 05 22:42:54 2018 +0200
@@ -68,7 +68,6 @@
 	virtual QString asText() const = 0; // This object as LDraw code
 	LDColor color() const;
 	virtual LDColor defaultColor() const; // What color does the object default to?
-	Model* model() const;
 	LDPolygon* getPolygon();
 	virtual void getVertices (DocumentManager *context, QSet<Vertex>& verts) const;
 	virtual bool hasMatrix() const; // Does this object have a matrix and position? (see LDMatrixObject)
@@ -99,15 +98,12 @@
 	void codeChanged(const LDObjectState& before, const LDObjectState& after);
 
 protected:
-	void setDocument(Model* model);
-
 	template<typename T>
 	void changeProperty(T* property, const T& value);
 
 private:
 	bool m_hasInvertNext = false;
 	bool m_isHidden;
-	Model* _model;
 	qint32 m_id;
 	LDColor m_color;
 	QColor m_randomColor;

mercurial