[Bf-extensions-cvs] [4eca0fd1] master: glTF: Adding 'export/import' in operator label. It makes ops more easily foundable by search F3

Julien Duroure noreply at git.blender.org
Fri Feb 8 20:56:46 CET 2019


Commit: 4eca0fd18363d529f5bcdb76279688163855e9dc
Author: Julien Duroure
Date:   Fri Feb 8 20:54:55 2019 +0100
Branches: master
https://developer.blender.org/rBA4eca0fd18363d529f5bcdb76279688163855e9dc

glTF: Adding 'export/import' in operator label. It makes ops more easily foundable by search F3

===================================================================

M	io_scene_gltf2/__init__.py

===================================================================

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 275fa96b..bcf6a5eb 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -424,7 +424,7 @@ class ExportGLTF2_Base:
 class ExportGLTF2(bpy.types.Operator, ExportGLTF2_Base, ExportHelper):
     """Export scene as glTF 2.0 file"""
     bl_idname = 'export_scene.gltf'
-    bl_label = 'glTF 2.0 (.glb/.gltf)'
+    bl_label = 'Export glTF 2.0 (.glb/.gltf)'
 
     filename_ext = ''
 
@@ -437,7 +437,7 @@ def menu_func_export(self, context):
 
 class ImportGLTF2(Operator, ImportHelper):
     bl_idname = 'import_scene.gltf'
-    bl_label = 'glTF 2.0 (.glb/.gltf)'
+    bl_label = 'Import glTF 2.0 (.glb/.gltf)'
 
     filter_glob: StringProperty(default="*.glb;*.gltf", options={'HIDDEN'})
 
@@ -497,7 +497,7 @@ class ImportGLTF2(Operator, ImportHelper):
 
 
 def menu_func_import(self, context):
-    self.layout.operator(ImportGLTF2.bl_idname, text=ImportGLTF2.bl_label)
+    self.layout.operator(ImportGLTF2.bl_idname, text='glTF 2.0 (.glb/.gltf)')
 
 
 classes = (



More information about the Bf-extensions-cvs mailing list