Skip to content

Commit c319418

Browse files
committed
fixed #2316
1 parent 514a3af commit c319418

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/scenegraph/vrml_proto.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,10 @@ Bool gf_sg_proto_field_is_sftime_offset(GF_Node *node, GF_FieldInfo *field)
12921292

12931293
gf_node_get_field(r->ToNode, r->ToField.fieldIndex, &inf);
12941294
/*IS to another proto*/
1295-
if (r->ToNode->sgprivate->tag == TAG_ProtoNode) return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf);
1295+
if (r->ToNode->sgprivate->tag == TAG_ProtoNode) {
1296+
if (r->ToNode==node) continue;
1297+
return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf);
1298+
}
12961299
/*IS to a startTime/stopTime field*/
12971300
if (!stricmp(inf.name, "startTime") || !stricmp(inf.name, "stopTime")) return 1;
12981301
}

0 commit comments

Comments
 (0)