aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/particles_2d_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-08-25 08:37:38 +0200
committerGitHub2017-08-25 08:37:38 +0200
commit490aef93699abc00da58f73b1596fb3473fd53c6 (patch)
tree7912c7a540eca6b09392bbd2aa2f30fefe37f51a /editor/plugins/particles_2d_editor_plugin.cpp
parentb1c0e45b03aa14453846c9a888763077eef2476b (diff)
parentcacced7e507f7603bacc03ae2616e58f0ede122a (diff)
downloadgodot-490aef93699abc00da58f73b1596fb3473fd53c6.tar.gz
godot-490aef93699abc00da58f73b1596fb3473fd53c6.tar.zst
godot-490aef93699abc00da58f73b1596fb3473fd53c6.zip
Merge pull request #10581 from hpvb/fix-gcc6+
Make cast_to a static member of Object.
Diffstat (limited to '')
-rw-r--r--editor/plugins/particles_2d_editor_plugin.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/editor/plugins/particles_2d_editor_plugin.cpp b/editor/plugins/particles_2d_editor_plugin.cpp
index a759e5892..076e27c74 100644
--- a/editor/plugins/particles_2d_editor_plugin.cpp
+++ b/editor/plugins/particles_2d_editor_plugin.cpp
@@ -33,13 +33,10 @@
#include "io/image_loader.h"
#include "scene/3d/particles.h"
#include "scene/gui/separator.h"
+
void Particles2DEditorPlugin::edit(Object *p_object) {
- if (p_object) {
- particles = p_object->cast_to<Particles2D>();
- } else {
- particles = NULL;
- }
+ particles = Object::cast_to<Particles2D>(p_object);
}
bool Particles2DEditorPlugin::handles(Object *p_object) const {