Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26127] FloatProperty precision limited to 4

Date:
2011-02-17 17:47
Priority:
3
State:
Closed
Submitted by:
Lionel Zamouth (lzamouth)
Assigned to:
Ton Roosendaal (ton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
FloatProperty precision limited to 4
Detailed description
When setting up a custom FloatProperty with precision=7, property is displayed with only 4 digits after decimal point.

bpy.types.Material.OCT_roughness = FloatProperty(
name="Roughness",
description="Roughness",
min=0.0000001, max=1.0, step = 1.0, default=0.001,precision=7)

Shows 0.0010 with default value, then 0.0000 after manually typing anything lower than 0.0001.

Followup

Message
  • Date: 2011-02-18 13:52
  • Sender: Ton Roosendaal
  • Our code was indeed truncating it to 4 digits. Made the max become 7 now. More is not reliable for floating points though. :)
    Thanks!
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2011-02-18 13:52ton
close_dateNone2011-02-18 13:52ton
assigned_tonone2011-02-18 13:52ton
StatusNew2011-02-18 13:52ton