mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-13 23:26:19 +00:00
Added support for preview scale on script templates
This commit is contained in:
@@ -385,6 +385,17 @@ CScriptTemplate* CTemplateLoader::LoadScriptTemplate(tinyxml2::XMLDocument *pDoc
|
||||
pAsset = pAsset->NextSiblingElement();
|
||||
}
|
||||
|
||||
// Preview Scale
|
||||
tinyxml2::XMLElement *pPreviewScale = pEditor->FirstChildElement("preview_scale");
|
||||
|
||||
if (pPreviewScale)
|
||||
{
|
||||
const char *kpScale = pPreviewScale->GetText();
|
||||
|
||||
if (kpScale)
|
||||
pScript->mPreviewScale = std::stof(kpScale);
|
||||
}
|
||||
|
||||
// Rotation
|
||||
tinyxml2::XMLElement *pRotType = pEditor->FirstChildElement("rotation_type");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user