Skip to content

Commit 47e1218

Browse files
author
Roberto De Ioris
authored
Update WritingAColladaFactoryWithPython.md
1 parent 0bf5077 commit 47e1218

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎tutorials/WritingAColladaFactoryWithPython.md‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ def FixMeshData(self):
228228
self.normals[i+2] = nor.z
229229

230230
# fix uvs from 0 on bottom to 0 on top
231-
for i, uv in enumerate(uvs):
231+
for i, uv in enumerate(self.uvs):
232232
if i % 2 != 0:
233-
uvs[i] = 1 - uv
233+
self.uvs[i] = 1 - uv
234234
```
235235

236236
re-run and re-import the vampire, it should be correctly rotated now.
@@ -279,6 +279,15 @@ feel free to run the previous code to obtain something like this (click on the b
279279

280280
![Slate demo](https://github.com/20tab/UnrealEnginePython/blob/master/tutorials/WritingAColladaFactoryWithPython_Assets/slate_demo.png)
281281

282+
Now we want to create a modal window just after the dae file is parsed to ask the user to confirm the import and to specify the rotation to apply to the mesh:
283+
284+
```python
285+
286+
287+
```
288+
289+
290+
282291
## Persistent importer options: more subclassing
283292

284293
## Automatically add the ColladaFactory on editor startup

0 commit comments

Comments
 (0)