Dopesheet in cache file mode - Type Error val:enum "DRAW_POLY" not found in ... #74921

Open
opened 2020-03-19 11:45:07 +01:00 by Reiner Prokein · 8 comments

Blender Version
Broken: version: 2.79, 2.80rc1, 2.82a, 2.83 (sub 8), branch: master, commit date: 2020-03-13 11:24, hash: cf9b3310c0
Worked: Probably since the Cache File mode was added

Short description of error
Switching in Dopesheet editor to Cache File mode thows an error in the console.
cachefile.jpg

Exact steps for others to reproduce the error

  • Open Blender.
  • Switch to Animation workspace
  • In the Dope Sheet eidtor change the Editing context to Cache File.
  • Watch the console.
**Blender Version** Broken: version: 2.79, 2.80rc1, 2.82a, 2.83 (sub 8), branch: master, commit date: 2020-03-13 11:24, hash: `cf9b3310c0` Worked: Probably since the `Cache File` mode was added **Short description of error** Switching in Dopesheet editor to Cache File mode thows an error in the console. ![cachefile.jpg](https://archive.blender.org/developer/F8415559/cachefile.jpg) **Exact steps for others to reproduce the error** - Open Blender. - Switch to Animation workspace - In the `Dope Sheet` eidtor change the Editing context to `Cache File`. - Watch the console.
Author

Added subscriber: @tiles

Added subscriber: @tiles

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscribers: @dr.sybren, @ZedDB

Added subscribers: @dr.sybren, @ZedDB

@dr.sybren I looked into this and the issue is that in blender/source/blender/editors/animation/anim_filter.c:211 we say that the thing we want to filter is a ANIMCONT_CHANNEL but instead of assigning a channel to the data variable we assign the bDopeSheet data.

This obviously leads to issues in animdata_filter_animchan where it gets a bDopeSheet instead of a bAnimListElem. (We do infact already have a pointer to the dopesheet data at this point as well, so this function gets the same dopesheet pointer twice in different variables *ads and *channel)

However, I do not see and easy solution to this as it seems like there are no cache channels stored. Instead these are created on the fly in animdata_filter_ds_cachefile which would be called if the dope sheet summary view was used.
This would also be called if the animdata_filter_animchan call succeeded, which seems wrong to me as we would in this case already have a channel containing the cache data.

So to me it seems like the code to make this work is simply missing and it might not have worked at all?

To me, it seems like we would have to make a ANIMCONT_CACHE enum or something to make this work. Simply having it be bundled with ANIMCONT_CHANNEL will not work with the current way the data is stored I guess.

@dr.sybren I looked into this and the issue is that in `blender/source/blender/editors/animation/anim_filter.c:211` we say that the thing we want to filter is a `ANIMCONT_CHANNEL` but instead of assigning a channel to the `data` variable we assign the `bDopeSheet` data. This obviously leads to issues in `animdata_filter_animchan` where it gets a `bDopeSheet` instead of a `bAnimListElem`. (We do infact already have a pointer to the dopesheet data at this point as well, so this function gets the same dopesheet pointer twice in different variables *ads and *channel) However, I do not see and easy solution to this as it seems like there are no cache channels stored. Instead these are created on the fly in `animdata_filter_ds_cachefile` which would be called if the dope sheet summary view was used. This would also be called if the `animdata_filter_animchan` call succeeded, which seems wrong to me as we would in this case already have a channel containing the cache data. So to me it seems like the code to make this work is simply missing and it might not have worked at all? To me, it seems like we would have to make a `ANIMCONT_CACHE` enum or something to make this work. Simply having it be bundled with `ANIMCONT_CHANNEL` will not work with the current way the data is stored I guess.

In #74921#896841, @ZedDB wrote:
So to me it seems like the code to make this work is simply missing and it might not have worked at all?

That seems to be it. The manual, it is "documented" as "Cache File: Alembic Todo 2.78". 2.78 was the version in which Alembic was introduced, so this never worked.

To me, it seems like we would have to make a ANIMCONT_CACHE enum or something to make this work.

That makes sense, yes.

I think the use of the dope sheet will have to be re-evaluated for #73363 (Alembic / USD) milestone 4 anyway. I think for now it's fine to keep things as they are. I mean, it's been in there for three years and it's just a message (no crash/data loss).

> In #74921#896841, @ZedDB wrote: > So to me it seems like the code to make this work is simply missing and it might not have worked at all? That seems to be it. [The manual](https://docs.blender.org/manual/en/dev/editors/dope_sheet/introduction.html#dope-sheet-modes), it is "documented" as "Cache File: Alembic Todo 2.78". 2.78 was the version in which Alembic was introduced, so this never worked. > To me, it seems like we would have to make a ANIMCONT_CACHE enum or something to make this work. That makes sense, yes. I think the use of the dope sheet will have to be re-evaluated for #73363 (Alembic / USD) milestone 4 anyway. I think for now it's fine to keep things as they are. I mean, it's been in there for three years and it's just a message (no crash/data loss).

I agree, let's keep it as is until the Alembic/USD cache is further along.

I agree, let's keep it as is until the Alembic/USD cache is further along.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

I will mark this as Known Issue for the UI team workboard, but I'll leave the actual classification up to you.

I will mark this as Known Issue for the UI team workboard, but I'll leave the actual classification up to you.
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:36:15 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#74921
No description provided.