Displace modifier now increases user count for Texture it links with.

Note: user counters for objects should not be increased. This is handled
differently (delete object = clear modifiers)
This commit is contained in:
Ton Roosendaal
2007-01-18 10:33:47 +00:00
parent d2cb060d6f
commit 425bada3a1

View File

@@ -1087,6 +1087,8 @@ static void modifier_testTexture(char *name, ID **idpp)
for(id = G.main->tex.first; id; id = id->next) {
if(strcmp(name, id->name + 2) == 0) {
*idpp = id;
/* texture gets user, objects not: delete object = clear modifier */
id_us_plus(id);
return;
}
}