diff options
author | Keuin <[email protected]> | 2022-04-21 21:01:01 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-21 21:01:01 +0800 |
commit | 563c65c4ac6abf4522c9673d708a568f2acde2d4 (patch) | |
tree | b080a622208b2f77df30adf1a121168c865aa7c0 /object.h | |
parent | 5f92f7182311b111a1bb9ac2f3bccb9eb5754c2c (diff) |
Make object holds a constant reference to its material.
Diffstat (limited to 'object.h')
-rw-r--r-- | object.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ public: virtual ~object() = default; // Get this object's material. - virtual material &get_material() const = 0; + virtual const material & get_material() const = 0; }; |