Skip to content

Commit

Permalink
電界ベクトルのチェックボックスの初回チェックが反応しないバグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyNelson314 committed Dec 27, 2023
1 parent a49f273 commit e5b8707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/script/Field3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ class ElectricFieldVectors3D extends THREE.Object3D {
constructor(point_charges) {
super();
this.point_charges = point_charges;
this.createEFVectorGeometry();
this.geometry = new THREE.ConeGeometry(1, 5, 10);
this.createEFVectorGeometry();
}

createEFVectorGeometry = () => {
Expand Down Expand Up @@ -207,7 +207,7 @@ export class Field3D extends THREE.Object3D {
if (enable) {
if (this.electric_field_vectors_3d == null)
this.electric_field_vectors_3d = new ElectricFieldVectors3D(this.point_charges);
else
else;
this.electric_field_vectors_3d.update();
this.add(this.electric_field_vectors_3d);
}
Expand Down
1 change: 0 additions & 1 deletion app/script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as EFSim from "./Init.js";
import { Dragger } from "./Dragger.js";
import PointCharge from "./PointCharge.js";
import { Field3D } from "./Field3D.js";
import debounce from 'debounce';
import { throttle } from 'throttle-debounce';
import { Measure } from "./Measure.js";

Expand Down

0 comments on commit e5b8707

Please sign in to comment.