Commit: 8d95dcd87dbb5775236126e61fcc5c2ac951ca0f
Author: William Reynish
Date:   Fri May 31 11:19:56 2019 +0200
Branches: master
https://developer.blender.org/rB8d95dcd87dbb5775236126e61fcc5c2ac951ca0f

Fix: Don't use a slider to control the Background Image Scale property.

It makes no sense to control this with a slider, since it became difficult to 
scale in normal ranges, and scale factors aren't represented well this way.

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

M       source/blender/makesrna/intern/rna_camera.c

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

diff --git a/source/blender/makesrna/intern/rna_camera.c 
b/source/blender/makesrna/intern/rna_camera.c
index 6bab07d2940..eda89ebfb50 100644
--- a/source/blender/makesrna/intern/rna_camera.c
+++ b/source/blender/makesrna/intern/rna_camera.c
@@ -234,7 +234,7 @@ static void rna_def_camera_background_image(BlenderRNA 
*brna)
   RNA_def_property_ui_text(prop, "Offset", "");
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
 
-  prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_FACTOR);
+  prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_NONE);
   RNA_def_property_float_sdna(prop, NULL, "scale");
   RNA_def_property_ui_text(prop, "Scale", "Scale the background image");
   RNA_def_property_range(prop, 0.0, FLT_MAX);

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

Reply via email to