View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005766||The Dark Mod||Design/Coding||public||30.09.2021 09:40||30.09.2021 09:40|
|Product Version||TDM 2.10|
|Target Version||TDM 2.11|
|Summary||0005766: Support overriding individual decls in FM|
|Description||When mappers create their FMs, they can override (i.e. completely replace) any core file with their own --- just give it the same name+path.|
Also mappers assume that they can override single decl (e.g. material or entityDef) in their own files.
But this is not true: right now it gives a warning, and does not work as intended.
If several files define a decl with same name, which one will win depends on lexicographical order of file paths.
One severe problem caused by this limitation is that it is hard to integrate decls from FMs into core.
Usually when someone imports author's material, he finds proper place for it in the core .mtr files.
Then the source FM starts giving a warning.
When someone changes the imported decl in core in the future, it is uncertain whether FM is affected by these changes or not.
|Additional Information||Internal discussion here:|
|Tags||No tags attached.|