Merge pull request #2 from Moderlab-Production/develop

Readme documentation
This commit is contained in:
Aurelien Vaillant
2022-01-31 11:57:10 +01:00
committed by GitHub
3 changed files with 22 additions and 2 deletions
View File
+21 -1
View File
@@ -1,2 +1,22 @@
# Blender Addon # Blender Addon
Template repository about blender addon. Template repository about blender addon. To used-it, clone this repository and rename the folder "blender_addon_folder" with your addon name.
Update the file "tests/main.py", line 29, set your addon name.
````python
# Prepare Blender and Unreal dependency
generate_archive(archives, 'blender_addon_folder')
````
> ⚠️ It's more easy to use the "_" with your addon folder name, the "-" character can be problematic with python used.
# Setup Variable
The Github Workflow (CI chain) request some update with each new repository :
- [ ] Env. variable : request the package ex name. Get a better solution to automatically used the folder name ?
# Unit Test
All unit test call the blender docker [stilobique/blender:latest](https://hub.docker.com/repository/docker/stilobique/blender).
#### Blender addon dependency
With all unit test, if your addon request some dependency, add the repo inside the list in `blender_addon.py` and `blender.py`. This system are not perfect and need to be improved.
+1 -1
View File
@@ -26,7 +26,7 @@ if __name__ == '__main__':
clear_container_test(tag=docker_tag) clear_container_test(tag=docker_tag)
# Prepare Blender and Unreal dependency # Prepare Blender and Unreal dependency
generate_archive(archives, 'blender-folder') generate_archive(archives, 'blender_addon_folder')
# Generate Unit Test, a specific call or execute all Unit Test # Generate Unit Test, a specific call or execute all Unit Test
test_list = None test_list = None