-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scripting: Fixed Tool.updateEnabledState behavior
The setTargetLayerType(0) call in the ScriptedTool constructor happened before the ScriptedTool instance was set as the prototype of the provided script object. If the provided updateEnabledState would then set the "this.enabled" property, it would override the Tool.enabled property instead of changing it and cause all further attempts to change the "this.enabled" property to not affect the Tool.enabled property. Fixed by making sure the prototype is set before a possible call to updateEnabledState happens. Closes #3756
- Loading branch information
Showing
2 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters