|
|
|
@ -36,7 +36,7 @@ namespace AtomToolsFramework
|
|
|
|
//! Convert and assign material property meta data fields to editor dynamic property configuration
|
|
|
|
//! Convert and assign material property meta data fields to editor dynamic property configuration
|
|
|
|
void ConvertToPropertyConfig(AtomToolsFramework::DynamicPropertyConfig& propertyConfig, const AZ::RPI::MaterialPropertyDynamicMetadata& propertyMetaData);
|
|
|
|
void ConvertToPropertyConfig(AtomToolsFramework::DynamicPropertyConfig& propertyConfig, const AZ::RPI::MaterialPropertyDynamicMetadata& propertyMetaData);
|
|
|
|
|
|
|
|
|
|
|
|
//! Convert and assign editor dynamic property configuration fields to material property meta data
|
|
|
|
//! Convert and assign editor dynamic property configuration fields to material property meta data
|
|
|
|
void ConvertToPropertyMetaData(AZ::RPI::MaterialPropertyDynamicMetadata& propertyMetaData, const AtomToolsFramework::DynamicPropertyConfig& propertyConfig);
|
|
|
|
void ConvertToPropertyMetaData(AZ::RPI::MaterialPropertyDynamicMetadata& propertyMetaData, const AtomToolsFramework::DynamicPropertyConfig& propertyConfig);
|
|
|
|
|
|
|
|
|
|
|
|
//! Compare equality of data types and values of editor property stored in AZStd::any
|
|
|
|
//! Compare equality of data types and values of editor property stored in AZStd::any
|
|
|
|
@ -44,16 +44,20 @@ namespace AtomToolsFramework
|
|
|
|
|
|
|
|
|
|
|
|
//! Convert the property value into the format that will be stored in the source data
|
|
|
|
//! Convert the property value into the format that will be stored in the source data
|
|
|
|
//! This is primarily needed to support conversions of special types like enums and images
|
|
|
|
//! This is primarily needed to support conversions of special types like enums and images
|
|
|
|
|
|
|
|
//! @param exportPath absolute path of the file being saved
|
|
|
|
|
|
|
|
//! @param propertyDefinition describes type information and other details about propertyValue
|
|
|
|
|
|
|
|
//! @param propertyValue the value being converted before saving
|
|
|
|
bool ConvertToExportFormat(
|
|
|
|
bool ConvertToExportFormat(
|
|
|
|
const AZStd::string& exportPath,
|
|
|
|
const AZStd::string& exportPath,
|
|
|
|
const AZ::RPI::MaterialTypeSourceData::PropertyDefinition& propertyDefinition,
|
|
|
|
const AZ::RPI::MaterialTypeSourceData::PropertyDefinition& propertyDefinition,
|
|
|
|
AZ::RPI::MaterialPropertyValue& propertyValue);
|
|
|
|
AZ::RPI::MaterialPropertyValue& propertyValue);
|
|
|
|
|
|
|
|
|
|
|
|
//! Generate a file path from the exported file to the external reference.
|
|
|
|
//! Generate a file path from the exported file to the external reference.
|
|
|
|
//! This function is to support copying or moving a folder containing materials, models, and textures without modifying the files. The
|
|
|
|
//! This function returns a relative path from the export file to the reference file.
|
|
|
|
//! general case returns a relative path from the export file to the reference file. If the relative path is too different or distant
|
|
|
|
//! If the relative path is too different or distant from the export path then we return the asset folder relative path.
|
|
|
|
//! from the export path then we return the asset folder relative path. An alternate solution would be to only use export folder
|
|
|
|
//! @param exportPath absolute path of the file being saved
|
|
|
|
//! relative paths if the referenced path is in the same folder or a sub folder the assets are not generally packaged like that.
|
|
|
|
//! @param referencePath absolute path of a file that will be treated as an external reference
|
|
|
|
|
|
|
|
//! @param maxPathDepth the maximum relative depth or number of parent or child folders between the export path and the reference path
|
|
|
|
AZStd::string GetExteralReferencePath(
|
|
|
|
AZStd::string GetExteralReferencePath(
|
|
|
|
const AZStd::string& exportPath, const AZStd::string& referencePath, const uint32_t maxPathDepth = 2);
|
|
|
|
const AZStd::string& exportPath, const AZStd::string& referencePath, const uint32_t maxPathDepth = 2);
|
|
|
|
|
|
|
|
|
|
|
|
|