summaryrefslogtreecommitdiffstats
path: root/core/io/resource.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-04-27 12:43:49 -0300
committerreduz <reduzio@gmail.com>2021-04-30 17:38:02 -0300
commit90056460ad8e22d9166523dcb2defebb0581f95c (patch)
treed4cb11cbd03dc5b401f41627217b5d82cf06d195 /core/io/resource.cpp
parent0ad03ba052dd3b7bea558a3a76c7ff5c46bf681a (diff)
downloadredot-engine-90056460ad8e22d9166523dcb2defebb0581f95c.tar.gz
Implement Particle Trails
-Enable the trails and set the length in seconds -Provide a mesh with a skeleton and a skin -Or, alternatively use one of the built-in TubeTrailMesh/RibbonTrailMesh -Works deterministically -Fixed particle collisions (were broken) -Not working in 2D yet (that will happen next)
Diffstat (limited to 'core/io/resource.cpp')
-rw-r--r--core/io/resource.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/io/resource.cpp b/core/io/resource.cpp
index 8560e2abc7..d46e9edafa 100644
--- a/core/io/resource.cpp
+++ b/core/io/resource.cpp
@@ -110,6 +110,12 @@ String Resource::get_name() const {
return name;
}
+void Resource::update_configuration_warning() {
+ if (_update_configuration_warning) {
+ _update_configuration_warning();
+ }
+}
+
bool Resource::editor_can_reload_from_file() {
return true; //by default yes
}
@@ -320,6 +326,7 @@ void Resource::setup_local_to_scene() {
}
Node *(*Resource::_get_local_scene_func)() = nullptr;
+void (*Resource::_update_configuration_warning)() = nullptr;
void Resource::set_as_translation_remapped(bool p_remapped) {
if (remapped_list.in_list() == p_remapped) {