From 738d2ab96997faa1e13b91e38cf8a0000d829f70 Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Mon, 21 Aug 2017 15:15:36 -0400 Subject: Removed unnecessary assignments --- editor/plugins/particles_editor_plugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editor/plugins') diff --git a/editor/plugins/particles_editor_plugin.cpp b/editor/plugins/particles_editor_plugin.cpp index d918a3e24e..1e3723a911 100644 --- a/editor/plugins/particles_editor_plugin.cpp +++ b/editor/plugins/particles_editor_plugin.cpp @@ -270,9 +270,7 @@ void ParticlesEditor::_generate_emission_points() { Vector3 dir; dir[Math::rand() % 3] = 1.0; - Vector3 ofs = Vector3(1, 1, 1) - dir; - ofs = (Vector3(1, 1, 1) - dir) * Vector3(Math::randf(), Math::randf(), Math::randf()) * aabb.size; - ofs += aabb.position; + Vector3 ofs = (Vector3(1, 1, 1) - dir) * Vector3(Math::randf(), Math::randf(), Math::randf()) * aabb.size + aabb.position; Vector3 ofsv = ofs + aabb.size * dir; -- cgit v1.2.3