Make object_update comment about lack of ID even more clear

This commit is contained in:
Dalai Felinto 2018-01-26 09:15:56 -02:00
parent ab77363619
commit 0e2bc1a4ac
1 changed files with 6 additions and 2 deletions

View File

@ -438,10 +438,14 @@ void BKE_object_eval_flush_base_flags(const EvaluationContext *UNUSED(eval_ctx),
Object *object, Base *base, bool is_from_set)
{
DEBUG_PRINT("%s on %s (%p)\n", __func__, object->id.name, object);
/* Make sure we have the base collection settings is already populated.
* This will fail when BKE_layer_eval_layer_collection_pre hasn't run yet
* Which usually means a missing call to DEG_id_tag_update(). */
* This will fail when BKE_layer_eval_layer_collection_pre hasn't run yet.
*
* Which usually means a missing call to DEG_id_tag_update(id, DEG_TAG_BASE_FLAGS_UPDATE).
* Either of the entire scene, or of the newly added objects.*/
BLI_assert(!BLI_listbase_is_empty(&base->collection_properties->data.group));
/* Copy flags and settings from base. */
object->base_flag = base->flag;
if (is_from_set) {