You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Removed unnecessary assignments
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user