Skip to content

Commit

Permalink
Update module_designer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed May 17, 2024
1 parent 04d4420 commit e1e5dbd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Tools/HolocronToolset/src/toolset/gui/windows/module_designer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,17 @@
from toolset.gui.dialogs.insert_instance import InsertInstanceDialog
from toolset.gui.dialogs.select_module import SelectModuleDialog
from toolset.gui.editor import Editor
from toolset.gui.editors.git import DeleteCommand, DuplicateCommand, MoveCommand, RotateCommand, _GeometryMode, _InstanceMode, _SpawnMode, calculate_zoom_strength, openInstanceDialog
from toolset.gui.editors.git import (
DeleteCommand,
DuplicateCommand,
MoveCommand,
RotateCommand,
_GeometryMode,
_InstanceMode,
_SpawnMode,
calculate_zoom_strength,
openInstanceDialog,
)
from toolset.gui.widgets.settings.module_designer import ModuleDesignerSettings
from toolset.gui.windows.help import HelpWindow
from toolset.utils.misc import QtMouse
Expand Down Expand Up @@ -1147,7 +1157,9 @@ def buildInsertInstanceMenu(self, world: Vector3):
menu.addAction("Insert Creature").triggered.connect(lambda: self.addInstance(GITCreature(*world), walkmeshSnap=True))
menu.addAction("Insert Door").triggered.connect(lambda: self.addInstance(GITDoor(*world), walkmeshSnap=False))
menu.addAction("Insert Placeable").triggered.connect(lambda: self.addInstance(GITPlaceable(*world), walkmeshSnap=False))
menu.addAction("Insert Store").triggered.connect(lambda: self.addInstance(GITStore(*world), walkmeshSnap=False))
menu.addAction("Insert Store").triggered.connect(
lambda: self.addInstance(GITStore(*world), walkmeshSnap=False)
)
menu.addAction("Insert Sound").triggered.connect(lambda: self.addInstance(GITSound(*world), walkmeshSnap=False))
menu.addAction("Insert Waypoint").triggered.connect(lambda: self.addInstance(GITWaypoint(*world), walkmeshSnap=False))
menu.addAction("Insert Encounter").triggered.connect(lambda: self.addInstance(GITEncounter(*world), walkmeshSnap=False))
Expand Down

0 comments on commit e1e5dbd

Please sign in to comment.