mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
pep8 edits and avoid naming conflicts with python builtins
This commit is contained in:
parent
ddfc518cae
commit
6e28ac2d7b
19 changed files with 65 additions and 55 deletions
|
|
@ -11,13 +11,13 @@ from bge import texture
|
|||
|
||||
def createTexture(cont):
|
||||
"""Create a new Dynamic Texture"""
|
||||
object = cont.owner
|
||||
obj = cont.owner
|
||||
|
||||
# get the reference pointer (ID) of the internal texture
|
||||
ID = texture.materialID(object, 'IMoriginal.png')
|
||||
ID = texture.materialID(obj, 'IMoriginal.png')
|
||||
|
||||
# create a texture object
|
||||
object_texture = texture.Texture(object, ID)
|
||||
object_texture = texture.Texture(obj, ID)
|
||||
|
||||
# create a new source with an external image
|
||||
url = logic.expandPath("//newtexture.jpg")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue