Object::get_material returns a pointer instead of a reference
This commit is contained in:
parent
b62949416b
commit
68d0083ba8
3 changed files with 8 additions and 8 deletions
|
@ -100,11 +100,11 @@ Shape::~Shape()
|
|||
*
|
||||
* Get and set the Material applied to this shape.
|
||||
*/
|
||||
Material &
|
||||
Material*
|
||||
Shape::get_material()
|
||||
const
|
||||
{
|
||||
return *material;
|
||||
return material;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue