godotengine / godotengine/godot-cpp

Should custom animation node make "_process" as a const function?

Open
#1,067 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.7k
Forks
809
Avg merge
1d 3h
Merged PRs (30d)
8

Description

I tried to create a custom animation node, And I found "_process" function of animation_node is const in gdextension generated code. I have to call "blend_input" which is not const. And I checked engine preset nodes such as "blend_2d". "_process" function of blend_2d is not a const function.
![图片](https://user-images.githubusercontent.com/18411187/224490293-b971558f-4cb6-464e-8a0f-db26ff612722.png)
![图片](https://user-images.githubusercontent.com/18411187/224490315-fec95036-f683-418d-9478-8eb42362517e.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.