From 77b7c3e62b3aa4ab33c38c20ead57728b4c199ba Mon Sep 17 00:00:00 2001 From: andreja6 Date: Tue, 23 Oct 2018 21:33:17 -0700 Subject: [PATCH] Changed name to Color3 --- PhysicalInstance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PhysicalInstance.cpp b/PhysicalInstance.cpp index 8838a16..267cd41 100644 --- a/PhysicalInstance.cpp +++ b/PhysicalInstance.cpp @@ -221,7 +221,7 @@ void PhysicalInstance::PropUpdate(LPPROPGRIDITEM &item) { name = (LPTSTR)item->lpCurValue; } - else if(strcmp(item->lpszPropName, "Color") == 0) + else if(strcmp(item->lpszPropName, "Color3") == 0) { color = Color3(GetRValue(item->lpCurValue),GetGValue(item->lpCurValue),GetBValue(item->lpCurValue)); } @@ -270,7 +270,7 @@ std::vector PhysicalInstance::getProperties() properties.push_back(createPGI( "Properties", - "Color", + "Color3", "The color of the selected part", RGB((color.r*255),(color.g*255),(color.b*255)), PIT_COLOR