Skip to content
Snippets Groups Projects
  • Damien Picard's avatar
    8db31f5c
    Assign modifiers to variables instead of getting them by name · 8db31f5c
    Damien Picard authored
    Using hardcoded names to retrieve modifiers can result in errors if
    the user has enabled UI translation, because the new modifiers may not
    have the expected English names if the UI is translated.
    
    So, use the data API to create the modifiers instead of the ops API,
    and assign nodes to variables instead of getting them by name.
    8db31f5c
    History
    Assign modifiers to variables instead of getting them by name
    Damien Picard authored
    Using hardcoded names to retrieve modifiers can result in errors if
    the user has enabled UI translation, because the new modifiers may not
    have the expected English names if the UI is translated.
    
    So, use the data API to create the modifiers instead of the ops API,
    and assign nodes to variables instead of getting them by name.