When adding a texture to a brush datablock, currently, the resulting undo step does not have any effect when undone. This is due to the texture being added to the linked asset library. As we do not want this extraneous undo step to be created since it has no effect, this commit does the following: * Removes the automatic undo handling with OPTYPE_UNDO * Manually adds a undo step if the newly created Texture datablock was not moved to a library. Pull Request: https://projects.blender.org/blender/blender/pulls/136336