summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorDario <dariosamo@gmail.com>2023-08-08 09:46:06 -0300
committerDario <dariosamo@gmail.com>2023-08-09 08:17:07 -0300
commit5155870d644b1598cd4c8dd675583c3fa1b79d60 (patch)
treea93c16c18bfe6c0a65b552467ad12a543e30f41b /modules/gdscript/gdscript_analyzer.cpp
parentf7bc653cbe81018fe362472a0143b7153a52f929 (diff)
downloadredot-engine-5155870d644b1598cd4c8dd675583c3fa1b79d60.tar.gz
Improve handling of motion vectors for multimesh instances.
Fixes #67287. There was a subtle error where due to how enabling motion vectors for multi-meshes was handled, only the first instance would have a valid transforms buffer and the rest would point to an invalid buffer. This change moves over the responsibility of enabling motion vectors only when changes happen to the individual 3D transforms or the entire buffer itself. It also fixes an unnecessary download of the existing buffer that'd get overwritten by the current cache if it exists. Another fix is handling the case where the buffer was not set, and enabling motion vectors would not cause the buffer to be recreated correctly.
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
0 files changed, 0 insertions, 0 deletions