summaryrefslogtreecommitdiff
path: root/drawinglayer/source/attribute/materialattribute3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/attribute/materialattribute3d.cxx')
-rw-r--r--drawinglayer/source/attribute/materialattribute3d.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/drawinglayer/source/attribute/materialattribute3d.cxx b/drawinglayer/source/attribute/materialattribute3d.cxx
index 59d39a07265e..72fce36ac8b1 100644
--- a/drawinglayer/source/attribute/materialattribute3d.cxx
+++ b/drawinglayer/source/attribute/materialattribute3d.cxx
@@ -110,6 +110,11 @@ namespace drawinglayer
{
}
+ bool MaterialAttribute3D::isDefault() const
+ {
+ return mpMaterialAttribute3D.same_object(theGlobalDefault::get());
+ }
+
MaterialAttribute3D& MaterialAttribute3D::operator=(const MaterialAttribute3D& rCandidate)
{
mpMaterialAttribute3D = rCandidate.mpMaterialAttribute3D;