[Bf-extensions-cvs] [693a834e] master: OBJ: Fix mistakes in rBAc03185fe40dc, add some tooltips.

Bastien Montagne noreply at git.blender.org
Tue Apr 28 17:30:48 CEST 2020


Commit: 693a834eb50f13713ee71a2b7bc1114f65f02559
Author: Bastien Montagne
Date:   Tue Apr 28 17:10:07 2020 +0200
Branches: master
https://developer.blender.org/rBA693a834eb50f13713ee71a2b7bc1114f65f02559

OBJ: Fix mistakes in rBAc03185fe40dc,  add some tooltips.

Please do not commit random things to code maintained by other people,
especially if you are breaking basic 101 things like codestyle. This is
loss of time for everybody. Even worse since not ansewring to comments
on original commit.

Also no need to add extra `text` parameters (and more useless UI
messages) in add-ons, when the only usage of the property's name itself
is in own add-on' UI...

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

M	io_scene_obj/__init__.py

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

diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py
index b7ab6466..cfe66283 100644
--- a/io_scene_obj/__init__.py
+++ b/io_scene_obj/__init__.py
@@ -255,12 +255,12 @@ class OBJ_PT_export_include(bpy.types.Panel):
         sfile = context.space_data
         operator = sfile.active_operator
 
-        col = layout.column(heading = "Limit to")
+        col = layout.column(heading="Limit to")
         col.prop(operator, 'use_selection')
 
-        col = layout.column(heading = "Objects as", align = True)
-        col.prop(operator, 'use_blen_objects', text = "OBJ Objects")
-        col.prop(operator, 'group_by_object', text = "OBJ Groups")
+        col = layout.column(heading="Objects as", align=True)
+        col.prop(operator, 'use_blen_objects')
+        col.prop(operator, 'group_by_object')
         col.prop(operator, 'group_by_material')
 
         layout.separator()
@@ -421,18 +421,18 @@ class ExportOBJ(bpy.types.Operator, ExportHelper):
 
     # grouping group
     use_blen_objects: BoolProperty(
-            name="Objects as OBJ Objects",
-            description="",
+            name="OBJ Objects",
+            description="Export Blender objects as OBJ objects",
             default=True,
             )
     group_by_object: BoolProperty(
-            name="Objects as OBJ Groups ",
-            description="",
+            name="OBJ Groups",
+            description="Export Blender objects as OBJ groups",
             default=False,
             )
     group_by_material: BoolProperty(
             name="Material Groups",
-            description="",
+            description="Generate an OBJ group for each part of a geometry using a different material",
             default=False,
             )
     keep_vertex_order: BoolProperty(



More information about the Bf-extensions-cvs mailing list