Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_buttons.c
| Context not available. | |||||
| if (ptr->type == &RNA_Object) { | if (ptr->type == &RNA_Object) { | ||||
| Object *ob = ptr->data; | Object *ob = ptr->data; | ||||
| /* dimensions and material support just happen to be the same checks | /* dimensions and editmode just happen to be the same checks */ | ||||
| * later we may want to add dimensions for lattice, armature etc too */ | if (OB_TYPE_SUPPORT_EDITMODE(ob->type)) { | ||||
| if (OB_TYPE_SUPPORT_MATERIAL(ob->type)) { | |||||
| uiItemR(layout, ptr, "dimensions", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "dimensions", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||