[Bf-blender-cvs] [7095862] alembic_basic_io: Change min value of the Scale prop in the import operator.

Kévin Dietrich noreply at git.blender.org
Tue Jul 12 16:04:06 CEST 2016


Commit: 7095862c89eaa5a3e03c15d2d65607c18d6c6a5b
Author: Kévin Dietrich
Date:   Tue Jul 12 12:13:12 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB7095862c89eaa5a3e03c15d2d65607c18d6c6a5b

Change min value of the Scale prop in the import operator.

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

M	source/blender/editors/io/io_alembic.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 0b57b78..8d0c7a2 100644
--- a/source/blender/editors/io/io_alembic.c
+++ b/source/blender/editors/io/io_alembic.c
@@ -441,7 +441,7 @@ 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.0f, 1000.0f, "Scale", "", 0.0f, 1000.0f);
+	RNA_def_float(ot->srna, "scale", 1.0f, 0.0001f, 1000.0f, "Scale", "", 0.0001f, 1000.0f);
 
 	RNA_def_boolean(ot->srna, "set_frame_range", true,
 	                "Set Frame Range",
diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c
index dae06ea..807e438 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.0f, 1000.0f, "Scale", "", 0.0f, 1000.0f);
+	RNA_def_float(func, "scale", 1.0f, 0.0001f, 1000.0f, "Scale", "", 0.0001f, 1000.0f);
 
 	RNA_def_function_flag(func, FUNC_USE_CONTEXT);
 #endif




More information about the Bf-blender-cvs mailing list