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

Blender 2.6 Bug Tracker: Browse

[#26436] Operator.draw(): UI redraw; UI trimmed

Date:
2011-03-10 03:45
Priority:
3
State:
Closed
Submitted by:
Andrey Izrantsev (bdancer)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Operator.draw(): UI redraw; UI trimmed
Detailed description
Hey there!

I've started playing with operator's draw() and found some stuff...

Here is a simple operator: http://www.pasteall.org/19796/python

row= layout.split().row()
row.prop(self, 'use_temperature', text= "")
row.prop(self, 'temperature', text= "K")

If draw code is not finished with layout call (like layout.separator()) UI is trimmed - no OK button.
http://vray.cgdo.ru/tmp/screenshots/trim_ui.png

Here is a screenshot with layout.separator() at the end:
http://vray.cgdo.ru/tmp/screenshots/nontrim_ui.png

Also operator draw is not redrawn, so this code will never show 'temperature':
row= layout.split().row()
row.prop(self, 'use_temperature', text= "")
if self.use_temperature:
row.prop(self, 'temperature', text= "K")

Thanks in advance!

Best regards,
Andrey

Followup

Message
  • Date: 2012-03-05 12:20
  • Sender: Mihir Gokani
  • any updates on operator redraw? I think it still does not work :(
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2011-03-10 23:45campbellbarton
close_dateNone2011-03-10 23:45campbellbarton
StatusInvestigate2011-03-10 23:45campbellbarton
assigned_tonone2011-03-10 15:30ton
StatusNew2011-03-10 15:30ton