Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-11-13 19:43:45 +0300
committerTon Roosendaal <ton@blender.org>2006-11-13 19:43:45 +0300
commitb771cd9ca8b2c62c5d2c39de338cef21f7e4ef83 (patch)
tree4bc5d9ea4b97116d6dac17baca4c4b099734816d /source/blender/src
parenta43ba01c84236b7366b55f7059322dfe9e2597c9 (diff)
Two tiny compositor annoyances;
- Image Node: after loading new file it didn't update the header name - File-out Node: header color suggested there was only 1 'active', which it isn't.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editnode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/editnode.c b/source/blender/src/editnode.c
index fefa58bea94..416de1e7b69 100644
--- a/source/blender/src/editnode.c
+++ b/source/blender/src/editnode.c
@@ -195,8 +195,10 @@ static void load_node_image(char *str) /* called from fileselect */
node->id->us--;
node->id= &ima->id;
- ima->id.us++;
+ id_us_plus(node->id);
+ BLI_strncpy(node->name, node->id->name+2, 21);
+
free_image_buffers(ima); /* force read again */
ima->ok= 1;