소스 검색

Initialize mod scope of loaded rmg template in template editor

Ivan Savenko 4 달 전
부모
커밋
a5c6cfe922
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      mapeditor/helper.cpp

+ 2 - 0
mapeditor/helper.cpp

@@ -84,6 +84,8 @@ std::map<std::string, std::shared_ptr<CRmgTemplate>> Helper::openTemplateInterna
 	auto data = CResourceHandler::get()->load(resId)->readAll();
 	JsonNode nodes(reinterpret_cast<std::byte *>(data.first.get()), data.second, resId.getName());
 
+	nodes.setModScope(ModScope::scopeGame());
+
 	std::map<std::string, std::shared_ptr<CRmgTemplate>> templates;
 	for(auto & node : nodes.Struct())
 	{