Blender Git Commit Log

Git Commits -> Revision 28ae78a

Revision 28ae78a by Campbell Barton (master)
September 19, 2007, 16:28 (GMT)
reworked how tile functions, seperated image and tile setting functions/events and made tile work with image pinning.

changed how image replace works,
it used to load a new image and then assign that image to all faces in meshes active UV layer.
without replacing images in textures or images on inactive UV layers

now it simply changes the filename of the existing image and reloads the contense.

This is different in some other subtle ways,
1) replace used to use an existing image if it was available,
this could be confusing because when I replaced with an image I didnt like, but had alredy applied to objects in some other scene, replacing again would alter the images from models unintentionally.
2) since replace used to load a new image, it would load with a new name. at the moment the name is left unchanged,
This is better when dealing with linked libraries. because when replacing a images, anything linking to that texture gets broken. since imaged can get automatically named strings longer then its possible to enter into the user interface, you could wind up with some really annoying cases where it wasnt possible to type in the original name again.

Since this replace effects everything usiung the image, we may want to have 2 replace functions, "Replace Globaly" and "Replace in Mesh"

Commit Details:

Full Hash: 28ae78a745bab375ee227be8846479a4afc02ffd
SVN Revision: 12094
Parent Commit: 1c603b6
Lines Changed: +109, -102

9 Modified Paths:

/source/blender/include/BIF_editmesh.h (+1, -0) (Diff)
/source/blender/include/blendef.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_space_types.h (+2, -1) (Diff)
/source/blender/src/drawimage.c (+24, -14) (Diff)
/source/blender/src/editmesh_mods.c (+7, -1) (Diff)
/source/blender/src/editmesh_tools.c (+51, -0) (Diff)
/source/blender/src/editsima.c (+6, -56) (Diff)
/source/blender/src/header_image.c (+5, -15) (Diff)
/source/blender/src/space.c (+11, -13) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021