mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Fixed: copied sidedef settings were not applied when using "Paste properties" and "Paste properties special" actions in Doom/Hexen map formats.
This commit is contained in:
parent
4306e277e6
commit
8349392829
1 changed files with 20 additions and 19 deletions
|
@ -631,32 +631,33 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
|
||||
// Should we bother?
|
||||
if(!General.Map.UDMF) return;
|
||||
|
||||
// Apply fields
|
||||
foreach(Linedef l in lines)
|
||||
if(General.Map.UDMF)
|
||||
{
|
||||
l.Fields.BeforeFieldsChange();
|
||||
|
||||
// Apply string arguments
|
||||
if(settings.Arguments)
|
||||
// Apply fields
|
||||
foreach(Linedef l in lines)
|
||||
{
|
||||
Apply(l.Fields, "arg0str");
|
||||
l.Fields.BeforeFieldsChange();
|
||||
|
||||
//TODO: re-enable when UI part is ready
|
||||
//Apply(l.Fields, "arg1str");
|
||||
//Apply(l.Fields, "arg2str");
|
||||
//Apply(l.Fields, "arg3str");
|
||||
//Apply(l.Fields, "arg4str");
|
||||
// Apply string arguments
|
||||
if(settings.Arguments)
|
||||
{
|
||||
Apply(l.Fields, "arg0str");
|
||||
|
||||
//TODO: re-enable when UI part is ready
|
||||
//Apply(l.Fields, "arg1str");
|
||||
//Apply(l.Fields, "arg2str");
|
||||
//Apply(l.Fields, "arg3str");
|
||||
//Apply(l.Fields, "arg4str");
|
||||
}
|
||||
|
||||
// Apply custom fields
|
||||
if(settings.Fields) ApplyCustomFields(l.Fields);
|
||||
}
|
||||
|
||||
// Apply custom fields
|
||||
if(settings.Fields) ApplyCustomFields(l.Fields);
|
||||
// Apply UI fields
|
||||
ApplyUIFields(lines, settings);
|
||||
}
|
||||
|
||||
// Apply UI fields
|
||||
ApplyUIFields(lines, settings);
|
||||
|
||||
// Apply sidedef settings
|
||||
if(sidesettings != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue