Setting custom properties min max range in python works weird #41431

Closed
opened 2014-08-13 17:31:38 +02:00 by Jaroslav Novotny · 7 comments

System Information
win 7 64bit geforce780GTX 6GB

Blender Version
Broken: 2.71 hash: 9337574

Short description of error
When an ID-property is created in python, its range is <-10k; +10k> (by dragging the value left right), but clicking the edit button of that property reveals <0.0;1.0>.
Setting the min max values in RNA_UI key dictionary causes the value to be draggable to -10k, +10k, but after release the value sets to min or max if it is out of range. The only solution for me is to click the propertys ui edit button and click OK. Thats what i would expect.

Am I missing something or is this really weird?
Thanks and best regards.

Exact steps for others to reproduce the error
Open test.blend and run script, drag the value in UI.
Uncomment script line, run script and test again. Lastly click edit property and OK.

**System Information** win 7 64bit geforce780GTX 6GB **Blender Version** Broken: 2.71 hash: 9337574 **Short description of error** When an ID-property is created in python, its range is <-10k; +10k> (by dragging the value left right), but clicking the edit button of that property reveals <0.0;1.0>. Setting the min max values in RNA_UI key dictionary causes the value to be draggable to -10k, +10k, but after release the value sets to min or max if it is out of range. The only solution for me is to click the propertys ui edit button and click OK. Thats what i would expect. Am I missing something or is this really weird? Thanks and best regards. **Exact steps for others to reproduce the error** Open [test.blend](https://archive.blender.org/developer/F102952/test.blend) and run script, drag the value in UI. Uncomment script line, run script and test again. Lastly click edit property and OK.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @jerryno

Added subscriber: @jerryno
Campbell Barton was assigned by Sergey Sharybin 2014-08-13 18:51:26 +02:00

Added subscribers: @ideasman42, @Sergey

Added subscribers: @ideasman42, @Sergey

@ideasman42, mind having a look?

@ideasman42, mind having a look?

This issue was referenced by blender/blender@7728ffa16c

This issue was referenced by blender/blender@7728ffa16c2e04ea1616af4b74b5273bf7725121

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit blender/blender@7728ffa16c.

Closed by commit blender/blender@7728ffa16c.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#41431
No description provided.