~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to release/scripts/startup/bl_ui/properties_object.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        col.label(text="Y:")
113
113
        col.label(text="Z:")
114
114
 
115
 
        col = split.row()
116
 
        col.column().prop(ob, "lock_location", text="Location")
117
 
        col.column().prop(ob, "lock_rotation", text="Rotation")
118
 
        col.column().prop(ob, "lock_scale", text="Scale")
 
115
        split.column().prop(ob, "lock_location", text="Location")
 
116
        split.column().prop(ob, "lock_rotation", text="Rotation")
 
117
        split.column().prop(ob, "lock_scale", text="Scale")
119
118
 
120
119
        if ob.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
121
120
            row = layout.row()
205
204
        layout = self.layout
206
205
 
207
206
        obj = context.object
 
207
        obj_type = obj.type
 
208
        is_geometry = (obj_type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT'})
 
209
        is_empty_image = (obj_type == 'EMPTY' and obj.empty_draw_type == 'IMAGE')
208
210
 
209
211
        split = layout.split()
 
212
 
210
213
        col = split.column()
211
 
        col.prop(obj, "draw_type", text="Type")
 
214
        col.prop(obj, "show_name", text="Name")
 
215
        col.prop(obj, "show_axis", text="Axis")
 
216
        if is_geometry:
 
217
            # Makes no sense for cameras, armatures, etc.!
 
218
            col.prop(obj, "show_wire", text="Wire")
 
219
        if obj_type == 'MESH':
 
220
            col.prop(obj, "show_all_edges")
212
221
 
213
222
        col = split.column()
214
223
        row = col.row()
217
226
        sub.active = obj.show_bounds
218
227
        sub.prop(obj, "draw_bounds_type", text="")
219
228
 
220
 
        split = layout.split()
221
 
 
222
 
        col = split.column()
223
 
        col.prop(obj, "show_name", text="Name")
224
 
        col.prop(obj, "show_axis", text="Axis")
225
 
 
226
 
        obj_type = obj.type
227
 
 
228
 
        if obj_type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT'}:
229
 
            # Makes no sense for cameras, armtures, etc.!
230
 
            col.prop(obj, "show_wire", text="Wire")
231
 
            # Only useful with object having faces/materials...
232
 
            col.prop(obj, "color", text="Object Color")
233
 
 
234
 
        col = split.column()
235
 
        col.prop(obj, "show_texture_space", text="Texture Space")
 
229
        if is_geometry:
 
230
            col.prop(obj, "show_texture_space", text="Texture Space")
236
231
        col.prop(obj, "show_x_ray", text="X-Ray")
237
 
        if obj_type == 'MESH' or (obj_type == 'EMPTY' and obj.empty_draw_type == 'IMAGE'):
 
232
        if obj_type == 'MESH' or is_empty_image:
238
233
            col.prop(obj, "show_transparent", text="Transparency")
239
 
        if obj_type == 'MESH':
240
 
            col.prop(obj, "show_all_edges")
 
234
 
 
235
        split = layout.split()
 
236
 
 
237
        col = split.column()
 
238
        if obj_type not in {'CAMERA', 'EMPTY'}:
 
239
            col.label(text="Maximum draw type:")
 
240
            col.prop(obj, "draw_type", text="")
 
241
 
 
242
        col = split.column()
 
243
        if is_geometry or is_empty_image:
 
244
            # Only useful with object having faces/materials...
 
245
            col.label(text="Object Color:")
 
246
            col.prop(obj, "color", text="")
241
247
 
242
248
 
243
249
class OBJECT_PT_duplication(ObjectButtonsPanel, Panel):