File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -107,19 +107,21 @@ auto CAssetConverter::reserve(const SInput& input) -> SResults
107
107
core::unordered_set<typename cache_t ::value_type*/*TODO: Hash,Equals*/> conser;
108
108
for (auto & asset : std::get<cache_t >(retval.m_typedDagNodes ))
109
109
{
110
+ assert (!asset.second .canonical );
111
+ // assert(!asset.second.result);
110
112
auto [it, inserted] = conser.insert (&asset);
111
113
if (inserted)
112
114
{
113
115
if (input.readCache )
114
116
continue ; // TODO: below
115
117
// if (auto found=input.readCache->find(); found!=input.readCache->end())
116
- // asset.second.result = found->result;
118
+ // {
119
+ // TODO: insert to our own cache
120
+ // asset.second.result = &((*it)->second.result = found->result);
121
+ // }
117
122
}
118
123
else
119
- {
120
- assert (!asset.second .canonical );
121
124
asset.second .canonical = &(*it)->second ;
122
- }
123
125
}
124
126
};
125
127
// Lets see if we can collapse any of the (Asset Content) into the same thing,
You can’t perform that action at this time.
0 commit comments