Переглянути джерело

Merge pull request #177 from Dakror/missing-clone-attributes

Add missing SetAttributes call when cloning Element
Michael R. P. Ragazzon 4 роки тому
батько
коміт
aa610b0462
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      Source/Core/Element.cpp

+ 3 - 0
Source/Core/Element.cpp

@@ -257,6 +257,9 @@ ElementPtr Element::Clone() const
 
 	if (clone != nullptr)
 	{
+		// Set the attributes manually in case the instancer does not set them.
+		clone->SetAttributes(attributes);
+
 		String inner_rml;
 		GetInnerRML(inner_rml);