From 362d6b214b790750175cb5270df2accdfe5e5d79 Mon Sep 17 00:00:00 2001 From: "kaosat.dev" Date: Fri, 9 Aug 2024 11:03:31 +0200 Subject: [PATCH] feat(Blender): * updated version to match Bevy side * added back manifest to do a clean 4.2 extension * removed tmp scene ids --- tools/blenvy/__init__.py | 2 +- tools/blenvy/add_ons/auto_export/common/project_diff.py | 4 ++-- .../blenvy/{__blender_manifest.toml => blender_manifest.toml} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename tools/blenvy/{__blender_manifest.toml => blender_manifest.toml} (98%) diff --git a/tools/blenvy/__init__.py b/tools/blenvy/__init__.py index eb281f6..a3841fd 100644 --- a/tools/blenvy/__init__.py +++ b/tools/blenvy/__init__.py @@ -1,7 +1,7 @@ bl_info = { "name": "blenvy", "author": "kaosigh", - "version": (0, 1, 0), + "version": (0, 1, 0, "alpha.1"), "blender": (3, 4, 0), "location": "File > Import-Export", "description": "tooling for the Bevy engine", diff --git a/tools/blenvy/add_ons/auto_export/common/project_diff.py b/tools/blenvy/add_ons/auto_export/common/project_diff.py index bdd8176..484af37 100644 --- a/tools/blenvy/add_ons/auto_export/common/project_diff.py +++ b/tools/blenvy/add_ons/auto_export/common/project_diff.py @@ -13,12 +13,12 @@ import uuid def serialize_current(settings): # sigh... you need to save & reset the frame otherwise it saves the values AT THE CURRENT FRAME WHICH CAN DIFFER ACROSS SCENES current_frames = [scene.frame_current for scene in bpy.data.scenes] - for scene in bpy.data.scenes: + """for scene in bpy.data.scenes: scene.frame_set(0) if scene.id_test == '': print("GENERATE ID") scene.id_test = str(uuid.uuid4()) - print("SCENE ID", scene.id_test) + print("SCENE ID", scene.id_test)""" #https://blender.stackexchange.com/questions/216411/whats-the-replacement-for-id-or-hash-on-bpy-objects current_scene = bpy.context.window.scene diff --git a/tools/blenvy/__blender_manifest.toml b/tools/blenvy/blender_manifest.toml similarity index 98% rename from tools/blenvy/__blender_manifest.toml rename to tools/blenvy/blender_manifest.toml index 1ff7dff..8513ba6 100644 --- a/tools/blenvy/__blender_manifest.toml +++ b/tools/blenvy/blender_manifest.toml @@ -1,7 +1,7 @@ schema_version = "1.0.0" id = "Blenvy" -version = "0.1.0" +version = "0.1.0-alpha.1" name = "Blenvy" tagline = "Tools to add/edit components of objects, collections etc & create blueprints & levels for the Bevy Engine in Blender" maintainer = "kaosat-dev "