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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-09-11 00:26:34 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-09-11 00:26:34 +0400
commit734eaab54542644f6a031858b4ca280cd565dc6a (patch)
tree9daef15ae823f2a13b73ac13d9f650614aa65a1f /source/blender/nodes
parent92d94ccb084df36ab7fd39f0258a7189356d9966 (diff)
Fix #36327: cycles render layers exclude layers animation did not work well.
This is kind of another way to animate layers which is disabled, but add an exception to make this case work.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/composite/node_composite_tree.c30
1 files changed, 7 insertions, 23 deletions
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c
index 0b62481b2f7..31ae46468c3 100644
--- a/source/blender/nodes/composite/node_composite_tree.c
+++ b/source/blender/nodes/composite/node_composite_tree.c
@@ -318,38 +318,22 @@ static int node_animation_properties(bNodeTree *ntree, bNode *node)
lb = RNA_struct_type_properties(ptr.type);
for (link = lb->first; link; link = link->next) {
- int len = 1, index;
- bool driven;
prop = (PropertyRNA *)link;
- if (RNA_property_array_check(prop))
- len = RNA_property_array_length(&ptr, prop);
-
- for (index = 0; index < len; index++) {
- if (rna_get_fcurve(&ptr, prop, index, NULL, &driven)) {
- nodeUpdate(ntree, node);
- return 1;
- }
+ if (RNA_property_animated(&ptr, prop)) {
+ nodeUpdate(ntree, node);
+ return 1;
}
}
/* now check node sockets */
for (sock = node->inputs.first; sock; sock = sock->next) {
- int len = 1, index;
- bool driven;
-
RNA_pointer_create((ID *)ntree, &RNA_NodeSocket, sock, &ptr);
prop = RNA_struct_find_property(&ptr, "default_value");
- if (prop) {
- if (RNA_property_array_check(prop))
- len = RNA_property_array_length(&ptr, prop);
-
- for (index = 0; index < len; index++) {
- if (rna_get_fcurve(&ptr, prop, index, NULL, &driven)) {
- nodeUpdate(ntree, node);
- return 1;
- }
- }
+
+ if (RNA_property_animated(&ptr, prop)) {
+ nodeUpdate(ntree, node);
+ return 1;
}
}