Dev 5.2.1 #1

Merged
stilobique merged 2 commits from dev-5.2.1 into main 2026-07-08 19:21:15 +02:00
15 changed files with 22 additions and 22 deletions
View File
+3 -1
View File
@@ -1,6 +1,7 @@
<component name="ProjectRunConfigurationManager"> <component name="ProjectRunConfigurationManager">
<configuration default="false" name="Execute Pylinter CI" type="PythonConfigurationType" factoryName="Python"> <configuration default="false" name="Execute Pylinter CI" type="PythonConfigurationType" factoryName="Python">
<module name="Blender Objects Type" /> <module name="Blender Objects Type" />
<option name="ENV_FILES" value="" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<envs> <envs>
@@ -22,7 +23,8 @@
<ENTRY IS_ENABLED="true" PARSER="runconfig" /> <ENTRY IS_ENABLED="true" PARSER="runconfig" />
</ENTRIES> </ENTRIES>
</EXTENSION> </EXTENSION>
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/.github/lint.py" /> <option name="RUN_TOOL" value="" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/.gitea/lint.py" />
<option name="PARAMETERS" value="--module=moderlab_type" /> <option name="PARAMETERS" value="--module=moderlab_type" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
+4 -4
View File
@@ -3,13 +3,13 @@ import bpy
bl_info = { bl_info = {
'name': 'Addon Name', 'name': 'Addon Name',
'description': 'Add your description', 'description': 'Add your description',
'author': 'Moderlab, Aurelien Vaillant, Nicolas Salles, Jeremy Duchesne', 'author': 'Aurelien Vaillant',
'version': (0, 0, 0), 'version': (0, 1, 0),
'blender': (3, 0, 0), 'blender': (5, 1, 2),
'doc_url': "", 'doc_url': "",
'tracker_url': "", 'tracker_url': "",
'support': "COMMUNITY", 'support': "COMMUNITY",
'category': 'Moderlab', 'category': '',
} }
modules_class = [ modules_class = [
+13 -9
View File
@@ -1,25 +1,29 @@
[![Python 3.10.2](https://img.shields.io/badge/python-3.10.2-sucess.svg)](https://www.python.org/downloads/release/python-3102/) [![Python 3.13.9](https://img.shields.io/badge/python-3.13.9-sucess.svg)](https://www.python.org/downloads/release/python-3139/)
![Blender](https://img.shields.io/badge/blender-3.1.0-sucess) ![Blender](https://img.shields.io/badge/blender-5.1.2-sucess)
# Blender Addon # Blender Addon
This repository is a toolbox to create a new blender addon. To used-it, clone this repository and rename the folder "blender_addon_folder" with your addon name. This repository is a toolbox to create a new blender addon.
To used-it, clone this repository and rename the folder `blender_addon_folder` with your addon name.
It's important to change some files : It's important to change some files :
- [x] Update the file "tests/main.py", line 29, set your addon name. - [x] Update the file "tests/main.py", line 29, set your addon name.
```python ```python
# Prepare Blender and Unreal dependency # Prepare Blender and Unreal dependency
generate_archive(archives, 'blender_addon_folder') generate_archive(archives, 'blender_addon_folder')
``` ```
- [x] You can remove the folder "presets" and disable the workflow (`.github/workflows/pr_main.yml`, line 38 and 53) - [x] You can remove the folder "presets" and disable the workflow (`.gitea/workflows/pr_main.yml`, line 38 and 53)
> ⚠️ It's more easy to use the "_" with your addon folder name, the "-" character can be problematic with python use. > ⚠️ It's more easy to use the "_" with your addon folder name, the "-" character can be problematic with python use.
All features covered with this template are :
# Features
All features covered with this Blender Addon template are :
- [x] Generate addon release (.zip archive) - [x] Generate addon release (.zip archive)
- [x] Generate preset release (.zip archive) - [x] Generate preset release (.zip archive)
- [x] Update addon version (bl info) with tag name - [x] Update addon version (bl info) with tag name
- [x] Execute unit test with Github Action (check if the addon can be installed with blender) - [ ] Execute unit test with Gitea Action (check if the addon can be installed with blender)
- [x] Configuration with Pycharm to test locally - [ ] Configuration with Pycharm to test locally
- [ ] Linter config
## Unit Test ## Unit Test
@@ -32,9 +36,9 @@ class Container(enum.Enum):
BLENDER = ContainerObject(name='Blender', image='stilobique/blender', tag='3.1.2') BLENDER = ContainerObject(name='Blender', image='stilobique/blender', tag='3.1.2')
````` `````
> [Find the repository git on my public space](https://git.graou.studio/stilobique/blender-docker).
# Addons/Plugins dependency # Addons/Plugins dependency
Update json file `tests/dependency.json` with name, archive and repository Github path. Each entry require `archive Update json file `tests/dependency.json` with name, archive and repository Github path. Each entry require `archive
name`, the repository url path '{owner}/{repo}' and optional parameter if the release needed to be a prerelease. name`, the repository url path '{owner}/{repo}' and optional parameter if the release needed to be a prerelease.
> ⛔ The `moderlab_plugin` need to be on last entry.
+1 -7
View File
@@ -1,11 +1,5 @@
{ {
"blender": { "blender": {
"moderlab_type": ["moderlab_type.zip", "Moderlab-Production/BlenderObjectType", "prerelease"], "addon-entry": ["artifact-release.zip", "git-url", ""]
"moderlab_pie": ["moderlab_plugin.zip", "Moderlab-Production/BlenderPieMenu"],
"moderlab_plugin": ["moderlab_plugin.zip", "Moderlab-Production/BlenderPlugin"]
},
"unreal": {
"unreal-pipeline": ["unreal-moderlab-pipeline.zip", "Moderlab-Production/UnrealPipeline"],
"unreal-type": ["Moderlab-Unreal-Type.zip", "Moderlab-Production/UnrealType"]
} }
} }
+1 -1
View File
@@ -11,7 +11,7 @@ from utils.properties import ContainerObject
class Container(enum.Enum): class Container(enum.Enum):
"""Enumerate about the Geometry node""" """Enumerate about the Geometry node"""
BLENDER = ContainerObject(name='Blender', image='stilobique/blender', tag='3.1.2') BLENDER = ContainerObject(name='Blender', image='stilobique/blender', tag='5.1.2')
def launch_unit_test(test: [str] = None): def launch_unit_test(test: [str] = None):