Depsgraph: Handle text datablock in ID builder

Just silence the assert/print, we do not add text data blocks
to dependency graph.
This commit is contained in:
Sergey Sharybin 2018-09-19 10:30:41 +02:00
parent 828627a796
commit 3714c83441
2 changed files with 6 additions and 0 deletions

View File

@ -469,6 +469,9 @@ void DepsgraphNodeBuilder::build_id(ID *id)
case ID_SPK:
build_speaker((Speaker *)id);
break;
case ID_TXT:
/* Not a part of dependency graph. */
break;
default:
fprintf(stderr, "Unhandled ID %s\n", id->name);
BLI_assert(!"Should never happen");

View File

@ -450,6 +450,9 @@ void DepsgraphRelationBuilder::build_id(ID *id)
case ID_SPK:
build_speaker((Speaker *)id);
break;
case ID_TXT:
/* Not a part of dependency graph. */
break;
default:
fprintf(stderr, "Unhandled ID %s\n", id->name);
BLI_assert(!"Should never happen");