Commit: 2a82ce80b78bddc8939e63fe32de00cc5f9c479d
Author: Kévin Dietrich
Date:   Tue Jul 12 15:53:29 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB2a82ce80b78bddc8939e63fe32de00cc5f9c479d

Rephrase scale tooltip, add tooltips for shutter open/close times.

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

M       source/blender/editors/io/io_alembic.c
M       source/blender/makesrna/intern/rna_cachefile.c
M       source/blender/makesrna/intern/rna_scene_api.c

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

diff --git a/source/blender/editors/io/io_alembic.c 
b/source/blender/editors/io/io_alembic.c
index 8d0c7a2..4cf0313 100644
--- a/source/blender/editors/io/io_alembic.c
+++ b/source/blender/editors/io/io_alembic.c
@@ -254,10 +254,10 @@ void WM_OT_alembic_export(wmOperatorType *ot)
                    "Geometry Samples", "Number of times per frame object datas 
are sampled", 1, 128);
 
        RNA_def_float(ot->srna, "sh_open", 0.0f, -1.0f, 1.0f,
-                     "Shutter Open", "", -1.0f, 1.0f);
+                     "Shutter Open", "Time at which the shutter is open", 
-1.0f, 1.0f);
 
        RNA_def_float(ot->srna, "sh_close", 1.0f, -1.0f, 1.0f,
-                     "Shutter Close", "", -1.0f, 1.0f);
+                     "Shutter Close", "Time at which the shutter is closed", 
-1.0f, 1.0f);
 
        RNA_def_boolean(ot->srna, "selected", 0,
                        "Selected Objects Only", "Export only selected 
objects");
@@ -294,7 +294,9 @@ void WM_OT_alembic_export(wmOperatorType *ot)
        RNA_def_enum(ot->srna, "compression_type", 
rna_enum_abc_compression_items,
                     ABC_ARCHIVE_OGAWA, "Compression", "");
 
-       RNA_def_float(ot->srna, "scale", 1.0f, 0.0f, 1000.0f, "Scale", "", 
0.0f, 1000.0f);
+       RNA_def_float(ot->srna, "scale", 1.0f, 0.0001f, 1000.0f, "Scale",
+                     "Value by which to enlarge or shrink the objects with 
respect to the world's origin",
+                     0.0001f, 1000.0f);
 }
 
 /* ************************************************************************** 
*/
@@ -441,7 +443,9 @@ void WM_OT_alembic_import(wmOperatorType *ot)
                                       FILE_BLENDER, FILE_SAVE, 
WM_FILESEL_FILEPATH,
                                       FILE_DEFAULTDISPLAY, FILE_SORT_ALPHA);
 
-       RNA_def_float(ot->srna, "scale", 1.0f, 0.0001f, 1000.0f, "Scale", "", 
0.0001f, 1000.0f);
+       RNA_def_float(ot->srna, "scale", 1.0f, 0.0001f, 1000.0f, "Scale",
+                     "Value by which to enlarge or shrink the objects with 
respect to the world's origin",
+                     0.0001f, 1000.0f);
 
        RNA_def_boolean(ot->srna, "set_frame_range", true,
                        "Set Frame Range",
diff --git a/source/blender/makesrna/intern/rna_cachefile.c 
b/source/blender/makesrna/intern/rna_cachefile.c
index f2cb744..56414df 100644
--- a/source/blender/makesrna/intern/rna_cachefile.c
+++ b/source/blender/makesrna/intern/rna_cachefile.c
@@ -139,8 +139,8 @@ static void rna_def_cachefile(BlenderRNA *brna)
        prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "scale");
        RNA_def_property_range(prop, 0.0001f, 1000.0f);
-       RNA_def_property_ui_text(prop, "Scale", "Scale of the objects in the 
cache file,"
-                                               " only applicable through a 
Transform Cache constraint");
+       RNA_def_property_ui_text(prop, "Scale", "Value by which to enlarge or 
shrink the object with respect to the world's origin"
+                                               " (only applicable through a 
Transform Cache constraint)");
        RNA_def_property_update(prop, 0, "rna_CacheFile_update");
 
        /* object paths */
diff --git a/source/blender/makesrna/intern/rna_scene_api.c 
b/source/blender/makesrna/intern/rna_scene_api.c
index 807e438..7a36741 100644
--- a/source/blender/makesrna/intern/rna_scene_api.c
+++ b/source/blender/makesrna/intern/rna_scene_api.c
@@ -398,7 +398,7 @@ void RNA_api_scene(StructRNA *srna)
        RNA_def_boolean(func, "subdiv_schema", 0, "Use Alembic subdivision 
Schema", "Use Alembic subdivision Schema");
        RNA_def_enum(func, "compression_type", rna_enum_abc_compression_items, 
0, "Compression", "");
        RNA_def_boolean(func, "packuv"          , 0, "Export with packed UV 
islands", "Export with packed UV islands");
-       RNA_def_float(func, "scale", 1.0f, 0.0001f, 1000.0f, "Scale", "", 
0.0001f, 1000.0f);
+       RNA_def_float(func, "scale", 1.0f, 0.0001f, 1000.0f, "Scale", "Value by 
which to enlarge or shrink the objects with respect to the world's origin", 
0.0001f, 1000.0f);
 
        RNA_def_function_flag(func, FUNC_USE_CONTEXT);
 #endif

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to