diff --git a/SDK/Python/blender.py b/SDK/Python/blender.py index f934a8b92ff74e7e70967c38b42d8fcfc6d94345..b5a74504e6e8fe758ddbcfd179184531a5a83604 100644 --- a/SDK/Python/blender.py +++ b/SDK/Python/blender.py @@ -1,3 +1,9 @@ +bl_info = { + "name": "FTL plugin", + "blender": (2, 80, 2), + "category": "Import-Export", +} + import bpy import numpy as np from mathutils import Matrix, Vector @@ -193,7 +199,7 @@ def render_stereo(camera, baseline=0.15): camera.location = location_old finally: - bpy.context.scene.camera = camera + bpy.context.scene.camera = camera_old d_max = max(np.max(depthL), np.max(depthR)) pose = np.identity(4,dtype=np.float32) @@ -245,7 +251,7 @@ class FTL_Options(bpy.types.PropertyGroup): import ftl class FTL_OT_Operator(bpy.types.Operator): bl_idname = "scene.ftl_operator" - bl_label = "FTL Writer" + bl_label = "FTL Operator" def execute(self, context): options = context.scene.ftl_options @@ -289,7 +295,7 @@ class FTL_OT_Operator(bpy.types.Operator): return {'FINISHED'} class FTL_PT_Panel(bpy.types.Panel): - bl_label = "FTL Options" + bl_label = "FTL Export" bl_idname = "FTL_PT_ftl" bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW'