From 563c65c4ac6abf4522c9673d708a568f2acde2d4 Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 21 Apr 2022 21:01:01 +0800 Subject: Make object holds a constant reference to its material. --- object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.h') diff --git a/object.h b/object.h index 7f35237..ab79423 100644 --- a/object.h +++ b/object.h @@ -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; }; -- cgit v1.2.3