public override void toolOffCleanup() { try { if (bridge != null) { MModelMessage.ActiveListModified -= bridge.updateManipulators; bridge = null; } } catch (System.Exception) { MGlobal.displayError("Model remove callback failed"); } base.toolOffCleanup(); }
public override void toolOnSetup(MEvent evt) { helpString = "Rotate the object using the rotation handles"; updateManipulators(this); try { if (bridge == null) { bridge = new updateManipulatorBridge(this); } MModelMessage.ActiveListModified += bridge.updateManipulators; } catch (System.Exception) { MGlobal.displayError("Model addCallback failed"); } }
public override void toolOnSetup(MEvent evt) { helpString = "Rotate the object using the rotation handles"; updateManipulators(this); try { if (bridge == null) bridge = new updateManipulatorBridge(this); MModelMessage.ActiveListModified += bridge.updateManipulators; } catch (System.Exception) { MGlobal.displayError("Model addCallback failed"); } }