forked from bartvdbraak/blender
Bugfix #25049: Compositing Nodes not Keyframable
An error seems to have been introduced to the node-tree building at some point, which means that the ID-type for data-attached node trees was incorrect (i.e. scene->nodetree->id.name = NTREE_COMPOSIT instead of ID_NT). This in turn meant that the ID AnimData availability poll would fail, as the ID-type could not be determined.
This commit is contained in:
parent
15d37747b3
commit
d3f9b0d05a
@ -1045,7 +1045,7 @@ bNodeTree *ntreeAddTree(const char *name, int type, const short is_group)
|
||||
ntree= alloc_libblock(&G.main->nodetree, ID_NT, name);
|
||||
else {
|
||||
ntree= MEM_callocN(sizeof(bNodeTree), "new node tree");
|
||||
*( (short *)ntree->id.name )= type;
|
||||
*( (short *)ntree->id.name )= ID_NT; /* not "type", as that is ntree->type */
|
||||
BLI_strncpy(ntree->id.name+2, name, sizeof(ntree->id.name));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user