logic editor ui adjustment, all gameprop types are replaced by the ob.data.body (not only Text)

This commit is contained in:
Dalai Felinto 2012-01-05 08:08:58 +00:00
parent b5ce2b028a
commit d560b33f74

@ -51,10 +51,7 @@ class LOGIC_PT_properties(Panel):
# get the property from the body, not the game property
# note, dont do this - its too slow and body can potentually be a really long string.
# row.prop(ob.data, "body", text="")
if prop.type == 'STRING':
row.label("*See Font Object*")
else:
row.prop(prop, "value", text="", toggle=True)
row.label("See Font Object")
else:
props = layout.operator("object.game_property_new", text="Add Text Game Property", icon='ZOOMIN')
props.name = 'Text'