Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #2316
  • Loading branch information
jeanlf committed Nov 23, 2022
1 parent 514a3af commit c319418
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scenegraph/vrml_proto.c
Expand Up @@ -1292,7 +1292,10 @@ Bool gf_sg_proto_field_is_sftime_offset(GF_Node *node, GF_FieldInfo *field)

gf_node_get_field(r->ToNode, r->ToField.fieldIndex, &inf);
/*IS to another proto*/
if (r->ToNode->sgprivate->tag == TAG_ProtoNode) return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf);
if (r->ToNode->sgprivate->tag == TAG_ProtoNode) {
if (r->ToNode==node) continue;
return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf);
}
/*IS to a startTime/stopTime field*/
if (!stricmp(inf.name, "startTime") || !stricmp(inf.name, "stopTime")) return 1;
}
Expand Down

0 comments on commit c319418

Please sign in to comment.