set clip_start value minimum to 0.001, since 0.0 makes the viewport go very strange.
[blender-staging.git] / source / blender / makesrna / intern / rna_camera.c
index 089c8c44943f75c5961adbe5ea7c3c0ddf07cb2a..1705e2e5376a368468fe129b73ad3b5aa1395cdc 100644 (file)
@@ -108,7 +108,7 @@ void RNA_def_camera(BlenderRNA *brna)
 
        prop= RNA_def_property(srna, "clip_start", PROP_FLOAT, PROP_DISTANCE);
        RNA_def_property_float_sdna(prop, NULL, "clipsta");
 
        prop= RNA_def_property(srna, "clip_start", PROP_FLOAT, PROP_DISTANCE);
        RNA_def_property_float_sdna(prop, NULL, "clipsta");
-       RNA_def_property_range(prop, 0.0f, FLT_MAX);
+       RNA_def_property_range(prop, 0.001f, FLT_MAX);
        RNA_def_property_ui_text(prop, "Clip Start", "Camera near clipping distance");
        RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
 
        RNA_def_property_ui_text(prop, "Clip Start", "Camera near clipping distance");
        RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);