Esempio n. 1
0
        public static void ContextMenu_TileSystem_ToggleLock(MenuCommand command)
        {
            var tileSystem = command.context as TileSystem;

            if (tileSystem != null)
            {
                tileSystem.Locked = !tileSystem.Locked;
                ToolUtility.RepaintScenePalette();

                // If a tool is selected then we need to repaint all scene views since the
                // visual status of the tool may have just changed!
                if (ToolManager.Instance.CurrentTool != null)
                {
                    SceneView.RepaintAll();
                }
            }
        }