mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-29 23:22:32 +00:00
Fixed a rare crash when pasting a thing that has a model assigned to another map
This commit is contained in:
parent
70f0c22f72
commit
62d9da0e73
2 changed files with 14 additions and 9 deletions
|
@ -273,11 +273,16 @@ namespace CodeImp.DoomBuilder.Data
|
|||
}
|
||||
|
||||
public void LoadImageNow()
|
||||
{
|
||||
LoadImageNow(true);
|
||||
}
|
||||
|
||||
public void LoadImageNow(bool notify)
|
||||
{
|
||||
if (imagestate != ImageLoadState.Ready)
|
||||
{
|
||||
imagestate = ImageLoadState.Loading;
|
||||
LoadImage(true);
|
||||
LoadImage(notify);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -277,7 +277,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
if (General.Map.Data.GetTextureExists(name))
|
||||
{
|
||||
ImageData image = General.Map.Data.GetTextureImage(name);
|
||||
image.LoadImageNow();
|
||||
image.LoadImageNow(false);
|
||||
|
||||
t = image.Texture;
|
||||
|
||||
|
@ -294,7 +294,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
if (General.Map.Data.GetTextureExists(name))
|
||||
{
|
||||
ImageData image = General.Map.Data.GetTextureImage(name);
|
||||
image.LoadImageNow();
|
||||
image.LoadImageNow(false);
|
||||
|
||||
t = image.Texture;
|
||||
}
|
||||
|
@ -308,7 +308,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
if (General.Map.Data.GetSpriteExists(name))
|
||||
{
|
||||
ImageData image = General.Map.Data.GetSpriteImage(name);
|
||||
image.LoadImageNow();
|
||||
image.LoadImageNow(false);
|
||||
|
||||
t = image.Texture;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue