Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed #2146
  • Loading branch information
jeanlf committed Mar 17, 2022
1 parent 1d9f984 commit 3718d58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scene_manager/scene_dump.c
Expand Up @@ -755,8 +755,7 @@ static void gf_dump_vrml_simple_field(GF_SceneDumper *sdump, GF_FieldInfo field,

switch (field.fieldType) {
case GF_SG_VRML_SFNODE:
assert ( *(GF_Node **)field.far_ptr);
gf_dump_vrml_node(sdump, *(GF_Node **)field.far_ptr, 0, NULL);
gf_dump_vrml_node(sdump, field.far_ptr ? *(GF_Node **)field.far_ptr : NULL, 0, NULL);
return;
case GF_SG_VRML_MFNODE:
list = * ((GF_ChildNodeItem **) field.far_ptr);
Expand Down

1 comment on commit 3718d58

@rbouqueau
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeanlf What would happen when assert are disabled?

Please sign in to comment.