Skip to content

Commit eefae3c

Browse files
committed
Gizmo: fix null access
1 parent 3f29c04 commit eefae3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hrt/tools/Gizmo.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,10 @@ class Gizmo extends h3d.scene.Object {
208208

209209

210210
function startMove(handle: Handle, duplicating: Bool = false) {
211-
if (onStartMove != null && !moving) {
211+
if (!moving) {
212212
initialAbsPos = this.getAbsPos().clone();
213-
onStartMove(handle);
213+
if (onStartMove != null)
214+
onStartMove(handle);
214215

215216
initialMousePos = new h2d.col.Point(mouseX, mouseY);
216217
var scene = getScene();

0 commit comments

Comments
 (0)