Skip to content

Commit

Permalink
Allow usage of the material editor without having to use the Movement…
Browse files Browse the repository at this point in the history
…Controller
  • Loading branch information
tobspr committed Nov 19, 2016
1 parent 5dcfb4f commit 22ae2f5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions rpcore/util/movement_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def setup(self):
# Hotkeys to connect to pstats and reset the initial position
self.showbase.accept("1", PStatClient.connect)
self.showbase.accept("3", self.reset_to_initial)
self.showbase.accept("m", self.start_material_editor)

def print_position(self):
""" Prints the camera position and hpr """
Expand All @@ -180,14 +179,6 @@ def print_position(self):
print("(Vec3({}, {}, {}), Vec3({}, {}, {})),".format(
pos.x, pos.y, pos.z, hpr.x, hpr.y, hpr.z))

def start_material_editor(self):
print("Starting material editor")
pth = sys.executable
editor = os.path.dirname(os.path.realpath(__file__))
editor = os.path.join(editor, "..", "..", "toolkit", "material_editor", "main.py")
subprocess.Popen([pth, editor], shell=True)


def update(self, task):
""" Internal update method """

Expand Down

0 comments on commit 22ae2f5

Please sign in to comment.