瀏覽代碼

Adjusts the logic for when creating a simObject from a taml so that array elements(like material slots or sound asset slots) properly can handle prefixed field values, such as referencing loose asset files.

JeffR 1 年之前
父節點
當前提交
92743f6fd8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/console/simObject.cpp

+ 1 - 1
Engine/source/console/simObject.cpp

@@ -560,7 +560,7 @@ void SimObject::onTamlCustomRead(TamlCustomNodes const& customNodes)
                   // Check common fields.
                   if (field)
                   {
-                     setDataField(fieldName, buf, cField->getFieldValue());
+                     setPrefixedDataField(fieldName, buf, cField->getFieldValue());
                   }
                   else
                   {