diff --git a/editor/js/state.js b/editor/js/state.js
index 7f4bdd0cbee36bc99d20521fe6ed210a6ad15c9a..9370f8d140743a7e1d34ff2b16548d1048383cf3 100644
--- a/editor/js/state.js
+++ b/editor/js/state.js
@@ -28,7 +28,7 @@ class State extends Tool {
     }
 
     setTool(tool) {
-        if (this.previousTool === tool) {
+        if (this.tool === tool) {
             return;
         }