Orange: fixes in Compositor:

- Curves in Image window didn't copy alpha (when no 32 bits rect for
  display was made already).
- Code was missing to validate grouped nodes in Compositor, didnt work
  at all yet
- Loading new Images in a Node (using filewindow) didn't assign the image

Image window now displays Alpha for float images too
This commit is contained in:
Ton Roosendaal
2006-01-24 15:24:38 +00:00
parent 771c7f3549
commit 26b718654d
4 changed files with 73 additions and 8 deletions

View File

@@ -167,10 +167,10 @@ static void load_node_image(char *str) /* called from fileselect */
if(ima) {
if(node->id)
node->id->us--;
else {
node->id= &ima->id;
ima->id.us++;
}
node->id= &ima->id;
ima->id.us++;
free_image_buffers(ima); /* force read again */
ima->ok= 1;
@@ -198,7 +198,7 @@ static void composit_node_event(SpaceNode *snode, short event)
strcpy(name, ((Image *)node->id)->name);
else strcpy(name, U.textudir);
/* we make store node->block pointers, and filesel frees it, so we need to clear them */
/* node->block pointers are stored, but filesel frees it, so we need to clear them */
for(node= snode->edittree->nodes.first; node; node= node->next)
node->block= NULL;