Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add element IDs to advanced weight control components
This PR adds element IDs to the Weight Type dropdown and Weights textbox in the Advanced Weight Control section of ControlNet units. The IDs follow the existing naming pattern used throughout controlnet_ui_group.py. The primary purpose is to enable compatibility with the Config Presets extension, allowing users to save and reload complex ControlNet configurations including advanced weight settings. Changes: - Added elem_id parameters to AdvancedWeightControl.render() - Added elem_ids to weight_type dropdown and weight_editor textbox - Maintained backward compatibility for cases where render is called without parameters The changes to the dropdown have been tested and confirmed working with both ControlNet and Config Presets. Changes to the advanced weights textbox will need to rely on custom code in the Config Presets to stop propagation of Weight Type events when both the Weight Type and Advanced Weights are updated as part of the same preset (otherwise the UI event for Weight Type overwrites the Advanced Weights).
- Loading branch information