mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed: BaseVisualMode object was used before fully initialized (reported by Martix10)
This commit is contained in:
parent
7168ad2095
commit
b8e68083c0
1 changed files with 6 additions and 5 deletions
|
@ -1045,8 +1045,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// When entering this mode
|
||||
public override void OnEngage()
|
||||
{
|
||||
base.OnEngage();
|
||||
|
||||
//mxd
|
||||
useSelectionFromClassicMode = BuilderPlug.Me.SyncSelection ? !General.Interface.ShiftState : General.Interface.ShiftState;
|
||||
if(useSelectionFromClassicMode) UpdateSelectionInfo();
|
||||
|
@ -1061,9 +1059,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// (Re)create special effects
|
||||
RebuildElementData();
|
||||
|
||||
//mxd. Update event lines
|
||||
renderer.SetEventLines(LinksCollector.GetHelperShapes(General.Map.ThingsFilter.VisibleThings, blockmap));
|
||||
}
|
||||
//mxd. Update event lines
|
||||
renderer.SetEventLines(LinksCollector.GetHelperShapes(General.Map.ThingsFilter.VisibleThings, blockmap));
|
||||
|
||||
// [ZZ] this enables calling of this object from the outside world. Only after properly initialized pls.
|
||||
base.OnEngage();
|
||||
}
|
||||
|
||||
// When returning to another mode
|
||||
public override void OnDisengage()
|
||||
|
|
Loading…
Reference in a new issue