Compile Time Changes

  • AbsMaterialDialog (absMaterialDialog.cm) now passes the selected treeview items to limbs and schemes. (see propagateSelectedMaterial())
    • Added support for regular MaterialTreeViewItem in selectionChangedCB().
  • The update method on MaterialSchemeProperty (absMaterialSchemeProperty.cm) has been expanded to take in the selected tree view items from the Material dialog.
  • The update method on AbsMaterialLimb (absMaterialLimb.cm) has been expanded to take in the selected tree view items from the Material dialog. For AbsMaterialDialog and subclasses of it, stdMaterials.getSelection() is what should be passed in to update now. This was added to support DsMaterialLimb and working with DsPData.
    • Null safety has also been added on the callback for this limb.
OLD:
/**
 * Update.
 */
extend public void update(Material m, bool runCB=true)

NEW:
/**
 * Update.
 */
extend public void update(Material m, TreeViewSelection selection,
                          bool runCB=true)


cm/abstract/material/absMaterialDialog.cm
/**
 * Propagate selected material to caller
 */
extend public void propagateSelectedMaterial() {
    if (selected) {
        if (limb) limb.update(selected, stdMaterials.getSelection());
        if (scheme) scheme.update(selected, stdMaterials.getSelection());
    }
}