mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 03:11:40 +00:00
Copy/Past thing properties: fixed a crash when pasting properties from a thing that has no model assigned to a thing that has a model applied
This commit is contained in:
parent
a7791754c1
commit
14e4162d35
1 changed files with 5 additions and 0 deletions
|
@ -781,6 +781,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
foreach(Thing t in things)
|
||||
{
|
||||
if(settings.Type) t.Type = type;
|
||||
|
||||
// Update the setting from the configuration after changing the type. This makes sure all the following
|
||||
// actions work, since there can be problems when changing the type from or to thing that has a model defined
|
||||
t.UpdateConfiguration();
|
||||
|
||||
if(settings.Angle) t.Rotate(angle);
|
||||
if(settings.ZHeight) t.Move(t.Position.x, t.Position.y, zheight);
|
||||
if(settings.Pitch) t.SetPitch(pitch);
|
||||
|
|
Loading…
Reference in a new issue