Skip to content
Snippets Groups Projects
Commit 1ceb9a9a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ba3d + fct valid()

parent 317e04cb
No related branches found
No related tags found
1 merge request!1067break include cycle in ba3d
......@@ -107,7 +107,7 @@ const Geometry& Object::geo()
void Object::draw(Canvas& canvas)
{
if (isNull)
if (!valid())
return;
canvas.draw(color(), matrix(), geo());
......
......@@ -43,6 +43,7 @@ public:
void addExtrinsicRotation(F3 turn, F3 scale, F3& rotate, F3 rotateExtrinsic, F3& translate);
void setColor(QColor color) { m_color = color; }
bool valid() const { return !isNull; }
const Geometry& geo();
const QMatrix4x4& matrix() const { return m_matrix; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment