Updates in response to code review, from gadams3.
Cleaned up code around MaterialFunctor's QueryMaterialPropertyMetadata and QueryMaterialPropertyGroupMetadata. Removed unnecessary "groupHeader->setObjectName(...)" Simplified code in MaterialInspector::OnDocumentPropertyGroupVisibilityChanged.
This commit is contained in:
@@ -68,7 +68,6 @@ namespace AtomToolsFramework
|
||||
InspectorGroupHeaderWidget* groupHeader = new InspectorGroupHeaderWidget(m_ui->m_propertyContent);
|
||||
groupHeader->setText(groupDisplayName.c_str());
|
||||
groupHeader->setToolTip(groupDescription.c_str());
|
||||
groupHeader->setObjectName(groupNameId.c_str());
|
||||
m_layout->addWidget(groupHeader);
|
||||
|
||||
groupWidget->setObjectName(groupNameId.c_str());
|
||||
|
||||
+1
-6
@@ -253,12 +253,7 @@ namespace MaterialEditor
|
||||
|
||||
void MaterialInspector::OnDocumentPropertyGroupVisibilityChanged(const AZ::Uuid&, const AZ::Name& groupId, bool visible)
|
||||
{
|
||||
auto groupIter = m_groups.find(groupId.GetStringView());
|
||||
|
||||
if(groupIter != m_groups.end())
|
||||
{
|
||||
SetGroupVisible(groupIter->first, visible);
|
||||
}
|
||||
SetGroupVisible(groupId.GetStringView(), visible);
|
||||
}
|
||||
|
||||
void MaterialInspector::BeforePropertyModified(AzToolsFramework::InstanceDataNode* pNode)
|
||||
|
||||
Reference in New Issue
Block a user