Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-10-31 22:31:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-10-31 22:31:45 +0300
commitf9b19d54b5a07c5d654ecb634aefc5690e07e6fd (patch)
tree746a80208ae1b0a3b98c678af45d37fe26c28325 /release/scripts/templates/gamelogic_module.py
parentaf72bb50ae41f5ba1f9f5b2310b2aee77907fecf (diff)
tabs to spaces, remove trailing white space. (apart of pep8)
didnt do "release/scripts/io" since some exporters cant be auto converted
Diffstat (limited to 'release/scripts/templates/gamelogic_module.py')
-rw-r--r--release/scripts/templates/gamelogic_module.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/templates/gamelogic_module.py b/release/scripts/templates/gamelogic_module.py
index 1bc221e727d..5a61a3592dc 100644
--- a/release/scripts/templates/gamelogic_module.py
+++ b/release/scripts/templates/gamelogic_module.py
@@ -13,14 +13,14 @@ import GameLogic
# with multiple objects.
def main(cont):
- own = cont.owner
-
- sens = cont.sensors['mySensor']
- actu = cont.actuators['myActuator']
-
- if sens.positive:
- cont.activate(actu)
- else:
- cont.deactivate(actu)
+ own = cont.owner
+
+ sens = cont.sensors['mySensor']
+ actu = cont.actuators['myActuator']
+
+ if sens.positive:
+ cont.activate(actu)
+ else:
+ cont.deactivate(actu)
# dont call main(GameLogic.getCurrentController()), the py controller will