summaryrefslogtreecommitdiff
path: root/editor/editor_audio_buses.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2020-02-23 18:01:26 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-23 22:42:26 +0100
commit88f84c78ca14a9dbfdec83692667b46bc4826a7b (patch)
tree7b31cc6f0074f0d3a2adcddd5d3bb5326a3fe78d /editor/editor_audio_buses.cpp
parent194fd2d5a5c6a7a0e9997759dc2a361450d9dc24 (diff)
Store arrays inside of Variant as shared.
Arrays inside of Variant are unique and use reference counting. When you assign a variant containing a packed array to another, or when you call non const functions to arrays, this will work even if the array is inside a dictionary, so they will from now pass as reference. The difference with regular variant arrays is that, once passed to a function in the C++ API, they are no longer shared. This is required for security and thread safety, as those arrays are mainly used to pass data back and forth even between threads.
Diffstat (limited to 'editor/editor_audio_buses.cpp')
0 files changed, 0 insertions, 0 deletions