Skip to content

AssetServer:: load_with_settings ignores the settings if file was already loaded with default settings #11111

Open
@stepancheg

Description

@stepancheg

Example from this PR: https://github.com/bevyengine/bevy/pull/11109/files:

    let image = asset_server.load("textures/house_tree_river.png");

    let image_repeat = asset_server.load_with_settings(
        "textures/house_tree_river_copy.png",
        ...
    );

if we use the same file name, second image will ignore the settings (ImageAddressMode to be specific). Here we are using a workaround: providing a different file name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behaviorS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions