public void UpdateDoodadBrush() { DoodadBrush dbrush = selectedBrush as DoodadBrush; if (dbrush != null) { Global.mapCanvas.secondary_map = null; DoodadBrush.FillDoodadPreviewBuffer(); Global.mapCanvas.secondary_map = Global.mapCanvas.doodad_buffer_map; Global.mapCanvas.Refresh(); } }
public void SetBrushVariation(int nz) { DoodadBrush dbrush = selectedBrush as DoodadBrush; if (nz != brush_variation && dbrush != null) { // Monkey! brush_variation = nz; Global.mapCanvas.secondary_map = null; DoodadBrush.FillDoodadPreviewBuffer(); Global.mapCanvas.secondary_map = Global.mapCanvas.doodad_buffer_map; } }