private void UndoRedoPerformed() { // Update the cached probe positions from the ones just restored in the LightProbeGroup m_Editor.PullProbePositions(); m_Editor.MarkMeshDirty(); }
public void OnEnable() { m_Editor = new PointEditr(target as LightProbe, this); m_Editor.PullProbePositions(); m_Editor.DeselectProbes(); m_Editor.PushProbePositions(); SceneView.onSceneGUIDelegate += OnSceneGUIDelegate; Undo.undoRedoPerformed += UndoRedoPerformed; EditMode.onEditModeStartDelegate += OnEditModeStarted; EditMode.onEditModeEndDelegate += OnEditModeEnded; }