Commit a7adee03 authored by Heng Liu's avatar Heng Liu

add const MaterialNode getter

parent b7e3cc68
...@@ -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,9 @@ class DLLEXPORT BaseObjectData : public BaseObject ...@@ -193,7 +193,9 @@ class DLLEXPORT BaseObjectData : public BaseObject
/// get a pointer to the materialnode /// get a pointer to the materialnode
MaterialNode* materialNode(); MaterialNode* materialNode();
const MaterialNode* BaseObjectData::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