Commit a18b10eb authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'add-const-materialNode-getter' into 'master'

Add const material node getter

See merge request !52
parents 795cc764 a00dc3cd
...@@ -270,6 +270,10 @@ MaterialNode* BaseObjectData::materialNode() { ...@@ -270,6 +270,10 @@ MaterialNode* BaseObjectData::materialNode() {
return materialNode_; return materialNode_;
} }
const MaterialNode* BaseObjectData::materialNode() const {
return materialNode_;
}
BoundingBoxNode* BaseObjectData::boundingBoxNode() { BoundingBoxNode* BaseObjectData::boundingBoxNode() {
return boundingBoxNode_; return boundingBoxNode_;
} }
......
...@@ -193,7 +193,10 @@ class DLLEXPORT BaseObjectData : public BaseObject ...@@ -193,7 +193,10 @@ class DLLEXPORT BaseObjectData : public BaseObject
/// get a pointer to the materialnode /// get a pointer to the materialnode
MaterialNode* materialNode(); MaterialNode* materialNode();
/// get a const pointer to the materialnode
const MaterialNode* materialNode() const;
/// get a pointer to the bounding box node /// get a pointer to the bounding box node
BoundingBoxNode* boundingBoxNode(); BoundingBoxNode* boundingBoxNode();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment